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 [...]
Also filed in
|
|
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.
Also filed in
|
|
Thursday, February 2, 2012
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.
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 [...]
Thursday, September 15, 2011
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 [...]
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 [...]
Also filed in
|
|
“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 [...]
Also filed in
|
|
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 [...]
Here are some cursory notes on a peculiar issue involving plummeting frame-rates when drawing input elements in DIVs that overlap canvas elements in fullscreen web apps. That’s the kind of market I’m targeting these days. tl:dr; Please test your canvas-capable device with this test case in normal and full screen modes, and report back the [...]
Also filed in
|
|