Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajhager/rog
A roguelike game library written in go
https://github.com/ajhager/rog
Last synced: about 2 months ago
JSON representation
A roguelike game library written in go
- Host: GitHub
- URL: https://github.com/ajhager/rog
- Owner: ajhager
- License: bsd-2-clause
- Created: 2012-04-16T16:19:06.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-09T17:52:56.000Z (over 10 years ago)
- Last Synced: 2024-05-18T20:46:54.775Z (8 months ago)
- Language: Go
- Homepage:
- Size: 8.45 MB
- Stars: 50
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cobol - rog - A roguelike game library written in cobol (Game Development / Middlewares)
README
rog A roguelike game library written in go
===Note
----
rog is no longer maintained. Please check out [eng](http://github.com/ajhager/eng) for an updated roguelike library.Setup
-----
rog depends on [github.com/go-gl/glfw](http://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!
-------
```go
package mainimport (
"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()
}
}
```