- 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.
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(第三版)
- Learning Neo4j
- Mastering JavaScript Functional Programming
- GeoServer Cookbook
- Java 9 Concurrency Cookbook(Second Edition)
- Windows系統(tǒng)管理與服務(wù)配置
- Visual C++實(shí)例精通
- Scala Design Patterns
- 動(dòng)手玩轉(zhuǎn)Scratch3.0編程:人工智能科創(chuàng)教育指南
- 深入淺出Go語言編程
- Hands-On JavaScript for Python Developers
- 鴻蒙OS應(yīng)用編程實(shí)戰(zhàn)
- 微信小程序開發(fā)實(shí)戰(zhàn):設(shè)計(jì)·運(yùn)營(yíng)·變現(xiàn)(圖解案例版)
- 區(qū)塊鏈架構(gòu)之美:從比特幣、以太坊、超級(jí)賬本看區(qū)塊鏈架構(gòu)設(shè)計(jì)
- 愛上C語言:C KISS