Giter VIP home page Giter VIP logo

fernhelm's Introduction

Fernhelm

Fernhelm is a 2D, 2-player local co-op turn-based battle game developed using C++ and SDL2.

fernhelm gif

Table of Contents

How to Play

Gameplay

Players can choose between three different characters to fight against each other. The game ends when a player has reached 0 health. The game begins in the terminal where players can choose their characters or load a saved game (saved games must be inside the saved-data folder). Players can choose between:

Fire Knight ๐Ÿ”ฅ Water Priestess ๐ŸŒŠ Ground Monk ๐Ÿชจ
Fire Knight Water Priestess Ground Monk

After choosing your character, you will be prompted to enter your username. The game will begin once both players have chosen their characters and entered their usernames.

Controls

The game is played using the keyboard. The controls vary depending on the text box that is currently in view.

The main text box contains the following controls:

  • 1 - View attack text bok
    • The attack text box contains the following controls:
      • 1 - Attack 1
      • 2 - Attack 2
      • 3 - Special Attack 1
      • 4 - Special Attack 2
      • Any other key - Return to the main text box
  • 2 - View stats text box
    • The stats text box contains the following controls:
      • 1 - View player stats (displayed on the terminal)
      • Any other key - Return to the main text box
  • 3 - View run text box
    • The run text box contains the following controls:
      • 1 - Run (ends the game)
      • 2 - Stay
      • Any other key - Return to the main text box
  • 4 - Saves the game text box (saves the game to a file in the saved-data folder)
    • The save game text box contains the following controls:
      • 1 - Return to main text box
      • Any other key - Return to the main text box

Getting Started

Dependencies

The system requirements for running on a macOS are:

Installation

  1. Clone the repo
    git clone https://github.com/ramirezfernando/fernhelm.git
  2. Download Homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
  3. Download SDL2 libraries
     brew install sdl2
     brew install sdl2_image

Executing program

  1. Compile the program into an executable
make game
  1. Run the executable
./play

Acknowledgments

Special thanks to:

fernhelm's People

Contributors

ramirezfernando avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.