Save 37% off PRO during our Black Friday Sale! »

Nought to real-time, multiplayer game in 16 hours with Pusher

Nought to real-time, multiplayer game in 16 hours with Pusher

D9173c4a9c01926d9fc4d1dbc4cb17e1?s=128

Philip Roberts

July 01, 2012
Tweet

Transcript

  1. @PHILIP_ROBERTS

  2. None
  3. A story

  4. Rory Fitzpatrick JIM NEWBERY PADMINI RAY MURRAY

  5. Culture hacking

  6. Shakey or A massively multiplayer shakespeare recital with virtual tomatoes

    and fart sounds – over websockets
  7. None
  8. None
  9. WEBSOCKETS

  10. None
  11. go here now: http://bit.ly/websocks yes, you

  12. //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
  13. BUILDING THE GAME

  14. ARCHITECTURE Pusher GAME-serVER GAME-CLIENTS

  15. TEAMS

  16. MOCKUPS & EVENTS trigger(‘player:register’, ‘phil’) trigger(‘player:deliver’, ‘phil’, {...}) trigger(‘player:hurl’, ‘john’,

    ‘tomato’)
  17. GAME-serVER

  18. GAME-CLIENTs

  19. LEARNINGS

  20. VERY MODULAR

  21. EVENT-DRIVEN == AWESOME

  22. EVENTS ON THE WALL

  23. WEBSOCKET MADNESS

  24. Fin.