Go to file
Corentin Jabot cbd19df739 Implement scaling.
We render pack man at twice the size that we want on screen,
which is the native resolution of the asset file.
The maze is upscaled.
We then project everything onto a view which is applies
the scale factor.

This patches also dectect the appropriate scale on OSX.
This required a bit of objective C (scaling.mm),
but students should not look at this file and there
is a comment in that direction.
Scalling.cpp provides the default implementation
for other platforms.
2021-07-07 21:32:22 +02:00
.github/workflows Build on MacOS too 2021-06-22 13:17:12 +02:00
assets Rename files and remove one 2021-07-05 11:44:37 +02:00
lib Implement scaling. 2021-07-07 21:32:22 +02:00
src Put the code in a namespace 2021-07-05 14:10:01 +02:00
test Fix test aswell 2021-07-07 11:40:23 +02:00
vcpkg@4dc864e240 Fix Debug build on ubuntu 2021-06-16 15:59:52 +02:00
.clang-format Put the code in a namespace 2021-07-05 14:10:01 +02:00
.gitignore Reformat and add a gitignore 2021-06-22 13:17:12 +02:00
.gitmodules Use VCPKG and reorganization 2021-05-10 14:58:00 +02:00
CMakeLists.txt Change project name 2021-06-22 13:17:12 +02:00
README.md Add one more link 2021-06-24 18:33:08 +02:00
vcpkg.json Migrate from SDL to SFML 2021-06-22 13:17:12 +02:00

README.md

Mod(C++) - Pac-Man Exercise

Setup VCPKG

git submodule init git submodule update 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