Update Submission for the js1k competition. My 3rd, and final one only the last one you enter is judged and I think this is going to be as good as it gets from me that is. I ended up settling on a clone of a cool game I used to play when I was a network admin in the Air Force called Wire Hang Redux.
This entry was more of a challenge than my previous one, I had to not only make it look presentable but also had to worry about game play, simple physics, and of course lack of bugs. I think it turned out pretty well, and I owe a big thanks to the Google Closure Compiler, it definitely made things easier. The biggest challenge was trying to decide on what features to add. I had a choice between keeping the high score and allowing users to try again (without refresh) , or the option of making it harder the higher they go. I chose the latter which I think was a good decision.
Some things I learned from the contest,
- pre calculated values use much less space, (.017 uses much less space than pi/180)
- There are shorter ways to get an element through the dom than getElementById
- You can make something cool and fun in 1k using Javascript
I think the next thing I will do is make a bigger/better/cooler version.
Now just imagine if I had 640k to work with!
I love this game.
My highest score is 4997, then things get pretty hard, mainly because the only bug I found: The hook aims a bit to the right of the mouse, in fact it’s more than 4 or 5 pixels to the right, and that makes it very difficult to keep climbing above 5000.
I plan on redoing this with better graphics and gameplay, I had a hard enough time squeezing what I did in 1k.. which is nothing compared to what some people were able to do with only 1k.