Thread: Jazz2 BOTS?
View Single Post
FQuist

JCF Member

Joined: Sep 2001

Posts: 3,251

FQuist is an asset to this forumFQuist is an asset to this forum

Sep 1, 2002, 10:49 AM
FQuist is offline
Reply With Quote
For finding out the level, I got this idea:

Find out the height and width for the level.
Warp the bot to each one of the coordinates.
Now, if the bot isn't able to move at all, he's standing in a masked block. If he's able to the block is unmasked. If the ammo count for a weapon increases, you know he's the tile contains ammo. If he suddenly moves upwards or sidewards you know you hit a spring, belt or wind. To find out wether he's on a diagonal block, you can walk left or right and see if he also moves up or down.

This way you can create a ".ai" map of the entire level without having to code too much.
__________________
“The truth is that everything that can be accomplished by showing a person when he's wrong, ten times as much can be accomplished by showing him where he is right.” - Robert T. Allen

Interesting Jazz-related links:
Thread: Gameplay Theories - Thread: Make Up Your Own Gametype

Spotify.fm