Game Development Reference
In-Depth Information
The result of tweaking the good_food_start_cos_idx variable is shown in the
following screenshot:
Objective complete - mini debriefing
We have demonstrated how to tweak Hunger Run in the following ways:
F Tweaking the number of bricks in the game
F Tweaking the ime of appearance of bad food
F Tweaking the scrolling speed
F Tweaking the movement of the player
F Tweaking the bad food raio
Mission accomplished
We learned the mechanics of scrolling in detail and also created an auto-scrolling plaform to
simulate the player sprite moving between them. Further more, we added the food sprites
that scroll with the plaform and interact with the player. Next, we added the game logic
that is common to all the sprites of the Game Manager, which controls the top-level game
iniiaion and terminaion, as well as level advancement. Finally, we ended with several ways
to tweak the game for the desired level of difficulty.
 
Search WWH ::




Custom Search