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
Nought to real-time, multiplayer game in 16 hou...
Search
Philip Roberts
July 01, 2012
Programming
1
440
Nought to real-time, multiplayer game in 16 hours with Pusher
Philip Roberts
July 01, 2012
Tweet
Share
More Decks by Philip Roberts
See All by Philip Roberts
ScotlandJS 2015 Keynote - Learning & Vulnerability; Teaching & Empathy
latentflip
1
570
Career "advice"
latentflip
0
3.1k
Back to Front: One man's journey from server to client side.
latentflip
4
240
Introduction to d3
latentflip
10
420
A Lightning Talk on Lightning
latentflip
0
4.7k
Other Decks in Programming
See All in Programming
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
3
3k
rack-attack gemによるリクエスト制限の失敗と学び
pndcat
0
220
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
310
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
170
PostgreSQLで手軽にDuckDBを使う!DuckDB&pg_duckdb入門/osc25hi-duckdb
takahashiikki
0
250
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.5k
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.5k
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
220
ゆくKotlin くるRust
exoego
1
210
Data-Centric Kaggle
isax1015
2
630
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
480
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
380
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
40
2.2k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
0
91
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
58
41k
Visualization
eitanlees
150
16k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
A Soul's Torment
seathinner
5
2.1k
The Spectacular Lies of Maps
axbom
PRO
1
440
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
71
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
120
Producing Creativity
orderedlist
PRO
348
40k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.2k
Transcript
@PHILIP_ROBERTS
None
A story
Rory Fitzpatrick JIM NEWBERY PADMINI RAY MURRAY
Culture hacking
Shakey or A massively multiplayer shakespeare recital with virtual tomatoes
and fart sounds – over websockets
None
None
WEBSOCKETS
None
go here now: http://bit.ly/websocks yes, you
//Running on the client (your phone) var pusher = new
Pusher('aa16fedd0ca224252c4d'); var channel = pusher.subscribe('chatroom'); channel.bind('message', function(data) { document.write( data.from+' said: '+data.content+"<br>" ); }); http://bit.ly/websocks
BUILDING THE GAME
ARCHITECTURE Pusher GAME-serVER GAME-CLIENTS
TEAMS
MOCKUPS & EVENTS trigger(‘player:register’, ‘phil’) trigger(‘player:deliver’, ‘phil’, {...}) trigger(‘player:hurl’, ‘john’,
‘tomato’)
GAME-serVER
GAME-CLIENTs
LEARNINGS
VERY MODULAR
EVENT-DRIVEN == AWESOME
EVENTS ON THE WALL
WEBSOCKET MADNESS
Fin.