Skip to content
master
Switch branches/tags
Code
This branch is 67 commits ahead, 173 commits behind ajhager:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

rog

Rog Screenshot

  • 24bit color, unicode console with built in font.
  • Cross platform windowing via github.com/skelterjohn/go.wde.
  • Field of view, lighting, and pathfinding algorithms.

Documentation

package main

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

func main() {
    rog.Open(48, 32, "rog")
    for rog.IsOpen() {
        rog.Set(20, 15, nil, nil, "Hello, 世界")
        if rog.Key == rog.Escape {
            rog.Close()
        }
        rog.Flush()
    }
}

Notes

  • On Windows you can build your project with go build -ldflags -Hwindowsgui to inhibit the console window that pops up by default.

Thanks

Plans

  • Better keyboard handling.
  • World generation.
  • User supplied font sets and tilemaps.
  • Noise generators.
  • Image scale and blitting.
  • Console to console blitting.
  • Move console out into a separate package.
  • Fold lighting into the library.
  • Test suite.
  • Fixes to default font, especially box drawing glyphs.

About

A roguelike game library written in Go.

Resources

License

Releases

No releases published

Packages

No packages published