Skip to content
Snippets Groups Projects
Commit 02fa5415 authored by Andreas Blakli's avatar Andreas Blakli
Browse files

Updated readme

parent b22125e5
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,18 @@ Build the project. Build -> Build All
Select pac3D.exe as startup item and run the with the debugger. Or Go into you files \whereYouClonedRepo\imt2531_assignment2\out\build\x64-Debug
and run pac3D.exe.
**Windows cmake**
Clone repo. Open PowerShell. Navigate to where repo is located "cd repoPath".
mkdir build
cd build
cmake ..
cmake --build .
Open pac3D.exe
**NB!** If you get console errors saying that the textures can't load you need to manually copy the "resources" folder into
where the pac3D.exe is located. We never had this issue when using Visual Studio's built in cmake, but for some reason it does this with cmake stand alone.
# Controls
**Pacman controls**
W = Move player forward
......@@ -30,13 +42,21 @@ ESC (escape key) = Opens pause menu when playing a level
Up arrow = Move menu item up
Down arrow = Move menu item down
Enter = Confirms menu selection
LeftMouseClick = Confirms menu selection
# Functionality
*Game logic: You start with 3 lives, the objective of the game is to collect all of the pellets that's in the current game level you are playing,
**Game logic:** You start with 3 lives, the objective of the game is to collect all of the pellets that's in the current game level you are playing,
without losing all of your lives. If you touch a ghost you will loose 1 life, loosing all 3 lives will result in a game over screen whitch displays your total score
and gives you the option to try again, return to the menu or quit the game. If you manage to collect all of the pellets you win the game and a victory screen
is diplayed with your total score with the option to return to the main menu or quit the game.
UI was made with ImGui, there is a main menu, level selector, pause menu, ingame stats hud, victory display and a game over display.
Main menu has: Start game which opens up the level selector and quit game.
Pause menu has: Resume game, Return to main menu and quit game.
Ingame stats hud has: Score and HP.
Victory display has: Total score, return to main menu and quit game.
Game over display has: Total score, Try again, Retrun to main menu and quit game.
------------------ home made objloader ----------------
there is a commented out objloader between tinyobjloader and the rendering code.
it works half way, it reads and loads everything from the obj files, but for some reason it either
......@@ -45,8 +65,8 @@ the result is any models loaded by it will have a load of triangle holes on it.
-------------------------------------------------------
# Demo
Img: https://drive.google.com/file/d/1lJwLoPqvuGlQY95aI5yz318OKpMsp6sm/view?usp=sharing
Video: https://drive.google.com/file/d/12IKh5ZZ2ivnao9Ajg8lCaHdYDuOLlP5c/view?usp=sharing
![Img:](https://drive.google.com/file/d/1lJwLoPqvuGlQY95aI5yz318OKpMsp6sm/view?usp=sharing)
Video (a little outdated, we have added more since this was recorded): https://drive.google.com/file/d/12IKh5ZZ2ivnao9Ajg8lCaHdYDuOLlP5c/view?usp=sharing
# Resources
Ghost model: https://www.cgtrader.com/free-3d-models/character/fantasy/ghost-11a024a0-ecbc-4b17-aa26-9cab5ce2e7b4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment