roguetactics

command module
v0.0.0-...-0a38c19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2022 License: BSD-2-Clause Imports: 20 Imported by: 0

README

Bitesize Tactics

This is a roguelite game inspired by Final Fantasy Tactics made for 7DRL 2020.

You can play the game on itch.io.

Background

This is written in Go, and runs locally over SSH and online via xterm.js+WebAssembly. All the display code and ANSI wrangling is custom. This project might be interesting if you want to see how to do a roguelike-style text game "the hard way" without using a fake terminal or curses-style library.

Originally, this code derives from a realtime multiplayer arena shooter game. The turn-based system was bolted on afterwards, so it's basically a realtime game pretending to be turn-based. The gameplay code was mostly hastily written over 7 days.

Build & Run

Install

(this uses modules, don't put it in $GOPATH):

# make sure you have latest go
go get
Run locally (via SSH):
# run server
go build && ./roguetactics  

# attach client (other tab)
./ssh.sh  
Web version
GOOS=js GOARCH=wasm go build -o web/main.wasm
# symlink web/maps to ./maps
# run python -m SimpleHTTPServer etc in web

Contributing

This is BSD licensed (xterm.js is MIT). You're free to fork it and do whatever.

If you'd like to contribute something, please open an issue first.

There are a couple cool maps that are drawn out but unimplemented, and lots of gameplay mechanics that could be more fleshed out.

Thanks

Shout outs to:

  • meepches and Eric for some of the maps
  • @wittekm for some code contributions
  • the 7DRL organizers for the fun competition
  • everyone who played the game

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL