- Game Development with Swift
- Stephen Haney
- 181字
- 2021-07-16 13:45:39
Chapter 2. Sprites, Camera, Actions!
Drawing with SpriteKit is a breeze. We are free to focus on building great gameplay experiences while SpriteKit performs the mechanical work of the game loop. To draw an item to the screen, we create a new instance of a SpriteKit node. These nodes are simple; we attach a child node to our scene, or to existing nodes, for each item we want to draw. Sprites, particle emitters, and text labels are all considered nodes in SpriteKit.
Note
The game loop is a common game design pattern used to constantly update the game many times per second, and to maintain the same gameplay speed on fast or slow hardware.
SpriteKit wires new nodes into the game loop automatically. As you gain expertise with SpriteKit, you may wish to explore the game loop further to understand what is going on "under the hood".
The topics in this chapter include:
- Preparing your project
- Drawing your first sprite
- Animation: movement, scaling, and rotation
- Working with textures
- Organizing art into texture atlases
- Centering the camera on a sprite
- Python數據挖掘:入門、進階與實用案例分析
- 計算機信息技術基礎實驗與習題
- Hadoop與大數據挖掘(第2版)
- 醫療大數據挖掘與可視化
- 基于Apache CXF構建SOA應用
- Power BI商業數據分析完全自學教程
- MATLAB Graphics and Data Visualization Cookbook
- Hadoop大數據開發案例教程與項目實戰(在線實驗+在線自測)
- 一本書講透Elasticsearch:原理、進階與工程實踐
- 大數據分析:數據倉庫項目實戰
- R Object-oriented Programming
- 大數據數學基礎(Python語言描述)
- 云計算寶典:技術與實踐
- MySQL數據庫應用與管理
- PostgreSQL高可用實戰