Archive Browser
Download aitest2.zip, last updated 07/07/2010 (14.13 KB)
Download- md5: 054e65a63a4282e39625d1c0635f87e7
using System.Drawing;
namespace AiTest
{
/*
Movement rules sourced from
http://www.elmerproductions.com/sp/peterb/BDCFF/objects/0008.html
if (space to the firefly's left is empty) then
turn 90 degrees to firefly's left;
move one space in this new direction;
} else if (space ahead is empty) then
move one space forwards;
} else {
turn 90 degrees to the firefly's right;
_do not move_;
}
*/
class FireflySprite : EnemySprite
{
#region Public Constructors
public FireflySprite()
: base(Direction.Left, Direction.Right)
{
this.Direction = Direction.Right;
}
#endregion Public Constructors
#region Public Properties
public override System.Drawing.Color Color
{
get { return Color.FromKnownColor(KnownColor.Firebrick); }
}
#endregion Public Properties
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate