I am thinking as a challenge i should write a javascript based game. I want sound, images and input. A background to simulate a screen (like 640x480 with all my images in it) would be useful to separate the rest of the page from the 'game'. What should i look at?
Some things i would need
- Framecontrol. A way to get the current time (or delta).
- Image, displaying it and moving it. How do i display full image. Knowing pixel access may be cool.
- Input A way to lock it in a box (like flash does) is cool.
- Sound play simple sounds on demand (like when i get a hit). Several sounds at once would be great
- Bottlenecks. What are things that will kill the CPU?
- Restrictions. What cant i do? I hear i cant 'sleep' to wait. I must set a callback
- Good or best pratice. What are good things i can do to either keep speed up or to lower glitch or compatibility problems.