Giter Site home page Giter Site logo

mjakobczyk / platformer Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 5.0 29.73 MB

:joystick: :video_game: 2D platform game in C++ using SFML

License: MIT License

CMake 11.34% C++ 88.48% Makefile 0.18%
cpp c-plus-plus game game-2d 2d-game platform 2d-platformer 2d-platformer-game sfml sfml-game sfml-cpp

platformer's Introduction

Platformer

Overview

Platformed is a 2D game. The aim of the game is to complete all available levels and obtain points in the shortest possible time. There are many obstacles to come across during a journey: map objects affecting players mobility or life points, enemies and treasures. User chooses one of possible magic classes to play. Each class has it's own ability to fight with enemies.

Prerequisites

  • CMake - 3.12 or higher
  • SFML - 2.4.2 or higher

In order to build a project a build system is required. Examples:

Installation

  1. Clone the repository (using HTTPS as in example or SSH)
$ git clone https://github.com/kyma-incubator/bullseye-showcase.git
  1. Navigate to directory where project was downloaded
$ cd {project-directory}
  1. Edit SFML_ROOT variable in CMakeLists.txt file, provide directory where SFML was downloaded
(...)
set (SFML_ROOT "{provide-directory-here{")
(...)
  1. Clean project to make sure there are no files generated
$ make clean
  1. Build project with default CMake generator
$ make build

Alternative: you can build project using specific generator. In this case generator paramter has to be provided in Makefile file (see more details about generators here)

  1. Run application
make run

Configuration

After installing an application there is no configuration required. Client can be ran anytime.

Usage

Run application using Makefile tool

$ make run

Popup window should appear. In main manu click Play option using Enter button, choose class (navigate using arrow buttons) and start your journey!

Control buttons:

  1. run (left, right arrow keys)
  2. jump (up arrow key)
  3. attack (space)

platformer's People

Contributors

mjakobczyk 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.