All Projects → gen2brain → Raylib Go

gen2brain / Raylib Go

Licence: zlib
Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.

Programming Languages

c
50402 projects - #5 most used programming language
golang
3204 projects

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
Engine Native
Native engine for Cocos Creator
Stars: ✭ 488 (-15.57%)
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
3dworld
3D Procedural Game Engine Using OpenGL
Stars: ✭ 527 (-8.82%)
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
Tetra
🎮 A simple 2D game framework written in Rust
Stars: ✭ 492 (-14.88%)
Mutual labels:  game-engine
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
Hex Engine
A modern 2D game engine for the browser.
Stars: ✭ 558 (-3.46%)
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
Roygbiv
A 3D engine for the Web
Stars: ✭ 499 (-13.67%)
Mutual labels:  game-engine
Pinn
An enhanced Operating System installer for the Raspberry Pi
Stars: ✭ 530 (-8.3%)
Mutual labels:  rpi

logo

raylib-go

TravisCI Build Status AppVeyor Build status GoDoc Go Report Card Examples

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

Android example.

Raspberry Pi

RPi example.

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].