Book Image

Scratch 2.0 Game Development Hotshot

Book Image

Scratch 2.0 Game Development Hotshot

Overview of this book

Table of Contents (18 chapters)
Scratch 2.0 Game Development HOTSHOT
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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

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.

Tweaking the number of grids in the...