Monday, 24 June 2013

Google Launches Cube Slam, An Open Source Pong Clone, To Show Off The Power Of WebRTC And WebGL

slam_bears

Google today launched Cube Slam, an open source pong clone that you can play against the computer or a friend in the browser. That by itself wouldn’t be all that exciting, but Google created this game to show off the power of WebRTC, Web Audio and WebGL.
For most people (or at least for developers),WebRTC is now synonymous with plugin-free video conferences in the browser and Cube Slam uses this to show you a live video and audio stream of your friend on a virtual screen while you’re playing.
Maybe more importantly, though, the game also uses WebRTC’s RTC Peer Connection and RTC Data Channel – two features most developers are probably not aware of – to send audio, video and all the “bits and pieces that keep the game in sync” back and forth between the two machines.


Google claims that Cube Slam is the ” first large-scale application to use RTC Data Channel, which provides an API similar to Web Socket, but sends the data over the RTC Peer Connection peer-to-peer link.”

No comments:

Post a Comment