Skip to content

A version of the game "Mortal Kombat" coded in C++ using the Allegro graphics library (featuring characters Subzero and Scorpion).

Notifications You must be signed in to change notification settings

geomlyd/Mortal-CSD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Mortal-CSD

A version of the game "Mortal Kombat" coded in C++ using the Allegro graphics library (featuring characters Subzero and Scorpion). The game was created as the main project of the undergraduate course CS-454 (Development of intelligent interfaces and games: https://www.csd.uoc.gr/~hy454/).

The team consisted of three members (Emmanouil Giortamis https://github.com/manosgior, Georgios Lydakis https://github.com/geomlyd and Anastasios Livanidis https://github.com/AlivasGR) and the work was more or less equally distributed. This repo is a public read-only copy of the original, created for showcasing examples of our work for CV purposes.

Set-up instructions

The game utilizes the Allegro graphics library, so the first step is setting it up for your system.

With the current directory being the repo's root, build the game by running:

g++ --std=c++11 Source/Engine/*.cpp Source/GameLogic/*.cpp Source/Utility/*.cpp Source/main.cpp -I Source/Utility/json-develop/include -o mortal_kombat -lallegro -lallegro_image -lallegro_audio -lallegro_acodec

Launch the game by executing ./mortal_kombat.

Controls

Player 1:

  • Jump: W
  • Left: A
  • Right: S
  • Crouch: D
  • High kick: H
  • Mid kick: J
  • High punch: U
  • Mid punch: I
  • Block: K

Player 2:

  • Jump: Up arrow
  • Left: Left arrow
  • Right: Right arrow
  • Crouch: Down arrow
  • High kick: Numpad 2
  • Mid kick: Numpad 3
  • High punch: Numpad 5
  • Mid punch: Numpad 6
  • Block: Numpad 0

Special moves

Subzero

  • Throw ice: Down + Forward + Mid punch
  • Slide: Backward + Mid kick + High kick
  • Perform fatality: Backward + Down + High punch

Scorpion

  • Throw spear: While moving backwards, Mid Punch
  • Teleport punch: Down + Backward + Mid Punch
  • Perform fatality: Up + Down + Block

About

A version of the game "Mortal Kombat" coded in C++ using the Allegro graphics library (featuring characters Subzero and Scorpion).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.6%
  • Other 1.4%