Skip to content

baz606/minesweeper-raylib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minesweeper-raylib

This is my attempt to building a full minesweeper game clone using raylib: https://www.raylib.com/
The code might need some more cleaning/refactoring, but I think this is a good start.

If you want to build this game, please follow the instructions below.
Make sure you have Visual Studio 2022 installed along with Windows 10 SDK.
Alternatively, you can also compile and run this with CLion.
The CMakeList.txt file should have all the necessary dependencies.

If you want to try out the game, you can find the executable for the latest release under Releases. The executable is for Windows only but you can build from source and target different platforms.

How to build (for Windows 10 using cmake):

  1. Install cmake for windows: https://cmake.org/download/
  2. Run mkdir build && cd build && cmake.exe ..
    This will generate the visual studio files needed to build the final executable
  3. Open the .sln file in Visual Studio 2022
  4. Go to Linker > System under project settings and change SubSystem to Windows
  5. Go to Linker > Advanced and add mainCRTStartup for Entry Point
    Default entry point for Windows SubSystem is WinMain but ours is main.
  6. Hit OK and select Build Solution under Build menu item

This should now build the complete project and you should be able to find the executable in the build directory
under your active configuration setting folder, e.g. Debug, Release, etc.
Make sure the resources folder is in the same directory as your executable.


grid-1.png


grid-2.png


grid-3.png


grid-4.png


Credits:

Sound effects are taken from https://www.zapsplat.com/

About

A simple 2D minesweeper game made with raylib

Resources

Stars

Watchers

Forks

Packages

No packages published