News for hackers. Stuff that matters.
Re:Power Surge – optimize the JavaScript in this HTML5 game by yissachar on Tuesday June 02, 2015 @11:57PM (#9650495)
Very cool concept!

I spent a while tweaking the code to get more CPU cycles, but after a while tired of mining the asteroids manually, so I just got rid of them:

  ENGINE.Game.spawnAsteroid = function () {}
After that the next logical step was to give myself more ships:

  SHIP_CPU_COST = 0.001;
Of course, it's a lot more interesting (and challenging!) to actually play by the rules.

There are no comments on this comment yet.