官术网_书友最值得收藏!

Drawing your first sprite

It is time to write some game code—fantastic! Open your GameScene.swift file and find the didMove function. Recall that this function fires every time the game switches to the GameScene. We will use this function to get familiar with the SKSpriteNode class. You will use SKSpriteNode extensively in your game whenever you want to add a new 2D graphic entity.

Tip

The term sprite refers to a 2D graphic or animation that moves around the screen independently from the background. Over time, the term has evolved to refer to any game object on the screen in a 2D game. We will create and draw your first sprite in this chapter: a happy little bee.

主站蜘蛛池模板: 金门县| 青铜峡市| 额尔古纳市| 湘乡市| 奈曼旗| 兰溪市| 禹城市| 全椒县| 绥化市| 上饶县| 铜陵市| 睢宁县| 高雄市| 清水县| 福泉市| 合阳县| 昌都县| 麻城市| 八宿县| 霍林郭勒市| 房山区| 册亨县| 绍兴市| 错那县| 黎川县| 隆子县| 集安市| 遂宁市| 高平市| 凌云县| 安多县| 玛沁县| 锦州市| 普兰县| 永靖县| 怀来县| 泉州市| 涟水县| 涡阳县| 五大连池市| 洞口县|