Skip to content

movikbence/go-ball-sim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ball-sim

A learning exercise for a golang project: Ball simulator.

I have tried to follow the recommendations:

Visual representation is made using Hajime Hoshis Ebiten Game Library.

Lastly, big thanks to my daughter who has made the images used for the graphics :).

Ball Simulator Screenshot

Prerequisites

Ubuntu:

sudo apt install xorg-dev libgl1-mesa-dev

Quick Start

The following assumes installed go binaries are placed in $PATH

To install programs and run each program:

./script/bsg.sh install
collision -nballs=50
bounce -nballs=200

Developer Instruction

Show the script bsg.sh help section to see tools used during development

$ ./scripts/bsg.sh help

 bsg.sh --

	Script for the go-ball-sim program collection.

	Preparation;

	Install the following packages:
	Ubuntu
		sudo apt-get install xorg-dev libgl1-mesa-dev

 Commands;

	build [--clean] [--tdir=<directory>]
		Compiles go-ball-sim programs

	install
		Installs go-ball-sim programs

	test
		Unit test the go-ball-sim programs

	format
		Lint and format check

	smoketest
		Execute build, test and format

About

Ball simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 92.9%
  • Shell 7.1%