Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/galaco/tinygametools
TinyGameTools provides a very tiny library for making games with Go. Uses glfw.
https://github.com/galaco/tinygametools
game-development game-engine go golang
Last synced: about 1 month ago
JSON representation
TinyGameTools provides a very tiny library for making games with Go. Uses glfw.
- Host: GitHub
- URL: https://github.com/galaco/tinygametools
- Owner: Galaco
- License: unlicense
- Created: 2019-06-25T01:30:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T19:51:48.000Z (8 months ago)
- Last Synced: 2024-06-21T21:54:43.594Z (7 months ago)
- Topics: game-development, game-engine, go, golang
- Language: Go
- Size: 35.2 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![GoDoc](https://godoc.org/github.com/Galaco/tinyGameTools?status.svg)](https://godoc.org/github.com/Galaco/tinyGameTools)
[![Go report card](https://goreportcard.com/badge/github.com/galaco/tinyGameTools)](https://goreportcard.com/badge/github.com/galaco/tinyGameTools)
[![GolangCI](https://golangci.com/badges/github.com/galaco/tinyGameTools.svg)](https://golangci.com)
![CircleCI](https://circleci.com/gh/Galaco/tinyGameTools/tree/master.svg?style=svg)](https://circleci.com/gh/Galaco/tinyGameTools/tree/master)
[![codecov](https://codecov.io/gh/Galaco/tinyGameTools/branch/master/graph/badge.svg)](https://codecov.io/gh/Galaco/tinyGameTools)# TinyGameTools
### What is it?
TinyGameTools is a lightweight package for getting started with Go game development.It does not provide any sort of engine, only a set of lightweight utilities for creating and
interacting with an OpenGL 4.1 window.### Features
* Window. A simple to use glfw window creation wrapper. Will create an OpenGL 4.1 ready window
* Keyboard. Hooks into Window, and allows for querying button state, and custom input callbacks
* Mouse. Hooks into Window, and allows for query Mouse state, and custom input callbacks
* Event bus. A simple event bus for subscribing and publishing messages. Custom messages should fulfil the `Event` interface,
and away you go.### Examples
```go
package mainimport (
"github.com/galaco/tinyGameTools"
)func main() {
// Create a window
win,_ := tinygametools.NewWindow(640, 480, "My Window!")
// Create a keyboard, then register callbacks
kb := tinygametools.NewKeyboard()
kb.RegisterCallbacks(win)
// Create the mouse handler, then register callbacks
mouse := tinyGameTools.NewMouse()
mouse.RegisterCallbacks(win)
}
```@TODO more documentation as features get added