Skip to content

A 2D game in some way similar to famous Pac-Man, written in C++, with use of SFML library. The project was made in order to practise OOP style programming and Patters.

License

Notifications You must be signed in to change notification settings

tka4nik/pac-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pac-Man game (kinda)

by: Tkachenko Nikita


Description

A 2D game in some way similar to famous Pac-Man, written in C++, with use of SFML library. The project was made in order to practise OOP style programming and Patters.

image

image

image

Features

  • Main menu with 3 levels of difficulty
    • Easy: Small available area, no enemies
    • Medium: Medium available area, some enemies
    • Hard: Obstacles, more enemies
  • Interactable enemies and food
  • WASD controls, Ctrl+Z keybind to revert time

Patterns used:

  • StateMachine for managing gamestates
  • Composite and Command for handling buttons
  • Prototype and Memento for handing game saves
  • Builder for making of levels (including walls and such)
  • Visitor for interactions with enemies and food

Installation

You should have git and a compiler for C++/17 installed

git clone https://github.com/tka4nik/Pac-Man.git

cd Pac-Man
mkdir build && cd build
cmake ..
cmake --build .
cd ../workdir
./../build/Pacman

About

A 2D game in some way similar to famous Pac-Man, written in C++, with use of SFML library. The project was made in order to practise OOP style programming and Patters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published