nathan-fiscaletti / go2d

A 2D game engine written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go2D

A Canvas based 2D Game Engine written in Go built on SDL.

Running a Go2D Game

If you are only trying to run a game that was created using Go2D, you will need to install SDL.

See Installing SDL for more information on installing SDL for your particular system.

$ cd pong
$ CGO_ENABLED=1 CC=gcc GOOS=linux GOARCH=amd64 go build -tags static -ldflags "-s -w" pong.go
$ ./pong

Demos

There are two Demos packaged with Go2D which demonstrate the use of some of it's data structures.

  • Pong: A basic example of the classic game of Pong with a mild twist where the paddles shrink in size each time the ball collides with them.

  • Shooter: A simple Shooter game where balls will spawn at the top and you can shoot them by pressing the space bar.

About

A 2D game engine written in Go

License:MIT License


Languages

Language:Go 100.0%