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
150
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
390
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
490
Ruby 型別檢查工具簡介
johnlinvc
0
700
Swift Actor 實作探索
johnlinvc
0
230
用 mruby 來寫跨平台工具
johnlinvc
0
150
Actor model 簡介
johnlinvc
0
280
一起玩 Helm 3
johnlinvc
1
200
為什麼 App 卡卡的
johnlinvc
2
1.4k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
300
Other Decks in Programming
See All in Programming
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Next.js: The final boss of Web Performance
guaca
0
260
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
150
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
430
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
気持ちぃ〜角丸 Squircle
ryu1013
0
310
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
1.2k
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
Featured
See All Featured
Producing Creativity
orderedlist
PRO
348
41k
What's in a price? How to price your products and services
michaelherold
247
13k
Rails Girls Zürich Keynote
gr2m
96
14k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
How STYLIGHT went responsive
nonsquared
100
6.3k
Visualization
eitanlees
153
17k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Automating Front-end Workflow
addyosmani
1369
210k
Six Lessons from altMBA
skipperchong
29
4.5k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Technical Leadership for Architectural Decision Making
baasie
3
600
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