Skip to content

ra2web/game-api-playground

This branch is 1 commit behind chronodivide/game-api-playground:master.

Repository files navigation

Chrono Divide API Playground

This is a sample project that uses the Chrono Divide Game API. It can be used to develop and test AI bots for Chrono Divide] by running the game headless, in an isolated command-line environment. The API can create offline games between computer-controlled agents, or even online games, played in real-time versus human opponents.

Prerequisites

  • NodeJS 14+
  • TypeScript 4.3.5+
  • MIX files from an original RA2 installation

Install instructions

npm install
npm run build
npx cross-env MIX_DIR="C:\path_to_ra2_install_dir" npm start

Debugging

npx cross-env MIX_DIR="C:\path_to_ra2_install_dir" npm --node-options="${NODE_OPTIONS} --inspect" start

Additional resources

About

Sample project using the RA2WEB Game API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%