Ship
From BerryBots Wiki
The bot that a player controls via a Lua program in BerryBots. A ship has thrusters, lasers, and torpedos, each of which can be fired in any direction on any tick. Firing a thruster applies a force vector to the ship's current speed and heading. Lasers are fast, weak projectiles that move in a straight line until they hit a ship or a wall. Torpedos are slow, strong, grenade type weapons that move a specific distance, including through walls, before exploding and doing damage to everything in the blast radius.
A ship program can control any number of ships, depending on the team size specified by the stage. For example, RandomBot can be initialized as a team of any size, with all bots using the same behavior.
See also
- BerryBots API docs for ShipControl module - The format of the program a player writes to control a ship.
- BerryBots API docs for Ship module - The ship object that is used to query the in-game ship's current state or to control its behavior.
- Category: Bots