Giter Club home page Giter Club logo

cursed-game's Introduction

Cursed

Open-source roguelike made with libtcod and written in C++

About

Just a personal project of mine, the basic idea being: what if you could never get hit in a roguelike?

Contributing

Take a look at CONTRIBUTING.md for some contribution guidelines and (if you care) code style.

Building

Depends on: libtcod, SDL2, and SDL2_image

You need git or some other way of getting the source code; in order to follow along with the instructions below run open a console and run these commands:

git clone --recurse-submodules https://github.com/afyber/cursed-game.git
cd cursed-game

Which will download the source code into the cursed-game directory and move into it.

Building on Windows

Requires: Visual Studio with CMake (recommended), or CMake and a build system

  1. To setup the vcpkg submodule run .\vcpkg\bootstrap-vcpkg.bat Alternatively, to use your own installation of vcpkg you can specify it with the -DCMAKE_TOOLCHAIN_FILE=path\to\vcpkg\scripts\buildsystems\vcpkg.cmake option on your CMake command in the next step or setting the CMAKE_TOOLCHAIN_FILE variable.
  2. Use CMake to generate the build configuration either by opening cursed-game in Visual Studio or by creating a build\ directory and running cmake .. in the build\ subdirectory. Unless you specified a different installation this command will attempt to use the vcpkg submodule to find the dependencies.
  3. Build the project using Visual Studio or the build system you specified for CMake, which will copile the executable cursed-game.exe.
  4. (Optional) Run the install configuration, which will put the files needed to run the game into the installation folder (Which for Visual Studio is cursed-game\out\install\{platform}\).

Building on Linux

Requires: CMake and a build system of your choice

  1. To setup the vcpkg submodule run ./vcpkg/bootstrap-vcpkg.sh
  2. Create a new folder with mkdir build, then run cmake .. in the build/ directory to generate the build configuration.
  3. Build the project using the build system of your choice (e.g. run make), which will compile the executable cursed-game.
  4. (Optional) Run the install configuration, which will put everything the game needs to run in /usr/local/ (Sometimes? Where the files go isn't fully consistent).

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.