文件名称:2D Apple Games by Tutorials 2.0.pdf
文件大小:22.55MB
文件格式:PDF
更新时间:2020-09-30 10:20:51
Apple Games by Tutorials
swift 3 and ios10 xcode8 So far, you’ve learned how to move and rotate SpriteKit nodes — a node being anything that appears onscreen — by manually setting their positions and rotations over time. This do-it-yourself approach works and is quite powerful, but SpriteKit provides an easier way to move sprites incrementally: actions. Actions allow you to do things like rotate, scale or change a sprite’s position over time — with only a single line of code! You can also chain actions together to create movement combinations quite easily. In this chapter, you’ll learn all about SpriteKit actions as you add enemies, collectibles and basic gameplay logic to your game. You’ll see how actions can simplify your game-coding life, and by the time you’ve finished this chapter, Zombie Conga will be action-packed!