Home

Awesome

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.

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()
    }
}