Giter VIP home page Giter VIP logo

minesweeper's Introduction

Minesweeper

Custom minesweeper engine, using SDL.

Dependencies

Name Url
SDL2 https://github.com/libsdl-org/SDL
SDL2_ttf https://github.com/libsdl-org/SDL_ttf
SDL2_image https://github.com/libsdl-org/SDL_image

How To Build

Mac OS

  • Once the dependencies are installed create the following directories "deps/include" at the root of the project.
  • Place the SDL2 and SDL2_ttf headers inside "deps/include/SDL2" and "deps/include/SDL2_ttf" respectively.
    • Alternatively, you can change line 14 in the .vscode/tasks.json file to point to your own SDL2/SDL2_ttf installation.
  • Create a fonts folder.
  • You should have the following structure:
 |-- .vscode
   | Contains the tasks and settings required to build the project with VS Code
   |
 |-- deps
   | Contains all the dependencies for this project
   |
   |-- include
      | Contains all the header files needed for the project
      |
      |-- SDL2
      |-- Contains the SDL2 headers
      |
      |-- SDL2_ttf
      |-- Contains the SDL2_tff header
   |-- fonts
      | Contains all the fonts
      |
   |-- src
    | Contains all the source code for the project

  • Add a font to the fonts folder. (You might need to change the font that's loaded in src/Renderer2D/SDL/Renderer2D_SDL.cpp, line 25, wip)
  • You can then build and run the project using VS Code.

Windows

  • TODO

Linux

  • TODO

Todo

  • Project refactor
  • Text
  • Better gameplay flow (eg. difficulty selection + restarts)
  • Better graphics
  • Window and input system
  • Setup script

minesweeper's People

Contributors

maxrigout avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.