Check out Amazon.com!

BlitzCoder Code Archives PageMain Codes Page
Listing: Artificial Intelligence (8 Entries)
Title: Basic AI movement Code Submitted By:
- grim_1_2_3
Computer controlled character chases the character that you move with the arrow keys around the screen. Also has collision detection. A very early piece of code -- Will be a lot shorter in the next version.

Please Note:

You will have to change the 3 bitmaps to pics of you're own, Since the pics aren't included.

Also, I apologize for the lack of comments, But it should be easy to understand --- I will add comments to the revised version!
 
Title: Heat-seaking rocket Code Submitted By:
- the-mike

When the right mouse button is pressed, this will spawn random rockets (add a "rocket.bmp", a rocket faced like this: -->) of random speed and turning rate which will track the mouse. Useful in many 2D game engines!
 
Title: Replaying user input using a collection of Types Code Submitted By:
- matt_sephton
23/24 June 2002, version 0.10, tracks user controlled element
26/27 June 2002, version 0.20, tracks multiple computer controlled elements

to do: enable early quit of replay to go back to game

*** feel free to use this method as long as you give me credit

this method can be used to replay user input. this simple demo records the player control of a dot. we choose to do the correct branch of the main loop (moving or drawing) depending on if we are recording (game) or replaying (watching). this could be extended to keep track of multiple items, such as computer/AI controlled characters.

:) matt
 
Title: Simple Finite State Machine Code Submitted By:
- rick
This is a simple example, where the state of an enemy changes as the player<->enemy distance is changing.
 
Title: String Manipulation Library Code Submitted By:
- coderlaureate

I use this library in many of my Blitz programs that require intense parsing of string information.
 
Title: Types within Types Code Submitted By:
- skn3_acoders

You can do types within types with a little bit of pre work making some functions.

Check it out !
 
Title: Waypoints in Blitz3D Code Submitted By:
- puki
Note: I have done this for the benefit of new users to Blitz3D. It is just a simple waypoint demo - hope it is of use to someone. It is meant to be basic and do very little.
 
Title: ai Wander source code Code Submitted By:
- alias jargon
makes crap wander.
no comments.
most likely you wont be able to modify and still work unless you are a blitz guru.
must create your own "kite.bmp" image.
if it dont work use:
Global sd=16
...or else just use that instead to be on the safe side.
 
Add Your Code!
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.

Code software created by Krylar's Kreations