SlideShare una empresa de Scribd logo
1 de 43
Descargar para leer sin conexión
{	
Your  Phone  is  the  Controller    
with  Multiplayer  
JSDC  2013	
吳宗德  (Aidan  Wu)
Long,  Long  Time  Ago
Connected  TV
192.168.0.168
+  192.168.0.168
+  192.168.0.168
+  ADDRESS
+  192.168.0.168
+  ADDRESS
+  192.168.0.168
+  ADDRESS
+  192.168.0.168
+  ADDRESS
WebSocket  »
Your  Phone  is  the  Controller  
mobile-­‐‑input-­‐‑multitouch
mobile-­‐‑input-­‐‑multitouch
mobile-­‐‑input-­‐‑multitouch
WebSocket  Gateway
HTML5  Canvas
Simple  Host  Server
1.  LOGIC  /  RULE	
2.  GRAPHICS	
3.  INPUT	
4.  SOUND	
5.  MUSIC	
6.  CONNECT  (MULTIPLAYER)	
7.  ASSETS  

Anatomy  of  a    
Game-­‐‑based  APP  
1.  Install?  	
Write  once  play  anywhere	
2.  Graphics?  Canvas  &  WebGL	
3.  Sounds?  HTML5  audio	
4.  Communication?  Multiplayer  game  server  	
5.  Data?  Web  storage    /  Offline	
6.  Controls?  Keyboard  and  touch  	

Why  is  HTML5  gaming  
so  cool?  
Graphics
 Communication
Input/
Control
CANVAS-­‐‑based  UI
The  Xerox  8010  Star  Workstation  
introduced  the  first  commercial  GUI
<CANVAS>  element
Drawing  paths,  boxes,  circles,  
characters,  and  adding  images,  
on  the  fly,  via  scripting
Tile  +  Sprite
LAYERS
GAME  LOOP
Polling  vs  Event  driven
I
Input
Logic
OFF-­‐‑SCREEN
Display
DRAWING  OFF-­‐‑SCREEN
backbuffer
Gamepad  Generation
u   Hammer.js  	
u   Touchy.js	
u   QuoJS  	

Multi-­‐‑touch  Gestures  
MVC
M - Moving toward (continuous)"
V - Looking touchable"
C – Touch(Gesture)-aware
Data  Communication
u  RFC  6454  -­‐‑  The  Web  Origin  Concept  	
u  Same-­‐‑Origin  Policy  	
u  Cross-­‐‑Document  Messaging  	
u  PostMessage  Architecture  	
u  XMLHbpRequest  Level  2  	
u  Comet	
u  WebSockets  	
Connectivity  and  Real-­‐‑Time
WebSockets  ?
Long-­‐‑polling  /  
COMET
Polling  /  AJAX
Bandwidth  optimized  
binary  encoding  for  
JavaScript
BiSON.js
Building  a  Scalable  
Game  Server  
• Scalable	
• Extensible	
• Performance
New  Gaming  Experience  
on  Big  and  Small  Screens  
Chrome  World  Wide  Maze  
Chrome  Super  Sync  Sports  
Q  &  A
Some  issues  you  might  
encounter  

Más contenido relacionado

Destacado

就差這味!讓你的APP亮點突圍
就差這味!讓你的APP亮點突圍就差這味!讓你的APP亮點突圍
就差這味!讓你的APP亮點突圍Aidan Wu
 
服務設計深入淺出-class-002
服務設計深入淺出-class-002服務設計深入淺出-class-002
服務設計深入淺出-class-002Aidan Wu
 
服務設計深入淺出-class-001
服務設計深入淺出-class-001 服務設計深入淺出-class-001
服務設計深入淺出-class-001 Aidan Wu
 
Designing For Interaction with Web Interface
Designing For Interaction with Web InterfaceDesigning For Interaction with Web Interface
Designing For Interaction with Web InterfaceAidan Wu
 
20150320 - 數位時代 - 創業小聚高雄場 - QDM 網路開店平台
20150320 - 數位時代 - 創業小聚高雄場 - QDM 網路開店平台20150320 - 數位時代 - 創業小聚高雄場 - QDM 網路開店平台
20150320 - 數位時代 - 創業小聚高雄場 - QDM 網路開店平台Aidan Wu
 
服務設計思考工作坊 (Service Design Thinking Workshop)
服務設計思考工作坊 (Service Design Thinking Workshop)服務設計思考工作坊 (Service Design Thinking Workshop)
服務設計思考工作坊 (Service Design Thinking Workshop)Aidan Wu
 
Think it - 美學力+創造力 = 美力創價
Think it - 美學力+創造力 = 美力創價Think it - 美學力+創造力 = 美力創價
Think it - 美學力+創造力 = 美力創價Aidan Wu
 
Mobile Interaction Design - 行動世界裡的互動設計之 7 言心旅
Mobile Interaction Design - 行動世界裡的互動設計之 7 言心旅Mobile Interaction Design - 行動世界裡的互動設計之 7 言心旅
Mobile Interaction Design - 行動世界裡的互動設計之 7 言心旅Aidan Wu
 

Destacado (8)

就差這味!讓你的APP亮點突圍
就差這味!讓你的APP亮點突圍就差這味!讓你的APP亮點突圍
就差這味!讓你的APP亮點突圍
 
服務設計深入淺出-class-002
服務設計深入淺出-class-002服務設計深入淺出-class-002
服務設計深入淺出-class-002
 
服務設計深入淺出-class-001
服務設計深入淺出-class-001 服務設計深入淺出-class-001
服務設計深入淺出-class-001
 
Designing For Interaction with Web Interface
Designing For Interaction with Web InterfaceDesigning For Interaction with Web Interface
Designing For Interaction with Web Interface
 
20150320 - 數位時代 - 創業小聚高雄場 - QDM 網路開店平台
20150320 - 數位時代 - 創業小聚高雄場 - QDM 網路開店平台20150320 - 數位時代 - 創業小聚高雄場 - QDM 網路開店平台
20150320 - 數位時代 - 創業小聚高雄場 - QDM 網路開店平台
 
服務設計思考工作坊 (Service Design Thinking Workshop)
服務設計思考工作坊 (Service Design Thinking Workshop)服務設計思考工作坊 (Service Design Thinking Workshop)
服務設計思考工作坊 (Service Design Thinking Workshop)
 
Think it - 美學力+創造力 = 美力創價
Think it - 美學力+創造力 = 美力創價Think it - 美學力+創造力 = 美力創價
Think it - 美學力+創造力 = 美力創價
 
Mobile Interaction Design - 行動世界裡的互動設計之 7 言心旅
Mobile Interaction Design - 行動世界裡的互動設計之 7 言心旅Mobile Interaction Design - 行動世界裡的互動設計之 7 言心旅
Mobile Interaction Design - 行動世界裡的互動設計之 7 言心旅
 

Similar a JSDC2013_Your Phone is the Controller with Multiplayer

Casual Engines 2009
Casual Engines 2009Casual Engines 2009
Casual Engines 2009David Fox
 
Html5 game using impact js
Html5 game using impact jsHtml5 game using impact js
Html5 game using impact jsHa Bogay
 
7 reasons why video conferencing world will never
7 reasons why video conferencing world will never7 reasons why video conferencing world will never
7 reasons why video conferencing world will neverTrueConf
 
HMS Core Game Solution- create the immersive game world / Fei Tong (Huawei)
HMS Core Game Solution- create the immersive game world / Fei Tong (Huawei)HMS Core Game Solution- create the immersive game world / Fei Tong (Huawei)
HMS Core Game Solution- create the immersive game world / Fei Tong (Huawei)DevGAMM Conference
 
Internet of Things 101 - Part II
Internet of Things 101 - Part IIInternet of Things 101 - Part II
Internet of Things 101 - Part IIYoonseok Hur
 
Responsive vs Adaptive Web Design - What about Device Channels?
Responsive vs Adaptive Web Design - What about Device Channels?Responsive vs Adaptive Web Design - What about Device Channels?
Responsive vs Adaptive Web Design - What about Device Channels?Stefan Bauer
 
Deploy All The Games
Deploy All The GamesDeploy All The Games
Deploy All The GamesAdam Hill
 
WebRTC: Bring real-time to the web - Barcamp Saigon 2012
WebRTC: Bring real-time to the web - Barcamp Saigon 2012WebRTC: Bring real-time to the web - Barcamp Saigon 2012
WebRTC: Bring real-time to the web - Barcamp Saigon 2012Oliver N
 
Vietnam mobile day 2012 html5 game using impact js - aiti-aptech
Vietnam mobile day 2012   html5 game using impact js - aiti-aptechVietnam mobile day 2012   html5 game using impact js - aiti-aptech
Vietnam mobile day 2012 html5 game using impact js - aiti-aptechQuang Anh Le
 
Develop Game HTML5 for mobile by ImpactJS Engine
Develop Game HTML5 for mobile by ImpactJS Engine Develop Game HTML5 for mobile by ImpactJS Engine
Develop Game HTML5 for mobile by ImpactJS Engine action.vn
 
WebRTC - Brings Real-Time to the Web
WebRTC - Brings Real-Time to the WebWebRTC - Brings Real-Time to the Web
WebRTC - Brings Real-Time to the WebVũ Nguyễn
 
2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things
2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things
2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of ThingsBruno Capuano
 
Putting an Apple IIgs BBS on the internet
Putting an Apple IIgs BBS on the internetPutting an Apple IIgs BBS on the internet
Putting an Apple IIgs BBS on the internetAndrew Roughan
 
IoTSummit: Design and architect always disconnected iot system
IoTSummit: Design and architect always disconnected iot systemIoTSummit: Design and architect always disconnected iot system
IoTSummit: Design and architect always disconnected iot systemMarco Dal Pino
 
Streaming with Azure Media Services
Streaming with Azure Media ServicesStreaming with Azure Media Services
Streaming with Azure Media ServicesZeddy Iskandar
 
Internet of Thing, is there a place for C# and .NET Framework?
Internet of Thing, is there a place for C# and .NET Framework?Internet of Thing, is there a place for C# and .NET Framework?
Internet of Thing, is there a place for C# and .NET Framework?William S. Rodriguez
 
Supelec m2 m - iot - course 1 - update 2015 - part 3 - conclusion - v(0.1)
Supelec   m2 m - iot - course 1 - update 2015 - part 3 - conclusion - v(0.1)Supelec   m2 m - iot - course 1 - update 2015 - part 3 - conclusion - v(0.1)
Supelec m2 m - iot - course 1 - update 2015 - part 3 - conclusion - v(0.1)Thierry Lestable
 
HTML5 & JavaScript Games
HTML5 & JavaScript GamesHTML5 & JavaScript Games
HTML5 & JavaScript GamesRobin Hawkes
 

Similar a JSDC2013_Your Phone is the Controller with Multiplayer (20)

Casual Engines 2009
Casual Engines 2009Casual Engines 2009
Casual Engines 2009
 
Html5 game using impact js
Html5 game using impact jsHtml5 game using impact js
Html5 game using impact js
 
Google tv
Google tvGoogle tv
Google tv
 
7 reasons why video conferencing world will never
7 reasons why video conferencing world will never7 reasons why video conferencing world will never
7 reasons why video conferencing world will never
 
HMS Core Game Solution- create the immersive game world / Fei Tong (Huawei)
HMS Core Game Solution- create the immersive game world / Fei Tong (Huawei)HMS Core Game Solution- create the immersive game world / Fei Tong (Huawei)
HMS Core Game Solution- create the immersive game world / Fei Tong (Huawei)
 
Internet of Things 101 - Part II
Internet of Things 101 - Part IIInternet of Things 101 - Part II
Internet of Things 101 - Part II
 
Responsive vs Adaptive Web Design - What about Device Channels?
Responsive vs Adaptive Web Design - What about Device Channels?Responsive vs Adaptive Web Design - What about Device Channels?
Responsive vs Adaptive Web Design - What about Device Channels?
 
Deploy All The Games
Deploy All The GamesDeploy All The Games
Deploy All The Games
 
WebRTC: Bring real-time to the web - Barcamp Saigon 2012
WebRTC: Bring real-time to the web - Barcamp Saigon 2012WebRTC: Bring real-time to the web - Barcamp Saigon 2012
WebRTC: Bring real-time to the web - Barcamp Saigon 2012
 
Vietnam mobile day 2012 html5 game using impact js - aiti-aptech
Vietnam mobile day 2012   html5 game using impact js - aiti-aptechVietnam mobile day 2012   html5 game using impact js - aiti-aptech
Vietnam mobile day 2012 html5 game using impact js - aiti-aptech
 
Develop Game HTML5 for mobile by ImpactJS Engine
Develop Game HTML5 for mobile by ImpactJS Engine Develop Game HTML5 for mobile by ImpactJS Engine
Develop Game HTML5 for mobile by ImpactJS Engine
 
WebRTC - Brings Real-Time to the Web
WebRTC - Brings Real-Time to the WebWebRTC - Brings Real-Time to the Web
WebRTC - Brings Real-Time to the Web
 
2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things
2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things
2015 06 11 Windows 10 Developer Readiness by MVPs - Internet Of Things
 
Putting an Apple IIgs BBS on the internet
Putting an Apple IIgs BBS on the internetPutting an Apple IIgs BBS on the internet
Putting an Apple IIgs BBS on the internet
 
Literature - Fact Sheet
Literature - Fact SheetLiterature - Fact Sheet
Literature - Fact Sheet
 
IoTSummit: Design and architect always disconnected iot system
IoTSummit: Design and architect always disconnected iot systemIoTSummit: Design and architect always disconnected iot system
IoTSummit: Design and architect always disconnected iot system
 
Streaming with Azure Media Services
Streaming with Azure Media ServicesStreaming with Azure Media Services
Streaming with Azure Media Services
 
Internet of Thing, is there a place for C# and .NET Framework?
Internet of Thing, is there a place for C# and .NET Framework?Internet of Thing, is there a place for C# and .NET Framework?
Internet of Thing, is there a place for C# and .NET Framework?
 
Supelec m2 m - iot - course 1 - update 2015 - part 3 - conclusion - v(0.1)
Supelec   m2 m - iot - course 1 - update 2015 - part 3 - conclusion - v(0.1)Supelec   m2 m - iot - course 1 - update 2015 - part 3 - conclusion - v(0.1)
Supelec m2 m - iot - course 1 - update 2015 - part 3 - conclusion - v(0.1)
 
HTML5 & JavaScript Games
HTML5 & JavaScript GamesHTML5 & JavaScript Games
HTML5 & JavaScript Games
 

Último

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 

Último (20)

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 

JSDC2013_Your Phone is the Controller with Multiplayer