Skip to content

uriel/rog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published