robots
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
robots [2023/09/27 00:29] – appledog | robots [2023/09/27 00:31] (current) – appledog | ||
---|---|---|---|
Line 1: | Line 1: | ||
= Robots | = Robots | ||
Part one of this class was taught to [[Roger]] on Sep. 19th 2023. | Part one of this class was taught to [[Roger]] on Sep. 19th 2023. | ||
+ | |||
+ | This discusses the basic addition of map and player. In part two we add rocks and robots, and in part 3 we finish the game. | ||
+ | * [[robots-2|Part 2]] | ||
+ | * [[robots-3|Part 3]] | ||
== PyGame Console Starter | == PyGame Console Starter | ||
Line 103: | Line 107: | ||
Note that #3 could be written using else: as well; but then later if we want to introduce more checks it will be difficult to modify the code. Not difficult, just more difficult than this way. The fall-throuh condition style of coding is considered lower-level than using if-elif-else, | Note that #3 could be written using else: as well; but then later if we want to introduce more checks it will be difficult to modify the code. Not difficult, just more difficult than this way. The fall-throuh condition style of coding is considered lower-level than using if-elif-else, | ||
- | + | At this point you should have a working game which allows the player to move around, but there are some problems with the game. Yet, this so far is good enough for a small 1.5 hours class. |
robots.1695774586.txt.gz · Last modified: 2023/09/27 00:29 by appledog