Tweaking the game
You may have beat the Hunger Run game in no time or you may have failed miserably just like me. Whichever type of gamer you are, you can configure Hunger Run to be harder or easier. We will wrap up this project with just doing that.
Prepare for lift off
The table shows all the configurable items:
Sprites |
Variable name |
Usage |
Value to use for tweaking |
---|---|---|---|
Game Manager, Brick, Food |
|
Number of grids in the game |
Lower is easier. When lower, the run is shorter. |
Game Manager |
|
The scrolling speed |
Lower is easier. Player can avoid bad food. |
Food |
|
Bad food ratio |
Lower is easier. When lower, fewer food types are bad. |
Food |
|
Bad food appearance time |
Lower is more difficult. When lower, bad food would show sooner. |
Engage thrusters
We will demonstrate how to configure these variables: grid_count
, bad_food_start_grid_idx
, scroll_speed
, and good_food_start_cos_idx
.