
Worksheet (to download and print out)
The following ZIP archive contains:
Download this ZIP archive and copy contents in your coderdojo_tramore directory.
This game is a little longer than normal so plan is a bit loosey-goosey — we will just see how much of the worksheet we get done. (Then I will come back and edit this bit.)
OK, we got as far as step 30. We have implemented everythingm except the fangflower. The remaining steps should not take too long.
At end of this session, we got something like gardening_games_basic_session_1.py
Our starting point this week is last week's end point. If you were not here last week, then follow the download instructions for the game assets and then download gardening_games_basic_session_1.py to get started.
Plan this week is
_list to indicate lists is more obvious to programmers than my style of flower vs flowers.
So I will probably use this in future. However the book does some crazy things. For example, two separate lists are used to store the flower information.
One to store the actual flowers, flower_list and one to store the time they started to wlit wilted_list.
The second list is not needed as the wilting information could be stored as part of the flower. velocity function.clock.schedule vs clock.schedule_unique.