O'Reilly logo

Scratch 2.0 Game Development HOTSHOT by Sergio van Pul, Jessica Chiang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required