Skip to content

admon84/screeps-arena-typescript-sample-bot

Repository files navigation

Screeps Arena TypeScript Sample Bot

This repository contains a TypeScript starter kit and bot base for Screeps Arena. It provides an extensible framework for developing bots, including core game state management, role-based creep behavior, and prioritized spawning.

Getting Started

To get started with this sample bot, follow these steps:

  1. Clone the repository.

  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build
  4. Change the Screeps Arena client to point to the desired dist/arena_* folder.

Bot Architecture

The bot is organized with a Core class for game state management, high-level task Managers, role-based stateful Creeps, and a priority Spawn queue.

Core Components

  1. Core Class Singleton

    • Manages game state and logic, providing access to common and arena-specific game objects. See Core.
  2. Managers

    • Modular controllers for specific game logic, invoked in the main loop. Examples: Harvest, Military, Spawn.
  3. Creep Roles

  4. Spawn Order Queue

    • Manages and prioritizes creep spawning. See OrderQueue.

Arena Implementations

Each arena has its own specific bot implementation. Detailed documentation for each arena can be found in their respective README files:

Next Steps

Explore the bot's architecture and develop new strategies for different arenas. Customize the managers and role-based creeps to fit your gameplay style. Iterate and refine your bot to progress in Screeps Arena. Happy coding!

About

Screeps Arena Starter Kit + Bot Base

Resources

Stars

Watchers

Forks