krstffr / stupid-space-game

A stupid space game.
0 stars 0 forks source link

Use canvas rather than the dom to increase performance #7

Open klase opened 11 years ago

krstffr commented 11 years ago

YES TOTALLY! If canvas is the most-performant thing to use?

klase commented 11 years ago

Maybe webgl? Or maybe start with canvas this answer makes sense: http://stackoverflow.com/questions/12758915/canvas-2d-context-or-webgl-for-2d-g

krstffr commented 11 years ago

canvas it is! :+1:

Never spent much time with canvas though, so I guess that's what I'll read up on next.

klase commented 11 years ago

http://buildnewgames.com/game-engine-comparison/

:)

krstffr commented 11 years ago

:) Would make sense.

Have you used any of them?

klase commented 11 years ago

yep impact.js for http://33kingsway.co.uk/game.html but it's probably a bit overkill for this

krstffr commented 11 years ago

Oh yeah that's right!

BTW: what I like about not using an engine is forcing yourself to actually learn concepts from the ground up. Even if that means doing stuff the wrong way/crying/poor performance etc I guess it's quite educational?

Or maybe that's the case with engines as well? I've only messed around in unity (not much at all though) but unity kind of solves a lot of stuff automagically without you understanding why etc.

What do you think?

klase commented 11 years ago

Yeah I agree especially for something this simple. Would be fun to gradually improve it using just standard canvas + js with no frameworks

krstffr commented 11 years ago

exactly! let's do it! :+1: