Skip to content

🕹️ 🎮 2D platform game in C++ using SFML

License

Notifications You must be signed in to change notification settings

SyrusPlayz/platformer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

🕹️ 🎮 2D platform game in C++ using SFML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 88.5%
  • CMake 11.3%
  • Makefile 0.2%