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

grid_count

Number of grids in the game

Lower is easier.

When lower, the run is shorter.

Game Manager

scroll_speed

The scrolling speed

Lower is easier.

Player can avoid bad food.

Food

good_food_start_cos_idx

Bad food ratio

Lower is easier.

When lower, fewer food types are bad.

Food

bad_food_start_grid_idx

Bad food appearance time ...

Get Scratch 2.0 Game Development HOTSHOT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.