gameverse
v0.8.1
Published
Make, test and pack Gameverse game cartridges (.cart): the cart command-line tool
Maintainers
Readme
gameverse
The cart command for making games for Gameverse: play cartridges (.cart files) safely in the browser.
Needs Node.js 20 or newer.
npx gameverse new my-game start a game from the starter template
cd my-game
npx gameverse dev play it in your browser, reloading each time you save a file (--touch shows the phone controls)
npx gameverse check look for mistakes and warnings (--strict makes warnings fail)
npx gameverse run play a CartScript game with no browser (scripted input)
npx gameverse pack build my-game.cart
npx gameverse inspect game.cart list a cartridge's manifest and files
npx gameverse unpack game.cart extract a cartridgeInstall it once with npm install -g gameverse and the command is just cart (for example cart dev).
It runs the same CartScript language as the website, up to language version 8: 8-, 16- and 24-bit color (config { colors: 256 }, 65536, 16777216), named palettes (config { palette: "gameboy" }) custom palettes with set_palette() and bigger fonts: pixel fonts with lowercase letters (font("classic"), "bold", "italic" and "bold-italic") and hi-res fonts that look the same on every device (font("vector"), "vector-bold" and "vector-italic") Six more pixel fonts are converted from open typefaces ("pixelify", "silkscreen", "arcade", "tiny5", "vt323" and "dotgothic"); they are under the SIL Open Font License, and their notices and license are in licenses/fonts.txt.. Games play on phones and tablets too, with an on-screen D-pad and buttons: cart dev --touch shows how yours feels with them. A game that uses one of them says so in its manifest.json ("cartscript": 3 to 8); cart check tells you which number it needs.
- Guide: https://gameverse.lol/make.html
- CartScript language specification: https://gameverse.lol/spec.html
- Pack and test in the browser, no install: https://gameverse.lol/pack.html
MIT licensed.
