Skip to content

GoLang 2D Game Library based on SDL 1.3. This can be used to easily write games using Go (www.golang.org) using SDL 1.3 for hardware-accelerated rendering (OpenGL or DirectX9). This will also be the core engine for the MMORPG "Pokemon Universe" (https://code.google.com/p/pokemon-universe)

henkman/Go2D

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 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 MinGW.zip and place the contents in your mingw directory
################################

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) mkdir build && cd build
3) 	../configure --prefix=/usr for Ubuntu
	../configure --prefix=/mingw for Windows/MinGW
4) make
5) make install

Freetype 2.0 (dependency for SDL_ttf):
1) download the latest version from http://sourceforge.net/projects/freetype/files/freetype2/
2) autogen.sh
3) 	./configure --prefix=/usr for Ubuntu
	./configure --prefix=/mingw for Windows/MinGW
4) make
5) make install

Installation of SDL_ttf:
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/papplampe/Go2D/sdl
2) go get github.com/papplampe/Go2D/go2d
3) For Examples:
	go get github.com/papplampe/Go2D/test/basic
	go get github.com/papplampe/Go2D/test/gui
	In case you get an renderer error try to SetD3D to false
	
To install both sdl and go2d:
	go get github.com/papplampe/Go2D/...

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

About

GoLang 2D Game Library based on SDL 1.3. This can be used to easily write games using Go (www.golang.org) using SDL 1.3 for hardware-accelerated rendering (OpenGL or DirectX9). This will also be the core engine for the MMORPG "Pokemon Universe" (https://code.google.com/p/pokemon-universe)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%