Re:Great Tower Defense Game on Canvas
by metachris on Sunday November 07, 2010 @08:15AM
(#1879264)
Very nice game, but a little basic. Some enemies seem to behave differently (vulnerable to different weapons), although there is no indication with color or shape. A minor bug: Once you click on a unit to build, you can't change your mind and "unselect" it anymore, forcing you to build that even though clicking it could have been a mistake.
Also it's a bit annoying that if you want to build the same unit type multiple times, you have to click on it every time again. Keyboard shortcuts 1-4 to select each unit to build would be great. Another shortcut for upgrading and selling, and the game would be a lot more usable and fun to play.
Re:Great Tower Defense Game on Canvas
by _delirium on Sunday November 07, 2010 @02:26AM
(#1878939)
Hmm, the graphics part works smoothly for me, but it seems to be dropping input events. Attempting to upgrade a turret when there's a lot of action happening on screen requires clicking a bunch of times before it finally registers. (Chrome 9.0.572.0)
Re:Great Tower Defense Game on Canvas
by wanderr on Sunday November 07, 2010 @02:04AM
(#1878898)
In Firefox it always reported >40 fps, however I could see that it was dropping massive amounts of frames, to the point where creeps would be coming in the entrance and then be halfway across the screen.
Re:Great Tower Defense Game on Canvas
by BonoboBoner on Sunday November 07, 2010 @04:50AM
(#1879078)
Amazing performance. If it had a button to manually trigger the waves instead of sending them off automatically (allowing me to rethink things more), my afternoon would be gone now.
Re:Great Tower Defense Game on Canvas
by elliottcarlson on Sunday November 07, 2010 @12:23PM
(#1879779)
Pretty cool - could definitely use some more work - but still well done. (Got a copy of the html from Google cache, and the javascript from the Gist posted in this thread.)
Re:Great Tower Defense Game on Canvas
by jonafato on Sunday November 07, 2010 @09:53AM
(#1879436)
The targeting seems off. I expected the towers to attack the enemies furthest along the path, but it seems like they might be attacking enemies closest to them.
Also it's a bit annoying that if you want to build the same unit type multiple times, you have to click on it every time again. Keyboard shortcuts 1-4 to select each unit to build would be great. Another shortcut for upgrading and selling, and the game would be a lot more usable and fun to play.
Still, quite addicting game! :-)
I really didn't think these sorts of speeds were possible using Canvas, especially when you're completely redrawing the screen each time.
For what it's worth, I unminified the source (from frozendefense.compressed.js) and posted it as a github gist. It makes it easier to peruse.
https://gist.github.com/665991
"This Account Has Been Suspended"
Is this a bug, or some kind of procrastination prevention?
Works best on Google Chrome or IE9 Beta
Note: Emphasis is on IE9.