Hello!
So, last week I had a little time on my hands to play around with JavaScript and Canvas. This is all part of my long term goal to make a nice little Squage-based platform game in my spare time.
So far, I’ll be honest, I’ve not quite got there – heck the example below doesn’t even work in IE (but, well… y’know…), however it runs fine in Firefox, Chrome, Safari, Dolphin etc and is quite fun if you’re bored for a minute or two, and like pressing Space a lot:
No, it doesn’t increase speed. No, it doesn’t recall high scores. No, there’s literally zero reason for it to be a horse on a roller coaster track.
Yes, it’s just a test. 🙂 It’s given me a chance to play with image warping (using canvas’ drawImage function to draw slices of the coaster track image at differing heights along a particular section), parallax scrolling / looping backgrounds, basic animation and simple user interaction. Plus it features a comedic looking horse on a roller coaster track!
Following this, I’ve created a free scrolling 2D environment, which follows a “character” that you control, with basic collision detection / slowing up slopes / speeding down slopes etc… yes, the Squage game is coming… although it’s looking like this at the moment:
There, um, is a way to go yet.
Toodles,
Pat