Categorygithub.com/nathan-fiscaletti/go2d
repositorypackage
0.0.0-20230322180508-7207b0f76c2b
Repository: https://github.com/nathan-fiscaletti/go2d.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

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.