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
キャンフェスにゲームを出そう -StruckOut 編-
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuichi Sato
December 23, 2020
Programming
0
23
キャンフェスにゲームを出そう -StruckOut 編-
Yuichi Sato
December 23, 2020
Tweet
Share
More Decks by Yuichi Sato
See All by Yuichi Sato
深層学習学習中
satoyuichi
0
34
深層学習はじめました
satoyuichi
0
48
瞑想アプリ
satoyuichi
0
45
SDF を作りたかった
satoyuichi
0
510
初めての iPhone ネイティブアプリ
satoyuichi
0
60
ミクちゃんが歌ったら 家に帰ろう
satoyuichi
0
17
体温記録送信アプリ
satoyuichi
0
22
コロナ横目にバージョンアップ
satoyuichi
0
76
本日のシェーダー芸
satoyuichi
1
710
Other Decks in Programming
See All in Programming
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
400
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
200
米国のサイバーセキュリティタイムラインと見る Goの暗号パッケージの進化
tomtwinkle
2
550
AHC061解説
shun_pi
0
360
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
540
AIコーディングの理想と現実 2026 | AI Coding: Expectations vs. Reality 2026
tomohisa
0
1.2k
New in Go 1.26 Implementing go fix in product development
sunecosuri
0
420
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
120
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1k
Ruby and LLM Ecosystem 2nd
koic
1
550
AI主導でFastAPIのWebサービスを作るときに 人間が構造化すべき境界線
okajun35
0
700
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
440
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
The Spectacular Lies of Maps
axbom
PRO
1
620
How to Ace a Technical Interview
jacobian
281
24k
Fireside Chat
paigeccino
42
3.8k
Rails Girls Zürich Keynote
gr2m
96
14k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
130
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
78
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
330
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
380
Site-Speed That Sticks
csswizardry
13
1.1k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
Transcript
キャンフェスにゲームを出そう -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