Sunday, November 28, 2010

Battling Bats in a Graveyard

Battling Bats

The bats fly off the ground, so you have to jump and shoot to hit them.

I really need to add shadows - without them it is difficult to see the location of objects in the air.

Friday, November 19, 2010

Don't Mess with an Angry Mage

Block Village

A little before/after comparison...

Wednesday, November 17, 2010

Doing Some Decorating

Block Village

Now that my core engine is in pretty good shape for now (stuff draws, objects move, collide and explode), I'm starting to work on the "game" part of my next game. That means adding content.

These are a few screenshots of what I've got so far.

Block Village

Not much, yet, but it's a start.

Wednesday, November 3, 2010

Shooting Spree



I've switched my Block World game to a third-person view (at least for the moment).

This is a video of my place-holder protagonist going on a shooting spree against some skull worm thingies.

Thursday, October 28, 2010

C# random number generator starts returning only zero

Yesterday my game AI started going haywire on me. At a random point, all of my creatures would start moving in a single direction.

Turns out the cause was Random.NextDouble starting to return only zero. And it turns out the cause of that was multiple threads accessing the same instance of the Random class.

As I would have expected had I thought about it, Random is not thread safe. If it gets accessed from one thread while it is in the middle of an operation for another, its internal state gets mucked up and it just spits back zeros from then on.

The solution is to use one instance of Random per thread (which is what I did) or to ensure synchronized access.

Wednesday, October 20, 2010

Throwing Rocks at Frogs



Exploding frogs - what's not to like about that?

Friday, October 15, 2010

Frogs in Block World



Slow week since my graphics card died on me over the weekend. I finally got up and running again last night.

To celebrate my new graphics card, I made some frogs.