Together Alone Pokki Contest Entry
Jan from QwokGames sent over their Pokki Contest Entry (and current #8 entrant in the standings – help em out by downloading and playing!) along with some notes on using the Pokki API.
He describes Together Alone as:
“A puzzle game with a gentle difficulty curve and a cute little story. In most other puzzle games you control one character, but in Together Alone you can actually switch between two characters, each with their own abilities. They have to work together to solve each puzzle.”
From a HTML5 Technology standpoint:
In terms of HTML5 technology, the game uses our custom framework DareJS. This is still heavily in development, but a preview is available from our site, see below. For tooltips and such we use Canvas Text and a custom font defined in the CSS. For sound, we’ve covered all bases: we use SoundManager 2 for HTML5 or Flash audio, and some custom code of our own for the Web Audio API in Chrome and Pokki. Using Web Audio allows us to filter the music through a high-pass or low-pass filter depending on which character is active. This provides for subtle changes in the soundscape while playing the game.
About Using Pokki:
“integrating an existing HTML5 webapp is pretty easy. It’s basically just adding handlers for a handful of events such as popup_shown, popup_hidden, context_menu, etc. Correctly restoring the app after unload can be a bit more work, though. You see, Pokki automatically unloads inactive apps after 20 minutes or so, and recommends using localStorage to make sure the app can later be restored to the state it was in when it was unloaded. Depending on how complex your app is, saving and restoring the full state might be a bit of a chore. If you’re designing a new app for Pokki, taking this into account from the start will be helpful.”