Skip to content

Bornescript

The scripting language of the Borne Engine. Write the rules of your game on the server and the pictures on the client, and try both in your browser before you run a server.

counter.bsc
// Count three ticks, then say so.
function onCreated() {
this.count = 0;
setTimer(0.5);
}
function onTimeout() {
this.count++;
echo("tick " @ this.count);
if (this.count < 3) {
setTimer(0.5);
} else {
echo("done");
}
}

Bornescript reads scripts written for older GS2 servers and keeps their behavior, with the differences listed in the language guide. It adds async and await, try and catch, regular expressions, and optional type annotations.

Engine version 0.1.0. Built 2026-11-18.