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

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

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 be creating a clone using touch events and the accelerometer for paddle movement that will be controlled by the player. We'll be adding some physics to the ball so it can bounce throughout 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.

主站蜘蛛池模板: 湖口县| 偃师市| 四子王旗| 富宁县| 思茅市| 浦城县| 高尔夫| 嵩明县| 鹤峰县| 常熟市| 沭阳县| 惠安县| 青海省| 龙陵县| 霍山县| 武夷山市| 齐齐哈尔市| 盐津县| 黎川县| 高尔夫| 富顺县| 综艺| 蓬安县| 航空| 石城县| 化州市| 白城市| 巨野县| 孝感市| 陇川县| 岳普湖县| 冕宁县| 贵南县| 灯塔市| 大安市| 大兴区| 沧州市| 台南县| 辉南县| 静安区| 昆明市|