Deceth / Battle-City

Build a city, hire a team, drive a tank, orb the enemy! Multiplayer online game.
http://battlecity.org
GNU General Public License v3.0
48 stars 24 forks source link

Bots #30

Open Deceth opened 14 years ago

Deceth commented 14 years ago
Deceth commented 14 years ago

Creating bots is no simple task, but even if they are very dumb, having something to shoot at when nobody is online could be beneficial.

Rushing commented 14 years ago

I've had plenty of fun shooting at you before Deceth, which is pretty much the same concept as shooting at dumb bots. Thumbs up from me.

rileyw commented 11 years ago

What should bots be doing when they're turned on?

Deceth commented 11 years ago

When the server is empty, there should be nothing going on.

As soon as the first player logs on, a configurable amount of "bot" cities should spawn on the map. I would set the amount of bot cities to 2 to test things out at first.

So, for each bot city, this is what would happen:

What do these bots then do?

Ideally we define a few types of bots.

Bots will spawn with their weapons, they won't need to go pick them up. This is to facilitate actually making bots.

A defence bot will drive around randomly, but always stay in range of the city. If it detects an enemy, it will pursue and shoot at the intruder.

An attack bot will leave the city in search of a nearby city. It will then proceed to attack the city (which is going to be difficult to program, so at first, it should just head towards and enemy city and shoot at things. Basically the same as a defence bot, except it has instructions to move away from the city towards the closest orbable target!)

Mayor bot will stay very close to the city, and otherwise behave as another defence bot. (ideally the mayor bot would rebuild the city, but that's probably complicated to program so for now, the BOT city should be intelligent and rebuild itself based on the city design it was loaded from.

Bot City

When a bot city is orbed, there should be a check for the total players online. If less than 12, a bot city should be reloaded somewhere. If over 12, there are enough real players that the bot city is no longer needed.


Alternatively, a first step would be to create as you suggest, hordes of bots in the wilderness that attack players that are within range.

In this scenario, there are no bot cities, but at least if you are alone on the server, you can hunt down and battle these bots to keep yourself busy.