官术网_书友最值得收藏!

Breakout – bringing back old-school gaming

You have probably seen many forms of the game Breakout in the past couple of decades, especially during the Atari days. To give you a good idea of what the game is about, here is a brief editorial by Big Fish Games about the history of Breakout: http://www.bigfishgames.com/blog/the-history-of-breakout/. The following screenshot is an example of Breakout:

Breakout – bringing back old-school gaming

On the game screen, there are several columns and rows of bricks placed near the top of the screen. A ball travels across the screen, bouncing off the top and side walls of the screen. When a brick is hit, the ball bounces away and the brick is destroyed. The player loses the round when the ball touches the bottom of the screen. To prevent this from happening, the player has a movable paddle to bounce the ball upward, keeping it in play.

We're going to create a clone using touch events and the accelerometer for the paddle movement that will be controlled by the player. We'll be adding some physics to the ball so that it can bounce around the screen.

In the next chapter, we'll be adding the movement of the game objects, collision detection, score keeping, and win/lose conditions. Right now, we're going to focus on how to set up the game template of Breakout.

主站蜘蛛池模板: 宜丰县| 曲水县| 桃园市| 新兴县| 交城县| 罗甸县| 湖口县| 精河县| 日照市| 精河县| 巴林右旗| 凉山| 武鸣县| 油尖旺区| 威海市| 建阳市| 南宁市| 仪陇县| 准格尔旗| 西乌珠穆沁旗| 万宁市| 体育| 铅山县| 错那县| 三都| 清苑县| 德清县| 三河市| 通辽市| 东至县| 安阳市| 清新县| 洞口县| 宁阳县| 静乐县| 昌吉市| 南溪县| 霍山县| 彝良县| 苏尼特左旗| 安达市|