input
With the help of a hidden, focused input (see sounds) we can get various levels of input based on the type of game screen you create. Here are the terms I've been using:
tiny
Only the bottom screen. Full D-Pad support as well as B and A buttons and single-tap on the touch screen.
skinny
Both screens, top screen is not in wide mode. D-Pad Left, Right and Down are fine. B & A and single-tap are as well. D-Pad Up bounces the screen.
tbone
Both screens, top screen is wide. D-Pad Down is ok. B & A and single-tap are as well. D-Pad Left, Right and Up bounce the screen. Left & Right are hard to recover from.
sounds
done
Make the download complete sound at any time. I'm calling it the "done" sound. It involves creating and then destroying an empty iframe. Here's the (updated) code (using jQuery, but could be done without it):
CODEÂÂ
ÂÂÂÂ$(function () {
ÂÂÂÂÂÂ$(document).keydown(function (e) {
ÂÂÂÂÂÂÂÂif (e.which == 13) {
ÂÂÂÂÂÂÂÂÂÂ$('').appendTo("body").remove();
ÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂ});
ÂÂÂÂ});
ÂÂ
cancel & ok
If you drop some HTML like the following:
CODE
and give the input focus you get both B and A button sounds when the player presses the buttons (though after each B button sound you have to reset the focus). I can't get these sounds to happen without player interaction.
move
If you keep focus on an input type=number surrounded on all sides by other inputs via either list items or a table, the D-Pad will make a new sound that I'm calling "move". Again, I can't make this sound without player interaction.
more
Get more info on my test site (new link as of 2011-09-28) http://surii.net/hack/
-ryanttb
With the help of a hidden, focused input (see sounds) we can get various levels of input based on the type of game screen you create. Here are the terms I've been using:
tiny
Only the bottom screen. Full D-Pad support as well as B and A buttons and single-tap on the touch screen.
skinny
Both screens, top screen is not in wide mode. D-Pad Left, Right and Down are fine. B & A and single-tap are as well. D-Pad Up bounces the screen.
tbone
Both screens, top screen is wide. D-Pad Down is ok. B & A and single-tap are as well. D-Pad Left, Right and Up bounce the screen. Left & Right are hard to recover from.
sounds
done
Make the download complete sound at any time. I'm calling it the "done" sound. It involves creating and then destroying an empty iframe. Here's the (updated) code (using jQuery, but could be done without it):
CODEÂÂ
ÂÂÂÂ$(function () {
ÂÂÂÂÂÂ$(document).keydown(function (e) {
ÂÂÂÂÂÂÂÂif (e.which == 13) {
ÂÂÂÂÂÂÂÂÂÂ$('').appendTo("body").remove();
ÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂ});
ÂÂÂÂ});
ÂÂ
cancel & ok
If you drop some HTML like the following:
CODE
and give the input focus you get both B and A button sounds when the player presses the buttons (though after each B button sound you have to reset the focus). I can't get these sounds to happen without player interaction.
move
If you keep focus on an input type=number surrounded on all sides by other inputs via either list items or a table, the D-Pad will make a new sound that I'm calling "move". Again, I can't make this sound without player interaction.
more
Get more info on my test site (new link as of 2011-09-28) http://surii.net/hack/
-ryanttb