Game Programming with Code Angel by Mark Cunningham

Game Programming with Code Angel by Mark Cunningham

Author:Mark Cunningham
Language: eng
Format: epub
ISBN: 9781484253052
Publisher: Apress


You may be wondering what these timer numbers actually equate to in real time. Look to the very bottom of the Snapper code, and you will see the lineclock.tick(60)

In simple terms, it means that the while True loop will execute 60 times every second. So if we look back at our dictionary, we see that the time value for animal_1 (a rabbit) is 60. That means it will be displayed on screen for exactly one second. By comparison, animal_23 (a deer) has the time value set to 90, so this animal will stay on screen for 1.5 seconds.

(Cheat hint: If you want to make the game easier, increase these time values.)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.