go-game

command module
v0.0.0-...-4d18667 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 0 Imported by: 0

README

go-game

A 2D game framework for the go programming language.

Installation

go get -u -v github.com/go-gl/gl/v2.1/gl
go get -u -v github.com/veandco/go-sdl2/sdl
go get -u -v github.com/veandco/go-sdl2/img
go get -u -v github.com/veandco/go-sdl2/mix
go get -u -v github.com/veandco/go-sdl2/ttf

Notes for OS X

Compilation

Xcode 8.3 had some changes so that the linking of lib sdl was broken. If you get the error signal: killed run or build your game with the flags -ldflags -s. See: Github Issue

Dependencies

You need pkg-config and SDL2 libs.

Install with Homebrew:

brew install pkg-config sdl2 sdl2_image sdl2_mixer sdl2_ttf
Controller support

For XBox 360 controller support on Mac, see: https://github.com/360Controller/360Controller/releases

Used Font

The used font OpenSans-Regular was downloaded from www.fontsquirrel.com.

It is licensed under the Apache License v2.00.

Documentation

Overview

Go-Game is a 2D programming framework. You can find the official documentation at http://www.go-game.org

Directories

Path Synopsis
Package audio manages the loading and playback of sound files.
Package audio manages the loading and playback of sound files.
Package controller lets you poll controllers, their buttons their axes and let them rumble.
Package controller lets you poll controllers, their buttons their axes and let them rumble.
Package desktop manages the creation of windows and runs game states in thise windows.
Package desktop manages the creation of windows and runs game states in thise windows.
Package examples contains are a lot of simple feature based examples.
Package examples contains are a lot of simple feature based examples.
Package game defines the structure of game states.
Package game defines the structure of game states.
gfx
Package gfx provides different kinds of functions and graphic primitives that bring life onto the screen.
Package gfx provides different kinds of functions and graphic primitives that bring life onto the screen.
animation
Package animation provides functionality to animate graphic primitives on the screen.
Package animation provides functionality to animate graphic primitives on the screen.
Package keys handles input via keyboard.
Package keys handles input via keyboard.
Package mouse handles input via mouse/touchpad.
Package mouse handles input via mouse/touchpad.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL