willh

LD24

First time

I’ve never done this before and my idea for a game is still pretty vague. I’ll post more details as I go along…

For now I’m going to be using:

Java

with libGDX for graphics and input etc. http://code.google.com/p/libgdx/

jbox2d as the physics engine (maybe) http://www.jbox2d.org/

gimp and blender for making graphics and so on.

 

Good luck!

At the end of the first day…

I may have made a terrible mistake…

this is not a tetris rip off

There’s a twist, it’s just not implemented yet.

Getting tense now…

Slept for longer than I thought, plus my wrist is getting a bit tense. Time is running out!

Can I assume that “java -jar mygame.jar” will work as a script on OSX? What’s the script file extension on OSX? I’ve only got Ubuntu here so I can’t test. Thanks!

Comments

26. Aug 2012 · 12:58 UTC
Since Mac and Linux both are Unix, I think they both use .sh.
willh
26. Aug 2012 · 13:01 UTC
Whoosy: excellent, thanks! that’s what I was hoping to hear :)

Plugging it all together

It’s not often you get to write code as ugly as this (unless you’re me that is, in which case it’s very often):


for(GeneBlock block : this.geneBlocksInPlay){
if(block != currentBlock){

List neighbouringBlocks = new ArrayList();

int[][] tiles = block.getTiles();
for(int t = 0; t < tiles.length; t ++){

int locX = block.getX() + tiles[t][0];
int locY = block.getY() + tiles[t][1];

for(int x = -1; x <= 1; x ++){
for(int y = -1; y <= 1; y ++){
if(!(x == 0 && y == 0)){
int realX = Math.min(this.geneBlocksWidth,Math.max(0,locX + x));
int realY = Math.min(this.geneBlocksHeight,Math.max(0,locY + y));

GeneBlock neighbourBlock = this.geneBlocks[realX][realY];

if(neighbourBlock != block){
neighbouringBlocks.add(neighbourBlock);
}
}
}
}
}

block.registerNeighbours(neighbouringBlocks);
}
}

Comments

willh
26. Aug 2012 · 16:56 UTC
Not sure why my pictures are all squashed.

2 hours to go…

A video of the gameplay so far (no sound in the recording, but it has beepy bloopy bits in reality):

click here

Yeah, the torrential downpour is a bug. I hope I can fix it in time…

Finished

That was terrifying. A game breaking bug lasting over the last few hours was fixed with 10 minutes to go, meaning I had to do all the actual gameplay tuning in 10 minutes before the end of the competition.

Inside the wrapper of a rushed, slap dash and badly thought out implementation exists quite a good idea, I think!

This was my first ludum dare and although I didn’t maintain a particularly well kept blog or do that great in terms of the programming, I did make a really nice carrot and pepper stir fry with egg fried rice and sweetcorn.

Let me know what you think!
http://www.ludumdare.com/compo/ludum-dare-24/?action=preview&uid=16463