Skip to content

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

geomlyd/Mortal-CSD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Overview

A proof-of-concept version of the game "Mortal Kombat" coded in C++ using the Allegro graphics library.

Developed as the main project of the undergraduate course "Development of intelligent interfaces and games" (Department of Computer Science, University of Crete), by Emmanouil Giortamis, Anastasios Livanidis and Georgios Lydakis.

The project showcases a custom-built engine with features such as collision handling, state machines for character actions, and parallax scrolling. The current version includes two characters (Subzero and Scorpion) and two fighting arenas (Courtyard and Throne Room) from the original game.

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%