👋 Hi! This is a small mines game written in golang. It uses a go port for a game library called raylib-go. I created it to try out game development and learn a new language in the process! I also remade some of the features from raygui to make the creating GUI widgets much easier and more customizable.
This mines game allows you to:
- Play mines! (obviously)
- Create your own board configurations
- Use and create custom themes!
- Make it to the scoreboard and try to get the best time on your favorite mines board
You can download a fresh copy of mines
on our releases page. The game is built both on windows and on linux. Open the executable and you're good to go!
Clone the repository:
git clone https://github.com/TypicalAM/mines && cd mines
Compile for linux:
go run main.go
If the compilation fails, then install the dependencies for raylib-go because to include the library you have to generate the cgo
definitions for the raylib C library. For cross compiling to windows from linux you can use the following command
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=/bin/x86_64-w64-mingw32-gcc go build -o mines.exe main.go