Code Monkey home page Code Monkey logo

go2d's Introduction

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.

go2d's People

Contributors

genbattle avatar henkman avatar pikedev avatar tecuhtli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.