Assignments:BreakOut

From FANG

Jump to: navigation, search

Contents

The Problem

http://en.wikipedia.org/wiki/Breakout Breakout] is a simple game with a paddle, ball, bricks, and walls. Typically the paddle is at the bottom, walls are on the top and sides (but not on the bottom), and bricks are toward the top. A ball moves around and bounces off of walls, the paddle, and bricks. When the ball hits bricks, they go away. When all the bricks are gone, the player wins (or moves to the next level). Many mods of the game have been released such as Arkanoid, Super Breakout and others.

This assignment assumes you have some basic knowledge of the FANG Engine. If you don't have any prior experience with the FANG Engine, try completing Wackadot or getting other experience with the FANG Engine first because this assignment does not try to teach you the basics of the FANG Engine.

Requirements

Your basic game must:

  • have at least 3 rows and 8 columns of bricks (other more creative versions allowed)
  • have at least 1 ball
  • keep score
  • have multiple lives (at least 3)

After you have completed the basic game, you must implement at least 3 enhancements. Here are some suggestions:

  • use curved walls for more interesting bounces
  • make bricks change colors when they are hit. The color indicates how many more hits before the bricks disappear
  • make bricks with special properties such as adding gravity
  • make powerups drop and give the player points/lives/other properties when they catch it.
  • add everything to a SpriteFrame. Make the entire game except the ball rotate, including the controls.

You must use good programming style when writing your game:

  • your bricks must be in a collection - either an array or ArrayList or other collection
  • you must use loops to iterate - no long sequential statements should be used where a loop can simplify and shorten the code
  • methods must be short - in general, methods over 35 lines are too long
  • avoid repeated code - group it in methods or loops

Planning

Be sure to plan out your game before you get started coding. What is the simplest version you can get up and running quickly? What are the stages you can take your game through in developing it? The smaller and simpler your steps are, the easier they will be to implement. It's far easier to do a large number of simple steps than a small number of complex steps.

Hints

coming soon.





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter

Games
Games