- 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 Python High Performance
- Oracle Database 12c Security Cookbook
- The HTML and CSS Workshop
- 精通Linux(第2版)
- UML 基礎(chǔ)與 Rose 建模案例(第3版)
- C語言從入門到精通
- Service Mesh實戰(zhàn):基于Linkerd和Kubernetes的微服務(wù)實踐
- Machine Learning in Java
- Python Interviews
- 算法圖解
- 從零開始學(xué)Selenium自動化測試:基于Python:視頻教學(xué)版
- Akka入門與實踐
- 現(xiàn)代CPU性能分析與優(yōu)化
- Mastering ASP.NET Web API
- Apache Kafka 1.0 Cookbook