JS 13k Html Game

This should be fun... there's a competition running at the moment (ending 13th Sept) to create a full javascript / Html5 game that is under 13k in size (minified)
http://js13kgames.com/

Since i haven't had much exposure to Html5 canvas etc. it will be a good chance to try a few things out!
I'm thinking of having some sort of strategy game. At the moment i'm just getting the Game Runner logic in place, its already proving to be not too easy, without using 3rd party code!


Here is what I have done so far: Its coming in at about 7kb Zipped. I think i should be able to make the 13k limit, I just need to learn how to draw images using lines and rects, that should save me some kb, so far i have one 100x100px png image (weighing in at 2.6kb, if i add any more its going to eat up all my code space!!)
I really like the space effect, its basically 520 random generated points on a 2d plane, I iterate through each point but also iterate a for(int i=0; i < 5; i++) then modulus the index of the point. I move each point 2 px to the left. This creates the illusion of layers of stars each layer moving at a different speed. Its pretty cool, i haven't done anything like it before!!
I just noticed the images dont load, oh well ill upload a working copy once i do some more on the game
Update - an updated version of the game so far: 20/08/2012 Not too far from completion!
Agent XIII Game

0 mentions:

Post a Comment