Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
Find a file
2017-01-30 06:27:52 +01:00
easings Initial commit 2017-01-27 09:35:30 +01:00
examples Update README.md 2017-01-30 06:27:52 +01:00
physics Initial commit 2017-01-27 09:35:30 +01:00
raygui Initial commit 2017-01-27 09:35:30 +01:00
raylib Bundle raylib C sources and switch to develop branch 2017-01-28 17:19:06 +01:00
raymath Some typos 2017-01-29 01:35:01 +01:00
LICENSE Initial commit 2017-01-27 09:35:30 +01:00
README.md Update README.md 2017-01-30 06:01:57 +01:00

raylib-go GoDoc

Golang bindings for raylib, a simple and easy-to-use library to learn videogames programming.

screenshot

Requirements

Ubuntu
apt-get install libglfw3-dev
apt-get install openal-dev
Fedora
dnf install glfw-devel
dnf install openal-soft-devel
OS X
brew install glfw3
brew install openal-soft
Android

Android example.

Installation

go get -v github.com/gen2brain/raylib-go/raylib

Example

package main

import "github.com/gen2brain/raylib-go/raylib"

func main() {
	raylib.InitWindow(800, 450, "raylib [core] example - basic window")

	raylib.SetTargetFPS(60)

	for !raylib.WindowShouldClose() {
		raylib.BeginDrawing()

		raylib.ClearBackground(raylib.RayWhite)

		raylib.DrawText("Congrats! You created your first window!", 190, 200, 20, raylib.LightGray)

		raylib.EndDrawing()
	}

	raylib.CloseWindow()
}

Check more examples organized by raylib modules.

License

raylib-go is licensed under an unmodified zlib/libpng license. View LICENSE.