Need Guidance Making HTML5 Canvas Game Engine

Posted by Scriptonaut on Game Development See other posts from Game Development or by Scriptonaut
Published on 2012-12-18T06:38:03Z Indexed on 2012/12/18 11:13 UTC
Read the original article Hit count: 323

Filed under:
|
|
|
|

So I have some free time this winter break and want to build a simple 2d HTML5 canvas game engine. Mostly a physics engine that will dictate the way objects move and interact(collisions, etc). I made a basic game here:

http://caidenhome.com/HTML%205/pong.html

and would like to make more, and thought that this would be a good reason to make a simple framework for this stuff. Here are some questions:

  • Does the scripting language have to be Javascript? What about Ruby? I will probably write it with jQuery because of the selecting powers, but I'm curious either way.

  • Are there any great guides you guys know of? I want a fast guide that will help me bust out this engine sometime in the next 2 weeks, hopefully sooner.

  • What are some good conventions I should be aware of?

  • What's the best way to get sound? At the moment I'm using something like this:

    var audioElement = document.createElement('audio'); audioElement.setAttribute('src', 'paddle_col.wav'); audioElement.load();

I'm interested in making this engine lightweight and extremely efficient, I will do whatever it takes to get great speeds and processing power. I know this question is fairly vague, but I just need a push in the right direction.

Thanks :)

© Game Development or respective owner

Related posts about 2d

Related posts about engine