gen2brain / Raylib Go
Licence: zlib
Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
Stars: ✭ 578
Projects that are alternatives of or similar to Raylib Go
Openrw
OpenRW "Open ReWrite" is an un-official open source recreation of the classic Grand Theft Auto III game executable
Stars: ✭ 1,108 (+91.7%)
Mutual labels: game-engine, video-game
Gamedev Resources
🎮 🎲 A wonderful list of Game Development resources.
Stars: ✭ 2,054 (+255.36%)
Mutual labels: game-engine, video-game
Lambda Lantern
🧙 A 3D game about functional programming patterns. Uses PureScript Native, C++, and Panda3D.
Stars: ✭ 122 (-78.89%)
Mutual labels: game-engine, video-game
Xray Oxygen
🌀 Oxygen Engine 2.0. [Preview] Discord: https://discord.gg/P3aMf66
Stars: ✭ 481 (-16.78%)
Mutual labels: game-engine
Fabgl
Display Controller (VGA, SSD1306, ST7789, ILI9341), PS/2 Mouse and Keyboard Controller, Graphics Library, Sound Engine, Game Engine and ANSI/VT Terminal for the ESP32
Stars: ✭ 534 (-7.61%)
Mutual labels: game-engine
Entt
Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more
Stars: ✭ 6,017 (+941%)
Mutual labels: game-engine
Pmtech
Lightweight, multi-platform, data-oriented game engine.
Stars: ✭ 478 (-17.3%)
Mutual labels: game-engine
Luxe Alpha
luxe alpha - deprecated, unrelated to the new engine! see the readme or website for details - https://luxeengine.com/
Stars: ✭ 559 (-3.29%)
Mutual labels: game-engine
Vgmstream
vgmstream - A library for playback of various streamed audio formats used in video games.
Stars: ✭ 524 (-9.34%)
Mutual labels: video-game
Bulllord Engine
lightspeed lightweight elegant game engine in pure c
Stars: ✭ 539 (-6.75%)
Mutual labels: game-engine
Sea3d
An open-source format and tools for game developers 🎮
Stars: ✭ 483 (-16.44%)
Mutual labels: game-engine
Godot 3d Mannequin
An Open Source 3d character and character controller for the Godot game engine
Stars: ✭ 476 (-17.65%)
Mutual labels: video-game
Lighthouse2
Lighthouse 2 framework for real-time ray tracing
Stars: ✭ 542 (-6.23%)
Mutual labels: game-engine
Handmade Math
A simple math library for games and computer graphics. Compatible with both C and C++.
Stars: ✭ 517 (-10.55%)
Mutual labels: game-engine
Pinn
An enhanced Operating System installer for the Raspberry Pi
Stars: ✭ 530 (-8.3%)
Mutual labels: rpi
raylib-go
Golang bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
Requirements
Ubuntu
X11
apt-get install libgl1-mesa-dev libxi-dev libxcursor-dev libxrandr-dev libxinerama-dev
Wayland
apt-get install libgl1-mesa-dev libwayland-dev libxkbcommon-dev
Fedora
X11
dnf install mesa-libGL-devel libXi-devel libXcursor-devel libXrandr-devel libXinerama-devel
Wayland
dnf install mesa-libGL-devel wayland-devel libxkbcommon-devel
macOS
On macOS you need Xcode or Command Line Tools for Xcode.
Windows
On Windows you need C compiler, like Mingw-w64 or TDM-GCC. You can also build binary in MSYS2 shell.
Android
Raspberry Pi
Installation
go get -v -u github.com/gen2brain/raylib-go/raylib
Build tags
-
noaudio
- disables audio functions -
opengl21
- uses OpenGL 2.1 backend (default is 3.3 on desktop) -
opengl11
- uses OpenGL 1.1 backend (pseudo OpenGL 1.1 style) -
wayland
- builds against Wayland libraries
Documentation
Documentation on GoDoc. Also check raylib cheatsheet.
Example
package main
import "github.com/gen2brain/raylib-go/raylib"
func main() {
rl.InitWindow(800, 450, "raylib [core] example - basic window")
rl.SetTargetFPS(60)
for !rl.WindowShouldClose() {
rl.BeginDrawing()
rl.ClearBackground(rl.RayWhite)
rl.DrawText("Congrats! You created your first window!", 190, 200, 20, rl.LightGray)
rl.EndDrawing()
}
rl.CloseWindow()
}
Check more examples organized by raylib modules.
License
raylib-go is licensed under an unmodified zlib/libpng license. View LICENSE.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].