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
LiveViewでマルチプレイっぽいゲームを作りたくて調べてみた tokyo.ex#11
Search
kodam
June 30, 2019
310
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
LiveViewでマルチプレイっぽいゲームを作りたくて調べてみた tokyo.ex#11
kodam
June 30, 2019
More Decks by kodam
See All by kodam
ActivetePopを使ってみた
oppai
0
13k
Featured
See All Featured
The untapped power of vector embeddings
frankvandijk
2
1.9k
Making the Leap to Tech Lead
cromwellryan
135
10k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
It's Worth the Effort
3n
188
29k
Making Projects Easy
brettharned
120
6.8k
Navigating Team Friction
lara
192
16k
RailsConf 2023
tenderlove
30
1.6k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
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だと限界ありそう • もうちょっとまともなゲームつくってみる