Skip to content

ChichiMsdk/ChichiSweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A little bit less boring minesweeper using raylib

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

Demo.mp4

The codebase is a mess, I know it, I simply didn't bother. Any advice is welcome tho.

Compilation

Windows MSVC

Simply call the build.bat file after invoking vcvarsall.bat:

.\build.bat

Mac & Linux

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

Commands

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.

Known issues

  • 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

Credits

  • raysan for the library raylib

  • newlocknew 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

About

A little bit less boring mine sweeper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages