Skip to content

GoLang 2D Game Library based on SDL 2.0. This can be used to easily write games using Go (www.golang.org) using SDL 2.0 for hardware-accelerated rendering (OpenGL or DirectX9). Based on Urmel/Go2D.

genbattle/Go2D

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To use this framework, you will need to install SDL 2.0 (formerly SDL 1.3), SDL_ttf and SDL_image.

###Windows Users - read this!###
If you don't want to spend time compiling SDL, but just start on your game right away, you can download go2d_windows_bin.zip (click on Downloads on the github page for Urmel/Go2D) for compiled versions of all needed DLL files and the two Go libraries
################################

Installation of SDL 2.0 (note: OpenGL renderer needs OpenGL libraries, e.g. mesa on Ubuntu):
1) hg clone http://hg.libsdl.org/SDL
2) autogen.sh
3) 	./configure --prefix=/usr for Ubuntu
	./configure --prefix=/mingw for Windows/MinGW
4) make
5) make install

Installation of SDL_ttf (this also requires FreeType 2.0):
1) hg clone http://hg.libsdl.org/SDL_ttf/
2) autogen.sh
3) 	./configure --prefix=/usr for Ubuntu
	./configure --prefix=/mingw for Windows/MinGW
4) make
5) make install

Installation of SDL_image (note: PNG loading also requires libpng and libz):
1) hg clone http://hg.libsdl.org/SDL_image/
2) autogen.sh
4) make
5) make install

Installation of Go2D:
1) go get github.com/genbattle/Go2D/sdl
2) go get github.com/genbattle/Go2D/go2d
3) For Examples:
	go get github.com/genbattle/Go2D/test

To install both sdl and go2d:
	go get github.com/genbattle/Go2D/...

Usage:
Check out /skeleton and ./test for examples.

About

GoLang 2D Game Library based on SDL 2.0. This can be used to easily write games using Go (www.golang.org) using SDL 2.0 for hardware-accelerated rendering (OpenGL or DirectX9). Based on Urmel/Go2D.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%