benny! Posted November 27, 2013 Share Posted November 27, 2013 Plus some additional HTML and CSS, of course. But still - just the logic, input handling and stuff in 36 lines is not bad at all: http://jsfiddle.net/ova777/kFxja/ AhmedElyamani 1 Quote Link to comment Share on other sites More sharing options...
OTFirstClass Posted November 30, 2013 Share Posted November 30, 2013 I love this code and I have been trying to pick it apart.I can't figure out how to restart the game after it ends though. I don't want to refresh the browser so I want to put a button in that will reset everything and start again.Any tips on how to do this? Whenever I try, the objects move two spaces instead of 1 and the speed never resets back to 500 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.