A roguelike game library written in go
Go Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
demos
.gitignore
AUTHORS
LICENSE
README.md
backend.go
color.go
console.go
font.go
fov.go
line.go
map.go
mouse.go go fmt Oct 2, 2012
path.go
rog.go
stats.go
terminal.go Added hagerbot to default font Oct 13, 2012

README.md

rog A roguelike game library written in go

Note

rog is no longer maintained. Please check out eng for an updated roguelike library.

Setup

rog depends on github.com/go-gl/glfw. You can skip this step if you already have that up and running.

  • Ubuntu: apt-get install libglfw-dev
  • OSX: brew install glfw
  • Windows: download the glfw binaries, then drop the GL directory into C:\MinGW\include and the files for your arch under libmingw into C:\MinGW\lib. You will then need to install glfw.dll system wide or have it in the directory with your game.

Install

go get hagerbot.com/rog

Try it!

package main

import (
    "github.com/ajhager/rog"
)

func main() {
    rog.Open(20, 11, 2, false, "rog", nil)
    for rog.Running() {
        rog.Set(5, 5, nil, nil, "Hello, 世界!")
        if rog.Key() == rog.Esc {
            rog.Close()
        }
        rog.Flush()
    }
}