liamlime
2015-04-21 17:02
"Web" link contains a zip with the files, which are run in a browser. You should find a web hosting provider and upload those so people can just run the test.htm page there.
Otherwise, the game is neat, but unbalanced. I had like 60+ seconds in no time. Also the camera should follow the player more closely. I only ever got killed by off-screen enemies.
jmborden
2015-05-02 18:12
You really need a better mechanic than refreshing the page to restart. What I do is have an init() function and two functions which call requestAnimationFrame() on themselves, gameloop() and gamover(). On startup, init() resets the world and calls requestAnimationFrame() on gameloop(). If the gameover condition occurs (e.g. a saw hits your character) in gameloop() it calls gameover(), otherwise gameloop() calls requestAnimationFrame() on itself. The gameover() loop calls itself until the restart condition is met (such as hitting a space bar) and then calls init() to restart the cycle.
There is another issue where the game is creating tons of div elements in the page structure in Chrome. No sure what that is about. It might be causing the lag huo-cuo is mentioning.
Like Liam said, you should also host this somewhere. That's the beauty of HTML5 games, they can be run right in the browser!
The game itself isn't bad, but paint is a pretty old "weapon". There was an old arcade game called "Make Trax" where you had to paint the entire board in a maze game reminiscent of Pac-Man. Also check out Splatoon, an upcoming game from Nintendo on the Wii-U.
Nice entry, glad to see someone else making HTML/JS games with Three.js.