Category Archives: HTML5

Oculus Rift Reddit Internet Explorer

Recently both Firefox and Chrome released VR-enabled version of their browsers. Just as Lawnmower Man predicted. I decided to test them out with the Rift, by hacking together “Mr Speaker’s Internet Explorer” (or the repo): It loads any ImgUr images in a sub, and finds related subs mentioned in the “about” info.

Nicer random colours, with HSL

As many of you may know from my complaining, I’ve currently embarked on a new writing mission: a CoffeeScript book for SitePoint. The example project that runs throughout is an HTML5 game using Canvas. While I was trying to create a random colour palette – for instructional purposes – I fell over this “trick” of […]

Weird EventSource problems? Watch your content-length!

Super short version: If you’re using Server Sent Events, and it doesn’t work in Firefox because “Firefox can’t establish a connection to the server at…” and it’s not a CORS problem… make sure you’re not setting a content-length header. The end.

Colourising sprites in Canvas – part 2

And we’re back! In part one we looked at setting up a tinted palette for drawing our 8-bit masterpieces to canvas. Here’s what we’re going for today: rendering colourised sprites and tiles. We’ll be loading in our (ok, Notch’s) 4-color sprite sheet and rendering tiles from it with our chosen colours.

Navigate the web with your gamepad

How crap is the mouse, right? Yeah, I know! So I made a greasemonkey script to do my websurfin’ using my NES-style USB gamepad. For those of you too excited to read on, take your gamepad-enabled build of Firefox and install Gamepad Navigator now! Up and down to scroll the page up and down. The […]

Code like you’re Notch

Rich Jones learned stuff from watching Notch code. I learnt some stuff too. Six hundred games: invented, designed, and coded – in 2 days. That was the Lundum Dare game competition #21, held from the 19th to the 22nd of August. Hoards of game makers spent 48 hours creating lil’ masterpieces based on the given […]

Semantic game making

HTML5 means one thing, and one thing only: games! Okay, that’s not true at all. Not even close, but heck – we are seeing stacks of fantastic games emerge, and the buzz that surrounds even the more mediocre efforts is considerable. So where’s the love in the HTML5 spec for us game makers? When it […]

Mr Speaker as a test case

“Code so good, you’ll base your unit tests on it – that’s my promise to you!”. At least that’s how I’m going to look at it. I was hunting up some info on QtWebKit (the Qt port of WebKit, obviously) and I noticed a new version had just been released. To my surprise I noticed […]

DOMTimeStamp fun

Here’s today’s fun-with-mobiles tidbit of pain. The extremely entertaining Geolocation API (entertaining to use, not to read) provides the current timestamp in DOMTimeStamp format along with geoposition responses. But it seems browsers and devices aren’t 100% in agreement on either what a DOMTimeStamp is, or what it is when it comes back from a geolocation […]