https://github.com/ohtypek/minesweeper-sdl2
A minesweeper game made in C++ using SDL2.
https://github.com/ohtypek/minesweeper-sdl2
amateur cpp game learning minesweeper sdl2 sdl2-image sdl2-ttf
Last synced: 1 day ago
JSON representation
A minesweeper game made in C++ using SDL2.
- Host: GitHub
- URL: https://github.com/ohtypek/minesweeper-sdl2
- Owner: ohTypek
- License: other
- Created: 2024-12-30T08:33:00.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-22T11:40:35.000Z (2 months ago)
- Last Synced: 2025-06-30T05:05:47.583Z (1 day ago)
- Topics: amateur, cpp, game, learning, minesweeper, sdl2, sdl2-image, sdl2-ttf
- Language: C
- Homepage:
- Size: 37.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minesweeper
A simple game made in [SDL2](https://www.libsdl.org/) with C++.## Screenshots

## Compiling
### Windows
After installing Mingw64, [SDL2](https://github.com/libsdl-org/SDL/releases/tag/release-2.30.10), [SDL_Image](https://github.com/libsdl-org/SDL_image), and [SDL_TTF](https://github.com/libsdl-org/SDL_ttf), execute the following command in the project's root directory:```
g++ -Iinclude -Iinclude/SDL2 -Iinclude/headers -Llib -o Main src/*.cpp -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf
```Compiled file should be located in project root directory, `ready to run`.
## Assets
- [MINE-SWEEPER](https://fontstruct.com/fontstructions/show/1501665) font was made by `Gangetsha Lyx`,
- [VT323](https://fonts.google.com/specimen/VT323) font made by `Peter Hull`,
- Some of the code was taken from a `SDL2 tutorial` series by [codergopher](https://www.youtube.com/@codergopher8270)