Need Guidance Making HTML5 Canvas Game Engine
- by Scriptonaut
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 :)