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.
The table shows all the configurable items:
Sprites |
Variable name |
Usage |
Value to use for tweaking |
---|---|---|---|
Game Manager, Brick, Food |
|
Lower is easier. When lower, the run is shorter. | |
Game Manager |
|
Lower is easier. Player can avoid bad food. | |
Food |
|
Lower is easier. When lower, fewer food types are bad. | |
Food |
|
Lower is more difficult. When lower, bad food would show sooner. |
We will demonstrate how to configure these variables: grid_count
, bad_food_start_grid_idx
, scroll_speed
, and good_food_start_cos_idx
.
Perform the following steps to decrease the value of the grid_count
variable:
Perform the following steps to increase the value of the grid_count
variable:
15
in the set <grid_count> to () block.Perform the following steps to adjust the time when bad thing and bad food appears:
2
, in the set <bad_food_start_grid_idx> to () block. Therefore, the bad food would show up at grid 2, instead of grid 3.5
, in the set <bad_food_start_grid_idx> to () block. Therefore, the bad food would show up at grid 5, instead of grid 3.Perform the following steps to tweak the scrolling speed:
2
, in the set <scroll_speed> to () block. Therefore, the bad food would show up at brick number 2, instead of brick number 3.5
, in the set bad_food_start_grid_idx to () block. Therefore, the bad food would show up at brick number 5, instead of brick number 3.Perform the following steps to tweak the movement of the player:
jump_steps
or jump_wait_time
variable. The larger the jump_steps
variable is, the higher the player sprite will jump.fall_speed
variable.Assume your food sprite costume list is as the one shown in the following screenshot (as included in the starter project):
To make the game easier, reduce the bad food ratio by performing the following steps:
2
, in the set <good_food_start_cos_idx> to () block. There would be one bad food type.5
, in the set good_food_start_cos_idx to () block. Then there will be four bad food types.The result of tweaking the good_food_start_cos_idx
variable is shown in the following screenshot:
18.190.156.93