last week i’ve been asked to built a new onlinegame for our kidscorner regarding a big horsechampionchip in our city in juli. first i had no idea, but then came up with a young sea horse living in the moat of the jumpcourse whose job it is to collect the horseshoes that some horses have lost while jumping … crazy, isn’t it
move the sea horse using the arrows (keyboard desktop, tappad mobile), collect the horseshoes, avoid contacts with other residents of the moat …
special thanks to @MaxZieb and @Photics … i borrowed some shared code
so here is the betaversion. suggestions, bugreports … any comments are welcome
Looks like someone used the Photics-Physics-Bridge – very nice! Unlike the Verrazzano-Narrows Bridge, which costs $19 to go from Brooklyn to Staten Island, there's no toll to use this code. Actually, I feel like the code probably should be part of Hype already.
Thanks for mentioning me. Seeing this is motivation to get that Hype Book done.
The arrow keys also scroll the page for me on Safari; perhaps you could do an event.preventDefault() on the keyboard event which would restrict this under certain conditions (like only when the game is active)?