- Mastering Android Game Development
- Raul Portales
- 187字
- 2021-07-16 13:59:10
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.
- Mastering Swift 2
- Cocos2d-x學習筆記:完全掌握Lua API與游戲項目開發 (未來書庫)
- Scientific Computing with Scala
- Learning Python Design Patterns
- 焊接機器人系統操作、編程與維護
- 青少年信息學競賽
- Java程序設計入門
- OpenCV 4計算機視覺項目實戰(原書第2版)
- Mastering Linux Security and Hardening
- 從0到1:HTML5 Canvas動畫開發
- 軟件測試技術
- Building Apple Watch Projects
- Spring Boot從入門到實戰
- 軟件再工程:優化現有軟件系統的方法與最佳實踐
- R語言與網站分析