This servers script allows players to... (your description here)
This room script has been coded with:
TypeScript Template for Haxball Servers.
Code a super-stable Haxball Server and build it in seconds.
- NodeJS
- NPM
- Fork this repository and clone it
- Navigate to cloned directory and run
npm install
- Code your room in
src/
- Build it into browser-ready script with
npm run build
- Copy content of
dist/room.js
- Paste it into Developer Console at https://haxball.com/headless
The resulting code in dist/room.js
has all the features packed and may be also run with other tools, like Haxroomie.
Haxball Servers are coded in JavaScript by default. There is an API documentation provided by the game developer.
Currently, Haxball Headless API has typings fully supported in NPM package @types/haxball-headless-browser
. After installing it the package, TypeScript will apply the definitions for development automatically.
This template makes use of it and provides:
- strongly typed development process
- standard modularity possibilities
- building with
browserify
into production ready script
Feel free to contribute. Please have in mind, that we want to make it to be structured freely by every developer within src/
folder, so there should be no constraints introduced in this domain.