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
キャンフェスにゲームを出そう -StruckOut 編-
Search
Yuichi Sato
December 23, 2020
Programming
33
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
キャンフェスにゲームを出そう -StruckOut 編-
Yuichi Sato
December 23, 2020
Transcript
7 slides
キャンフェスにゲームを出そう -StruckOut 編- 2021年12月23日 佐藤雄一
自己紹介 名前:佐藤 雄一(ゆーいち) 好物:エレキギター、(初期)仏教、Smalltalk Twitter:@satoyuichi80 趣味:読書、ギター練習、映画鑑賞
デモ
開発の思ひ出 Unity で作り始めたものの、「ミニゲーム程度だったら全部プログラミングした方が早い わ!」と思って、JavaScript でやり直した。 トータルの工数では気分的にはトントンな気がしているが、いらぬ苦労もいろいろした けど、そういう苦労が良い経験になりますよね。 隙間時間の8日程度で実装できて一安心。
構成 • Three.js: 3D 描画 • Cannon-es.js: 3D 物理演算 •
(Vue.js → UI 更新が面倒くさいという理由で無駄遣い) • Glitch: デプロイ先
苦労したところ • 表示と当たり判定の合致 ◦ 表示(Three.js)と当たり判定(cannon-es.js)は別物なので、初期に困惑した ◦ cannon-es-debuggerというのを使えば、視覚的に確認できるらしい? • すり抜け対策 ◦
初めて使ってみた Cannon-es.js ◦ リアルスケールに従ってパラメータを設定したところ、すり抜けまくり ◦ セオリーに従って、計算回数を調整したがうまくいかず … ◦ 仕方ないのでリアルは無視して、すり抜けにくい値に調整した • パラメータ調整 ◦ 結局、ゲームの面白さの肝はパラメータ調整 ◦ すり抜け対策にも時間を取られながらギリギリまで調整
資料 GitHub: https://github.com/satoyuichi/StruckOut Three.js: https://github.com/mrdoob/three.js Cannon-es: https://github.com/pmndrs/cannon-es Glitch: https://glitch.com/signin
More Decks by Yuichi Sato
See All by Yuichi Sato
深層学習学習中
satoyuichi
0
56
深層学習はじめました
satoyuichi
0
66
瞑想アプリ
satoyuichi
0
54
SDF を作りたかった
satoyuichi
0
580
初めての iPhone ネイティブアプリ
satoyuichi
0
71
ミクちゃんが歌ったら 家に帰ろう
satoyuichi
0
28
体温記録送信アプリ
satoyuichi
0
35
コロナ横目にバージョンアップ
satoyuichi
0
89
本日のシェーダー芸
satoyuichi
1
830
Other Decks in Programming
See All in Programming
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
790
はじめてのPLATEAU
nokonoko1203
1
670
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
360
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
580
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
190
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.5k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
410
Beyond Chatbots: Agentic UI with Open Standards @W-JAX 2026, München
manfredsteyer
PRO
0
130
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
670
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
210
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
Believing is Seeing
oripsolob
1
290
Testing 201, or: Great Expectations
jmmastey
46
8.4k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Context Engineering - Making Every Token Count
addyosmani
9
1.3k
Being A Developer After 40
akosma
PRO
92
590k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Are puppies a ranking factor?
jonoalderson
2
4.2k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k