Skip to content
/ go-rpg Public

An RPG text adventure written in Go.

License

Notifications You must be signed in to change notification settings

m5lk3n/go-rpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-rpg

The RPG text adventure project from under raspberrypi.org implemented in Go for educational purposes.

Environments

Developed on a Raspberry Pi 400:

$ uname -a
Linux raspi400 5.8.0-1010-raspi #13-Ubuntu SMP PREEMPT Wed Dec 9 17:14:07 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
$ go version
go version go1.14.7 linux/arm64

Also tested on a Lenovo ThinkPad X250:

$ uname -a
Linux x250 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ go version
go version go1.15.6 linux/amd64

Make

$ make
usage: make <target>

  where <target> is one of the following

    get         to fetch all dependencies
    build       to compile binary for local machine architecture
    all         to run get, build

    help        to show this text
$ make all
go get github.com/deckarep/golang-set
go build -o rpg

Play

$ ./rpg 
RPG Game
========

Get to the Garden with a key and a potion
Avoid the monsters!

Commands:
  go "direction"    (where "direction" is one of the following: north, east, south, west)
  get "item"
  exit
---------------------------
You are in the Hall
You see a key
Inventory:
---------------------------
> 

Demo

Spoiler alert!

Make and play

About

An RPG text adventure written in Go.

Resources

License

Stars

Watchers

Forks