Ludum Dare #23compo
Bacterial World
Didn't get around to optimizing the game for other browsers so you have to play using Google Chrome or Chromium.
Game done in HTML5/JavaScript using http://html5boilerplate.com/ to get started faster.
Game done in HTML5/JavaScript using http://html5boilerplate.com/ to get started faster.





Comments41
hit detection is a little wonky, probably my only complaint, kept hitting things i was clearly well past or dodged well before.
For collision detection I calculate overlap of the bounding boxes of 2 sprites and then check pixel values of both sprites in that overlap. If two pixels at the same point have alpha > 0 => collision. This works perfectly fine in Chrome but not in FF.
When I do the collision detection FF sometimes returns undefined for pixel values I check and my condition gets undefined==undefined and you get a ghost collision. Easy fix but I didn't test on FF for the compo so I noticed only after it. Hence the "Google Chrome/Chromium only".
As for getImageData() speed FF seems to have troubles: http://www.mikethetike.com/2011/05/html5-canvas-using-and-optimizing-context-getimagedata/
I do feel the controls could be a bit more responsive. To me it felt like the sliding would "pump". Like the timer on that button couldn't quite keep up.
A very simple game but basically fun.
Gonna try to go for it at the next LD.
Good job :)
As I often say to my fellow members of the Construct2 community when making the controls of a game, think about azerty keyboards.
The current configuration is such that to jump I have to press the key under "S".
For this peculiar game, it's no big deal, for games making full use of WASD it's really bothering. Just a nugget in your way, think about those kind of issue ;)
Else the game works as intended and the mechanic has already been tested/not that original.
I liked the twist on the lead character modifying the state/position of some obstacles though, it adds to the challenge.