Wednesday, August 10, 2011

A Little Explorer Prototype

I like Javascript because it's easy to prototype game ideas.  Case in point:

Use the arrow keys or WASD to move around.   IJKL will eat corresponding blocks and H will hover.  It works best in Chrome but should still work in the other browsers.  Open the source code to find some comments and stuff you can change around.

So I had this idea for a 2d asteroid mining game (kinda like the one I posted a few months ago).  I started writing it in C++/libSDL but I wanted a quicker way to prototype, so JS it is.  I also wanted to learn HTML5 so I used this prototyping opportunity to do that too.  This demo uses Canvas and LocalStorage.

I will say that the code isn't the prettiest since it's just a prototype, so I apologize for that.  I'm thinking that for bad guys, I'll have meteors that can come crashing down and can break that outer layer of the main asteroids but not the inner dark layer.  That will force you to build bases inside that.  I'll also have some other kind of flying enemy that will require you to maneuver around, but I'm going to wait for the actual game to put all that in.  This was just to make a proof of concept.

Anyway, that's all I've been toying with.  I've had friends visiting for the last month and my grandfather is currently spending a few days here, so I haven't had much dev time.  I can't really complain because I enjoy the company :]


Adam said...

Very nice. Procedural Generation I trust? Reminds me of Minecraft.

Roy said...

Ya, I use simplex noise to generate the world.