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

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.

主站蜘蛛池模板: 黄浦区| 永年县| 顺义区| 永福县| 兴隆县| 同江市| 永兴县| 湖南省| 英山县| 美姑县| 易门县| 萨迦县| 三亚市| 和顺县| 建昌县| 高淳县| 塘沽区| 通州区| 镇安县| 托克逊县| 塘沽区| 台南市| 蓬溪县| 巴里| 赤城县| 遂川县| 福鼎市| 桐城市| 仙游县| 大竹县| 九龙城区| 桐梓县| 乌拉特中旗| 遂宁市| 朝阳区| 陈巴尔虎旗| 新安县| 开封县| 遂川县| 荆州市| 涟源市|