Giter VIP home page Giter VIP logo

jewelminer's Introduction

Jewel Miner - a PoC of typical board puzzle games

Licensed under the GNU General Public License version 3. See COPYING for details.

Hierarchy of directories:

/bin - Makefile will output binaries and copy libraries here /dist - Precompiled Windows x64 compressed package /include - The game's C++ header files /src - The game's C++ source code /win64 - Libraries extracted from MinGW64 runtime and SDKs for SDL and SDL_image /vendor - The original SDK's for MinGW64 for SDL 2.0.3 and SDL_image 2.0.0

Compatibility

The game has been built successfully with the following C++11 compilers:

  • GNU C++ Compiler (g++) 4.8.1 on Linux AMD64
  • LLVM's Clang++ 3.4 using libc++ on Linux AMD64
  • MinGW64's GNU C++ (g++) 4.8.1 on Windows 7 x64
  • and the following library versions:

    • SDL 2.0.0 (Linux AMD64), SDL 2.0.3 (Windows x64),
    • SDL_image 2.0.0 on both Linux AMD64 and Windows 7 x64
    • (with up-to-date library dependencies)

Build instructions

Requirements

  • Linux / Unix-like:

SDL 2.0.X and SDL_image 2.0.X development packages. Either LLVM Clang++ 3.4 or GNU G++ 4.8, or (possibly) later versions.

  • Windows

MinGW64 from the MinGWbuilds project, located at http://sourceforge.net/projects/mingwbuilds.

The version tested was installed via the automated install, choosing the x64-4.8.1-release-win32-seh-rev5 version. Note that the libraries under win64/mingw64 come from this version, and they may very well not work correctly if you use any other release. The fix would be to use your compiler's libraries, ie. libgcc_s*.dll and libstdc++6.dll.

Compilation

  • Linux / Unix-like:

Run "make gcc" or "make clang" to compile and output the binary as bin/jewelminer.

  • Windows:

Run "make win" under a mingw64 command prompt. Such prompt is available once you install via mingwbuild installer.

Running the game

  • Linux:

Either run "./run.sh" or execute jewelminer from the bin directory. This is because the binary will look for resources in "../res" from your current working directory.

  • Windows:

Either run "run.bat" or execute jewelminer from the bin directory. See Linux for reasons. Alternatively you could just double-click jewelminer.

Command line

The game supports specifying the number of columns and rows if you run it like:

jewelminer 16 16

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.