- 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.
- Objective-C應用開發全程實錄
- FreeSWITCH 1.6 Cookbook
- Serverless架構
- 計算機應用基礎實踐教程
- 區塊鏈底層設計Java實戰
- C語言程序設計實驗指導 (第2版)
- Unity 2017 Mobile Game Development
- RealSenseTM互動開發實戰
- Practical Game Design with Unity and Playmaker
- Beginning C++ Game Programming
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- 平面設計經典案例教程:CorelDRAW X6
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- Java Web開發實例大全(基礎卷) (軟件工程師開發大系)
- C#面向對象程序設計(第2版)