A partial remake of Wolfenstein 3D, the legendary FPS game by id Software, this time created with canvas.
canvas (see Canvex and Canvascape). However, when I set out to make this demo, the goal was to test some "real" 3D code I'd been working on and so this game does use raycasting. This creates a couple of nasty artifacts in the rendering, but all in all it should be playable.The enemies are only partially implemented and don't do anything besides standing still and getting shot. There is also only the one level and no other weapons. The music is embedded MIDI, the sound effects are MP3s played via SoundManager2.
Check the blog posts for more details if you're interested.
A bit of Super Mario all in one JavaScript file, graphics and music included.
The game aims to recreate the Super Mario gameplay and parts of the first level of the classic NES game using only JavaScript. This means that all the sprites are created at runtime with tiny
divs or, if possible, drawn on sprite-sized canvas elements. The sprite data is included in the code as encoded strings. The (admittedly horrible) MIDI tune is stored as base64 encoded data and embedded as a data: URI. The embedded sprites were also discussed in detail by John Resig.Check the original blog post for links to a smaller version as well as music enabled versions.
And if you're looking for a not-so-tech-demoish game of Mario, be sure to also check out the more complete Super Mario clone by Guillermo Bruchmann.
A canvas experiment using "Mode 7"-like techniques to make a racing game like SMK.
The
canvas element was used heavily in this game to rotate, stretch and position slices of the map to simulate perspective. The technique is similar to the "Mode 7" graphics mode that was used on the SNES to create this and other effects. A bit of embedded MIDI music is thrown in for good measure. A few more technical details are available in this blog post.
Get a bit of Doom (non-)action in this great demonstration of the power of canvas by Philip Taylor.
The game is dressed in Doom textures and there are even a few barrels and an animated Doom guy sprite thrown in for fun. Pretty cool, I say.
If you are interested in the technical details, Philip Taylor also made a page just for that.
A racing game demo in which you race a small "pud" (some sort of circular thingie) against the opponents around a map viewed from above.
This is a very nice tech demo of what the canvas tag is capable of. Benjamin Joffe's Canvascape was one of the first examples of a raycasting engine implemented with canvas I saw and it's still pretty cool.
Unfortunately there's not much information available on the site, so any technical details will have to be found in the source code. The page does mention that he's using ExCanvas to make it work on IE, but that's about it.
The demo itself is pretty simple, you just walk around a pseudo-3D maze. There's a bit of gun-wobbling and some jumping thrown in as well. In the default mode, the walls are rendered as single colored surfaces but there's also a textured mode which, even if it's much slower, shows that there's potential for Wolfensteinish action.