Important
Raylib must be compiled with the SVG macro enabled in config.h. Otherwise some images will not be able to load.
- This program was tested on a Macbook air M1 on Sonoma and on WSL Ubuntu.
- A compiled binary of raylib for Mac is in the
mac
folder. - It was developed and tested on Windows 11 using MSVC cl compiler, not mingw's gcc.
This was just for me to have fun so don't expect this to be organized or even optimized in any way ..
Demo.mp4
Simply call the build.bat file after invoking vcvarsall.bat:
.\build.bat
For Mac you can use the librarylib.a provided. Or use your own as long as the SVG macro is uncommented in the config.h in raylib/src/
.
Same for Linux.
make
Press r
to reset the game.
Left
click to reveal a tile, maintain and drag if you want to cancel.
Right
click to toggle a flag on a tile.
ESC
to quit.
- It takes quite a long time for the game to load because I simply load a lot of textures that aren't optimized at all.
Same reason this repo is a bit heavy. Sorry I was kinda lazy on that part and just wanted to finish the game somehow. - It's a god damn memory hog, I malloc once but the struct is full of crap .. ( around 200 mb ram with fsan, 80 mb without and yes this is not electron but C ..)
- A game never ends; you have to manually press
r
to reset it, even if you flagged every possible bomb
- for the library
- slightly modified for the SFX when revealing tiles:
- UI_7 Confusion blip 2(Sytrus,arpegio,multiprocessing,rsmpl).wav
- UI_3-21FHSandal sinus(Sytrus,arpegio,multiprocessing,rsmpl).wav
- UI_3-2 FHSandal sinus(Sytrus,arpegio,multiprocessing,rsmpl).wav
- UI_1 Sweet saw(Sytrus,arpegio,multiprocessing,rsmpl).wav