18 ms·
Seems like there are at least one js engine based on canvas coming out every day. I have been working on a pirate game based on canvas at http://constantsail.c
by RobertKohr 16y ago
Seems like there are at least one js engine based on canvas coming out every day.
I have been working on a pirate game based on canvas at http://constantsail.com http://constantsail.com , and I have to say, it is so simple to work with canvas that there doesn't seem to be a huge reason for these game engines. If you need canvas to do something that it doesn't you just tack on a function.
I guess the thing is, it is so easy to start building a game engine, everyone is starting to do it. I find it is easier to just start with the basics, and when you start to repeat yourself or do anything complicated, just encapsulate it and keep building.
I built a knockoff of atari combat the same way on the iphone (http://robkohr.com/iphone/tank http://robkohr.com/iphone/tank)
- louisstow 16y agoYes it is fairly easy. But my engine is not JUST for canvas. You can switch entities from canvas to DOM in seconds. There are also components that make things a lot easier such as collision detection, audio, sprite maps, click maps, mouse events. As well as lots of performance optimizations such as using a Spatial Hash Map for all the entities and redraw regions on canvas so only segments that change are redrawn.