Upgrade to Pro — share decks privately, control downloads, hide ads and more …

用SpriteKit 做遊戲

用SpriteKit 做遊戲

Johnlin

May 22, 2017
Tweet

More Decks by Johnlin

Other Decks in Programming

Transcript

  1. ։Ұݸ SpriteKit ሢҊ • બ File -> New -> Project

    • બ Game, ҈ԼҰ㑊 • ௐ੔ઃఆ • બଘ䈕Ґஔ
  2. ՃೖҰᰒٿ • ։⬏GameScene.sks • ӈԼํፙ౸Label Nodeɼ䇪౸ᙘ໘্ • ೺ Name ઃ੒

    ball • edit -> Emoji & Symbols ፙ౸଍ٿɼ೺Text ׵੒଍ٿ • Font ೺ࣈᱪେখௐ੒150 • Vertical Alignment ௐ੒ Center
  3. ࡏGameScene.sks ཫ໘ՃҰݸ ஍൘ • ଧ։ GameScene.sks • ኺӈԼ֯䇪Ұݸ Shape Node

    ਐᙘ໘ • څଞҰݸ㟬تᓣత fill color • ઃఆ໊ࣈҝ ground • ೺ scale X ઃ੒ 8, ์౸ᦊນԼ㐊
  4. Q&A