Skip to content

Sample project using the Chrono Divide Game API

Notifications You must be signed in to change notification settings

chronodivide/game-api-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 20+
  • TypeScript 4.8.4+
  • 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 Chrono Divide Game API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published