Tuesday, June 08, 2004

[Ant Attack] Gazillions of Ants...

...well maybe 80!

Here's what a swarm looks like...

1024x768 53kb gif


The dark blue ball, roughly in the middle of the swarm is the player. Who, thankfully for them, doesn't have a health value to be depleated yet.

Below is a shot taken a few seconds before with the normally invisible tracking smells turned on. If you look in the bottom right hand corner you can see a couple of circled ants. The lower one can't see the player but can see/smell a tracking scent left by the higher up ant. The higher up ant in turn, dropped a smell when they couldn't quite see the player but could see a much stronger smell dropped by an ant right next to the player.

This is how the ants end up swarming around the player!


1024x768 119kb gif


The neat part about how ants are handled now is that we had already implimented some speed limiting code. So that as PCs get faster the game will still "run" at the same speed, i.e. it'll still take 10 seconds to walk along the side of the city. To get this to work we have a little code that basically just burns cycles with some handy calculations. The ant handling code is within that loop.

As PCs get faster there will be more spare CPU time to burn up, thus the ants will get updated far more often meaning either...
1. You can have more ants.
2. The ants you do have get their brains updated more often and so act "smarter"

Anyhow, I'll be talking about the Woo-ness of maps next.

2 Comments:

At 10 June 2004 at 05:06, Blogger Leo Santos said...

Really cool retro game! The 1st person view is interesting, but not really necessary. Any file available for download, like a demo?

Leo.

 
At 11 June 2004 at 08:55, Blogger Modesty B Catt said...

Hi Leo,

No download yet, I have one planned for the end of the month :)

 

Post a Comment

<< Home