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

Chapter 3. Into the Draw Thread

In this chapter, we are going to improve the rendering of sprites for our game. For this, we are going to use a custom GameView that will perform low-level drawing. We will make two different implementations: one that extends from View and another one that extends from SurfaceView. We will let DrawThread be a real thread, to work better with this GameView.

We will refactor the project, creating a Sprite class that will be used for all the items that are drawn in the game. We will draw bitmaps on a Canvas and learn about the transformation matrix used to do this.

To continue improving the game, we will add enemies. They will be a wave of asteroids moving towards our spaceship. For this, we will learn the concept of GameController and the different ways of doing it, from static to procedural level generation.

As part of the rendering techniques, we will learn about occlusion culling and parallax backgrounds, which we will use to make the game look nicer.

Finally, we will add support for layers in the engine.

主站蜘蛛池模板: 延安市| 桐城市| 建平县| 隆子县| 霸州市| 宝清县| 特克斯县| 车险| 三穗县| 潮州市| 铜鼓县| 金山区| 大宁县| 谢通门县| 五华县| 西宁市| 霍山县| 伊宁县| 东平县| 靖州| 蓬安县| 高淳县| 玉山县| 施秉县| 柳河县| 萨嘎县| 西和县| 扎兰屯市| 沾化县| 黄冈市| 台北县| 秦皇岛市| 鄢陵县| 从化市| 石阡县| 南木林县| 定襄县| 宜兴市| 左权县| 安平县| 察雅县|