Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
用SpriteKit 做遊戲
Search
Johnlin
May 22, 2017
Programming
0
130
用SpriteKit 做遊戲
Johnlin
May 22, 2017
Tweet
Share
More Decks by Johnlin
See All by Johnlin
用 MLIR 實作 一個 Ruby IR (intermediate representation)
johnlinvc
0
120
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
260
Ruby 型別檢查工具簡介
johnlinvc
0
460
Swift Actor 實作探索
johnlinvc
0
160
用 mruby 來寫跨平台工具
johnlinvc
0
75
Actor model 簡介
johnlinvc
0
190
一起玩 Helm 3
johnlinvc
1
120
為什麼 App 卡卡的
johnlinvc
2
1.2k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
200
Other Decks in Programming
See All in Programming
VS Code Update for GitHub Copilot
74th
1
300
Gleamという選択肢
comamoca
6
760
PHPで始める振る舞い駆動開発(Behaviour-Driven Development)
ohmori_yusuke
2
170
KotlinConf 2025 現地で感じたServer-Side Kotlin
n_takehata
1
230
なぜ「共通化」を考え、失敗を繰り返すのか
rinchoku
1
470
生成AIコーディングとの向き合い方、AIと共創するという考え方 / How to deal with generative AI coding and the concept of co-creating with AI
seike460
PRO
1
330
CursorはMCPを使った方が良いぞ
taigakono
1
170
Elixir で IoT 開発、 Nerves なら簡単にできる!?
pojiro
1
150
#kanrk08 / 公開版 PicoRubyとマイコンでの自作トレーニング計測装置を用いたワークアウトの理想と現実
bash0c7
1
290
レガシーシステムの機能調査・開発におけるAI利活用
takuya_ohtonari
0
610
関数型まつり2025登壇資料「関数プログラミングと再帰」
taisontsukada
2
850
AIエージェントはこう育てる - GitHub Copilot Agentとチームの共進化サイクル
koboriakira
0
330
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
GraphQLとの向き合い方2022年版
quramy
47
14k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
VelocityConf: Rendering Performance Case Studies
addyosmani
330
24k
The Cult of Friendly URLs
andyhume
79
6.5k
Why Our Code Smells
bkeepers
PRO
337
57k
How to Ace a Technical Interview
jacobian
277
23k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
Writing Fast Ruby
sferik
628
61k
It's Worth the Effort
3n
185
28k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Transcript
༻SpriteKit ၏༡ፍ John Lin @johnlinvc
ॄኄੋSpriteKit • iOS ্༻ိ၏༡ፍతܥ౷ɻ • แؚ៸ᅷཧҾ№ɻ • ՄҎշ၏ग़༡ፍɻ
၏Ұݸ䤫ٿతখ༡ፍ
ݩ݅ੳ • Ұݸ SpriteKit ሢҊ • Ұᰒٿ • ᴍٿత࣌ީཁٿԟ্䤫 •
㑌䤫ҰԼཁՃҰ • ٿམᏐཁᓤྵ
։Ұݸ SpriteKit ሢҊ • બ File -> New -> Project
• બ Game, ҈ԼҰ㑊
i બ㟬ࣗݾతୂޔ রଧ ෆॏཁ ෆॏཁ ෆॏཁ Swift SpriteKit iPhone ࡾݸෆཁޯ
։Ұݸ SpriteKit ሢҊ • બ File -> New -> Project
• બ Game, ҈ԼҰ㑊 • ௐઃఆ • બଘ䈕Ґஔ
ࣥߦ • ။౸ҰࠣᏈՌత Demo • ෆӨڹɼզ၇बઌཹஶଞ
ՃೖҰᰒٿ • ։⬏GameScene.sks • ӈԼํፙ౸Label Nodeɼ䇪౸ᙘ໘্ • Name ઃ
ball • edit -> Emoji & Symbols ፙ౸ٿɼText ٿ • Font ࣈᱪେখௐ150 • Vertical Alignment ௐ Center
None
None
څٿཧઃఆ • ଧ։ GameScene.swift • Ճೖ ball ᏓᏐ • څ
ball ཧઃఆ
Ճೖ ball ᏓᏐ
څ Ball ཧઃఆ
์Ұմ൘ • ࡏGameScene.sks ཫ໘ՃҰݸ൘ • ࡏ GameScene.swift ཫઃఆ൘తཧಛੑ
ࡏGameScene.sks ཫ໘ՃҰݸ ൘ • ଧ։ GameScene.sks • ኺӈԼ֯䇪Ұݸ Shape Node
ਐᙘ໘ • څଞҰݸ㟬تᓣత fill color • ઃఆ໊ࣈҝ ground • scale X ઃ 8, ์౸ᦊນԼ㐊
None
ࡏ GameScene.swift ཫઃఆ൘ తཧಛੑ
䤫ٿ • ᙛᴍ౸ٿత࣌ީɼڅٿҰݸ্తিྔ • ᙘ໘ඃᴍ౸త࣌ީ။ݺڣ GameScene.swift ཫత touchesBegan • ᒾҰ༗ᔒ༗ᴍ౸ٿɼ༗ᴍ౸తबڅሏিྔ
څٿিྔ
ܭ • ⃧ՃҰݸ score ᏓᏐ • 㑌ᴍ౸Ұ࣍बՃҰ • Ꮠᰖࣔࡏ label
্
⃧ՃҰݸ score ᏓᏐ
㑌ᴍ౸Ұ࣍बՃҰ
Ꮠᰖࣔࡏ label ্
ॏ৽ܭ • ᙛٿᎃ౸্త࣌ީᏐጯ֘ཁॏ৽ܭࢉ • ઃఆٿ൘ᨀ࣌ཁ௨զ၇ • ᙛᨀత࣌ީᏐᓤ0, ࣕᰖࣔᏐ
ઃఆٿ൘ᨀ࣌ཁ௨զ ၇
ᙛᨀత࣌ީᏐᓤ0, ࣕᰖ ࣔᏐ
ਐ֊ • ᰖࣔ࠷ߴه㑚 • ґরᴍ㐝Ґஔိܾఆ䤫ٿతํ • मվ䤫ٿ࣌తಛᏈ
Q&A