Skip to content

visarbuza/Pacman-3D-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL 3D PacMan

Uses OpenGl Api to render everything on screen.

Implements A star search algorithm

This project was made for assignment 2 in the course Graphics Programming - IMT2531. picture picture

How to setup

Make sure you have cmake version 3.14 or later installed. Navigate to the root folder of the project and execute the following commands

On linux:

mkdir build
cd build
cmake ..
make
./Pacman3D

On windows:

mkdir build
cd build
cmake ..
cmake --build .
cd ..
cd out/build/x64-Debug
Pacman3D.exe

Controls

W - Move player forward

A - Move player left

S - Move player backwards

D - Move player right

F - Toggle flashlight

M - Switch between first-person, third-person and top down view

LShift - Sprint

Esc - Pause the game

Arrow keys - Navigate the menu

Space - Make a selection in the menu

Functionality

This game is shipped with the classic pacman map from assignment 1, now in 3D! Pacman can be moved around to collect the yellow cublets for points. At the same time he must dodge the ghosts chasing him. In this 3D version we fixed the collisions (sorry to the hardcore players who liked the challenge), no more getting stuck!

The game is supposed to look and feel like a horror game, thats why Pacman has a flashlight (we don't know how he's carrying it with no hands). This flashlight can be toggled on and off. We also added sprinting for those extra spooky moments when a ghost comes out of the corner. If playing in first-person isn't your cup of tea, don't fret! The game offers 3 different perspectives to play from, first-person, third-person and a top down view.

Version History

1.2 - Added a third person view

1.1 - Added a top down view

1.0 - Added victory and death

0.94 - Added collisions

0.93 - Added lamps in the corners of the map

0.92 - Added text rendering

0.91 - Added AI for ghosts

0.9 - Added menu

0.8 - Ghosts shine bright like a diamond

0.7 - Added food for Pacman

0.6 - Rendered the map from a file

0.5 - Added developer console

0.4 - Added ghosts

0.3 - Added a spotlight with the origin in the camera to act as a flashlight

0.2 - Added model loading

0.1 - Added a movable camera

Members

Special mentions

Thanks to Ludvig Lilleberg for providing us with the ghost models

About

3D rendered game using OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages