Shooter Game Tutorial

By Xiong Xiong

Special thanks to Justin Karneeb

C# project download link

My ppt


Software requirement

In order to get Special Forces up and running, you will need to do the following:

  1. Get and install a C# Editor.  I recommend Visual C# 2008.
  2. Get and install XNA Game Studio 3.1.

Both can be found at http://creators.xna.com/en-US/downloads

Get Start

Once Visual C# and XNA have been installed, open the project labeled ShooterProject inside the TDS AI folder.  You should be able to run the game once it is open (make sure shooter project is selected as the active project if it is not). To start a BotOnly game:

Create a Bot

About C#

Detect other robots

Detect Obstacle

Detailed example can be found in BasicBot.cs. The following methods give you the ability to detect any obstacle in the map.

Move and Orientation

Fire

Damage

Pickup and its Effects

Characters

 

Health

Damages

FireRates

NumBullets each time

Damage per second

Explosions

Pierce

ProjectileSizes

BulletSpeed

MaxRange

MovementSpeed

Infantry

100

10

0.08

1

125

0

TRUE

1

1500

500

6

Rocketeer

100

0

2

1

0

radius:250
damage:100

FALSE

30

625

4000

6

Melee

125

100

1

1

100

0

FALSE

15

1500

30

12

Pyro

125

1

0.005

5

1000

0

FALSE

5

525

200

7

Scout

75

25

1

5

125

0

FALSE

1

2500

300

10

Sniper

100

75

1

1

75

0

TRUE

1

3000

5000

4