The first pre-release of minisphere 2.0 is now available, minisphere 2.0b1! This includes a preview of the new Cell compiler. To get started with Cell, place this example script in any Sphere game directory as Cellscript.js:
function $sphere()
{
install(files("animations/*", true), "animations");
install(files("maps/*", true), "maps");
install(files("fonts/*", true), "fonts");
install(files("images/*", true), "images");
install(files("scripts/*", true), "scripts");
install(files("sounds/*", true), "sounds");
install(files("spritesets/*", true), "spritesets");
install(files("windowstyles/*", true), "windowstyles");
install(sgm({
name: "Awesome Sphere Game",
author: "Some Weird Guy",
description: "Follow the hero as he tries to get devoured by the nearest pig.",
resolution: "320x240",
script: "main.js"
}));
}
Then from the command line, switch to that game's directory and (assuming you added minisphere to the PATH during setup):
cell -p game.spk
msphere game.spk