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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Johnlin
May 22, 2017
Programming
140
0
Share
用SpriteKit 做遊戲
Johnlin
May 22, 2017
More Decks by Johnlin
See All by Johnlin
用 MLIR 實作 一個 Ruby IR (intermediate representation)
johnlinvc
0
260
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
340
Ruby 型別檢查工具簡介
johnlinvc
0
570
Swift Actor 實作探索
johnlinvc
0
190
用 mruby 來寫跨平台工具
johnlinvc
0
110
Actor model 簡介
johnlinvc
0
230
一起玩 Helm 3
johnlinvc
1
150
為什麼 App 卡卡的
johnlinvc
2
1.3k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
240
Other Decks in Programming
See All in Programming
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.4k
Back to the roots of date
jinroq
0
110
ハンズオンで学ぶクラウドネイティブ
tatsukiminami
0
130
Agentic Elixir
whatyouhide
0
180
Making the RBS Parser Faster
soutaro
0
390
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
790
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
220
Vibe하게 만드는 Flutter GenUI App With ADK , 박제창, BWAI Incheon 2026
itsmedreamwalker
0
550
AIエージェントで業務改善してみた
taku271
0
530
第3木曜LT会 #28
tinykitten
PRO
0
110
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
220
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
0
150
Featured
See All Featured
Design in an AI World
tapps
1
200
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.6k
How GitHub (no longer) Works
holman
316
150k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
100
It's Worth the Effort
3n
188
29k
Fireside Chat
paigeccino
42
3.9k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
200
Designing for Timeless Needs
cassininazir
0
200
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
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