Game Development Reference
In-Depth Information
Chapter 4
Game Project: Progressive Break-it
For your first game project, you'll be building a version of the Atari classic, Breakout. You'll be building your game
in the progressive mode, which will continuously add rows of bricks as the game progresses. A few new twists will be
added to the classic to make it a bit more fun, and to fully utilize your new skills.
The graphics for the game will be fully built using EaselJS's drawing API and Text objects. A game loop will be
created, which will be used to animate the puck around the stage, and the TweenJS library will be utilized to animate
some of the bonus text during gameplay. All controls will be handled by the keyboard, which will control the paddle
and pause or play the game.
As usual, let's start by describing and outlining the project by listing the features you'll accomplish in the game.
Progressive Break-it
Progressive Break-it is a game where the player must control a game paddle that moves horizontally across the bottom
of the screen. The player must prevent the puck from getting past the paddle, while busting the bricks laid out above it.
Draw a paddle, puck, and bricks using drawing API.
Control the paddle by using left and right arrow keys.
Create level data for brick colors and points for each level.
Add a new row of bricks every five hits of the paddle.
Create one random free life brick with every new level added.
Award bonus points for long, sequential brick hits.
Display animated text for both free lives and combo bonuses.
Allow player to pause/resume game by hitting the spacebar.
End the game when the player runs out of lives or the bricks reach the bottom of the screen.
Figure 4-1 shows the game in its complete state.
 
Search WWH ::




Custom Search