Find a file
Corentin Jabot bbf3731cf4 Change window geometry for scoring.
* Add margins all around the board for better aestetics.
* Add room for scoring
* Because the texture atlas is a 32x32 grid, we can manipulate
textures as positions on that grid and only create a rectangle
for that texture in the rendering code.
* Avoid hardcoded values in the rendering code.
2021-06-15 23:55:55 +02:00
.github/workflows Use VCPKG in the Github Action (fix) 2021-06-01 19:06:28 +02:00
assets Use VCPKG and reorganization 2021-05-10 14:58:00 +02:00
lib Change window geometry for scoring. 2021-06-15 23:55:55 +02:00
solution Replace float_t by float 2021-05-10 15:14:38 +02:00
src Use VCPKG in the Github Action (fix) 2021-06-01 19:06:28 +02:00
test Give function a shorter name to fit on a slide :) 2021-06-10 14:26:03 +02:00
toolchains
vcpkg@7bc5b8cdfa Add a vcpkg manifest file 2021-06-01 13:35:51 +02:00
.clang-format
.gitmodules Use VCPKG and reorganization 2021-05-10 14:58:00 +02:00
CMakeLists.txt Use VCPKG in the Github Action (fix) 2021-06-01 19:06:28 +02:00
README.md Add a vcpkg manifest file 2021-06-01 13:35:51 +02:00
vcpkg.json Add a vcpkg manifest file 2021-06-01 13:35:51 +02:00

Mod(C++) - Pac-Man Exercise

Setup VCPKG

On windows, run .\vcpkg\bootstrap-vcpkg.bat. On other platforms, run ./vcpkg/bootstrap-vcpkg.sh

Dependencies will be automatically when running CMake.

Keep PacMan Score

  • Implement score by implementing eating of pellets by Pac-Man
  • Use the existing test.cpp file for TDD scoring
  • Pellets are worth 10 points - SuperPellets 50 points
  • Implement support for the pellets to be eaten
  • Implement support for counting pellets eaten by PacMan
  • (Extra: Display score - if you have a LOT of time)

Make a ghost

  • Use the PacMan class as inspiration
  • Pic a sprite from sprites32.png for the ghost
  • Make an algorithm for movement (simple is fine)
  • For fancy algorithm see next section

Ghosts characters and algorithms

These will probably become relevant