Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
用SpriteKit 做遊戲
Search
Johnlin
May 22, 2017
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
用SpriteKit 做遊戲
Johnlin
May 22, 2017
More Decks by Johnlin
See All by Johnlin
用 MLIR 實作 一個 Ruby IR (intermediate representation)
johnlinvc
0
340
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
420
Ruby 型別檢查工具簡介
johnlinvc
0
640
Swift Actor 實作探索
johnlinvc
0
210
用 mruby 來寫跨平台工具
johnlinvc
0
130
Actor model 簡介
johnlinvc
0
250
一起玩 Helm 3
johnlinvc
1
170
為什麼 App 卡卡的
johnlinvc
2
1.3k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
280
Other Decks in Programming
See All in Programming
【高い買い物LT会】初任給で話題の国産フィジカルAIを買った話
akagami
PRO
0
160
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
1
280
From 6 People Classroom Meetup to 100 People Regional Conference / FOSS4G Hiroshima 2026
furukawayasuto
0
210
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
590
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
150
XHTMLが残したもの
yosuke_furukawa
PRO
2
810
What We Talk About When We Talk About XP
m_seki
2
630
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.4k
ゲームコントローラやキーボードのファームウェアをSwiftで書く
kishikawakatsumi
1
240
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
120
Heart of Swift Concurrency
koher
0
880
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
7.2k
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Facilitating Awesome Meetings
lara
57
7.1k
Claude Code のすすめ
schroneko
67
230k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
280
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
4 Signs Your Business is Dying
shpigford
187
23k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
840
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
The Cost Of JavaScript in 2023
addyosmani
55
10k
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