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
LiveViewでマルチプレイっぽいゲームを作りたくて調べてみた tokyo.ex#11
Search
kodam
June 30, 2019
0
290
LiveViewでマルチプレイっぽいゲームを作りたくて調べてみた tokyo.ex#11
kodam
June 30, 2019
Tweet
Share
More Decks by kodam
See All by kodam
ActivetePopを使ってみた
oppai
0
13k
Featured
See All Featured
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
190
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
92
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
GraphQLとの向き合い方2022年版
quramy
50
14k
The browser strikes back
jonoalderson
0
300
Abbi's Birthday
coloredviolet
0
4.2k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.3k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
180
The untapped power of vector embeddings
frankvandijk
1
1.5k
Prompt Engineering for Job Search
mfonobong
0
140
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
1
340
Transcript
LiveViewでマルチプレイっぽい ゲームを作りたくて調べてみた tokyo.ex#11
自己紹介 • 村山寛明 / @kodam • Erlang & Elixir Fest
2019 ◦ k8s / Protocol Buffers ◦ https://speakerdeck.com/mixi_engineers/xflag-x-supotu-x-elixir • Elixir歴 ◦ 4年目くらい • 興味 ◦ マルチプレイ / リアルタイム通信 • 趣味 ◦ クラフトビール / ボードゲーム / ポーカー
LiveView • LiveView面白そう ◦ これゲーム作れるのでは?? • アーキテクチャ案 ◦ データストア ▪
ets/reds等 ◦ ゲームマネージャ(ゲームのルールを適用するやつ ) ▪ GenServer ◦ レンダラ ▪ LiveView -> HTMLベース??? • 調べてみた ◦ 先駆者がいろいろやってた ◦ https://shift.infinite.red/phoenix-liveview-round-up-the-story-so-far-3cbb1648e940
DEMOとコードの解説 • デプロイ間に合いませんでしたのでコードだけ公開>< ◦ https://github.com/oppai/mmo_liveview
所感 • CanvasやWebGL使いたい ◦ LiveViewで扱う方法を知ってる人がいたら教えてください ▪ DOMの変更を検出する方法があるっぽいので • 簡単なゲームフレームワークにも作れそう? ◦
SVGはSplite等の概念と似てる • スケールする? ◦ ロジックの部分は既存技術で可能 (チャンネルやルームで分割 ) ◦ レンダー部分が貧弱、 SVGだと限界ありそう • もうちょっとまともなゲームつくってみる