0.1.1 • Published 4 years ago
ohtge v0.1.1
One Hour Text Game Engine
A very basic wrapper for xterm.js to make small console games using a BASIC-inspired API. Docs available here.
Example game.js
file
title("test.exe")
loop()
async function loop() {
while (1) {
write("Hello world")
color("yellow")
const a = await input("Say something?") // `input(string, callback)` syntax also supported
color("white")
write("You said " + a)
write()
await pause()
}
}
Setup
- Download the zip
- Only keep the files you want (typically
dist/
+ one of the examples) - Make a game!
Made with ohtge
- "freeze.exe" (1HGJ 286 entry, 2020)
- "prince.exe" (5th Kajam entry, 2018)
- "monster.exe" (1HGJ 167 entry, 2018)
- "Day Off Work" (web port of a 1st Alakajam! entry, 2018)