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
450
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Nought to real-time, multiplayer game in 16 hours with Pusher
Philip Roberts
July 01, 2012
More Decks by Philip Roberts
See All by Philip Roberts
ScotlandJS 2015 Keynote - Learning & Vulnerability; Teaching & Empathy
latentflip
1
590
Career "advice"
latentflip
0
3.2k
Back to Front: One man's journey from server to client side.
latentflip
4
240
Introduction to d3
latentflip
10
430
A Lightning Talk on Lightning
latentflip
0
4.8k
Other Decks in Programming
See All in Programming
「なぜそう決めたのか」を残し続ける仕組み ― Notion AI カスタムエージェント × Slack連携による設計判断の自動記録 - NIKKEI Tech Talk #47
niftycorp
PRO
0
260
OS アップデート対応の取り組み方がもっと共有されてほしい
andpad
0
110
ビデオ通話が繋がる0.2秒で何が起きているのか
supurazako
2
120
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
240
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
500
才能?センス?知らん、 続けたもん勝ちだ。-- 結婚・出産・癌を越えてなお、私がプロダクトを創り続ける理由
16bitidol
2
820
Developing with AI Agents — Codex, Claude Code & Cowork Practical Guide
x5gtrn
PRO
0
1.3k
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
130
Creating Composable Callables in Contemporary C++
rollbear
0
200
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
580
SREの積み重ねがAI駆動開発のガードレールになった ― 7つの実践/SRE Guardrails The 7
tomoyakitaura
8
3.7k
SREは、MCPとSRE Agentをこう使え!
kazumax55
0
150
Featured
See All Featured
Building an army of robots
kneath
306
46k
Making the Leap to Tech Lead
cromwellryan
135
10k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Faster Mobile Websites
deanohume
310
32k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.7k
Speed Design
sergeychernyshev
33
1.9k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
350
Code Reviewing Like a Champion
maltzj
528
40k
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
BBQ
matthewcrist
89
10k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
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.