The reason this is such an exciting API is that it allows you to support offline experiences, giving developers complete control over what exactly that experience is. So here's what we wanted to learn (and how we'd apply it to our idea):Ī Service Worker is a script that is run by your browser in the background, separate from a web page, opening the door to features which don't need a web page or user interaction. We had lots of other ideas for gameplay improvements as well, but our main goal was to learn. We wanted to make multiple sessions (lobbies) possible as well.Making it multiplayer (not just one device): "serve" the game on one big screen, and let people connect with their device as a "client" (so they don't render the actual gamefield, just a controller interface).Using smartphones as controllers: If the device has a gyro sensor (we automatically detect this), we use that to control left or right, failing that we just provide buttons to press.We already had (the basis for) a game and some ideas to make it cooler:
For every player you outlive you earn a point. He then has to wait for the start of the next round to play again. The players can only adjust the direction of the line. A player loses if his line touches a line or the border of the game. You and your friends share the keyboard to control the line. In the original game, the goal of the game is to survive as long as possible. (*) Disclaimer: Good Artists Copy Great Artists Steal Turns out even the code (*) for this already exists in HTML5: I wanted to base (*) the gameplay off of a game I already knew and loved to play at LAN parties, called Achtung, die kurve! Specifically, I already knew about a cool Chrome experiment called super sync sports, which uses the smartphone as a controller. I started by doing some research about what's already out there. When thinking about what kind of project we could come up with for the Foreach Ship It Day, I figured making a web game could be a very fun way to learn some new things.
Smartphones are used as controllers, while a big, projected "main screen" serves as the playing ground. The CurveFever project is a multiplayer "snake" game that uses some of the latest webtechnology.