Commit graph

222 commits

Author SHA1 Message Date
Patricia Aas
30f69464dd Move over to size_t 2021-07-06 12:35:23 +02:00
Corentin Jabot
510e12a921 replace push_back with emplace_back 2021-07-06 10:07:35 +02:00
Corentin Jabot
3197f334d1 Fix linux build 2021-07-05 17:19:35 +02:00
Corentin Jabot
60095363f4 Put the code in a namespace 2021-07-05 14:10:01 +02:00
Corentin Jabot
d166f552f4 Simplify board code 2021-07-05 13:54:54 +02:00
Patricia Aas
7faadda5c0 Remove unused function 2021-07-05 12:18:08 +02:00
Corentin Jabot
727a2c5e76 Create an include 2021-07-05 12:02:36 +02:00
Patricia Aas
2dfd119c54 Fix cmake after renaming 2021-07-05 11:49:12 +02:00
Corentin Jabot
e4991ab1dd Rename PositionInt 2021-07-05 11:47:03 +02:00
Patricia Aas
a5bf577e26 Rename files and remove one 2021-07-05 11:44:37 +02:00
Patricia Aas
d23058f5b5 Rename folder 2021-07-05 11:40:24 +02:00
Corentin Jabot
ba515eaca5 Replace floats by doubles 2021-07-05 11:40:10 +02:00
Corentin Jabot
b5b9d9c168 Rename ghosts 2021-07-05 11:33:02 +02:00
Patricia Aas
dff44bcfed Fix test 2021-07-02 14:47:52 +02:00
Patricia Aas
7081a33e35 Remove unused includes and reformat 2021-07-02 14:47:33 +02:00
Patricia Aas
a62d668ead Simplify Ghost::currentSprite 2021-07-01 14:53:52 +02:00
Patricia Aas
a0fa2b52bb Simplify cmake 2021-07-01 14:34:53 +02:00
Patricia Aas
0e72ff8be5 Make board a static double std::array 2021-07-01 14:33:59 +02:00
Patricia Aas
da5800849d Remove unused code 2021-07-01 13:25:21 +02:00
Patricia Aas
3d60188053 Remove file and directory not in use 2021-07-01 11:09:30 +02:00
Patricia Aas
3f35a3d794 Remove file and directory not in use 2021-07-01 11:03:39 +02:00
Patricia Aas
fc31086ab9 Initialize timeSinceDeath 2021-07-01 10:19:46 +02:00
Corentin Jabot
b6d0bad21c Fix mac build (again) 2021-07-01 10:19:46 +02:00
Corentin Jabot
a01f93cc90 Fix mac build 2021-07-01 10:19:46 +02:00
Corentin Jabot
5b0e561afc Pacman and ghosts can eat each others 2021-07-01 10:19:46 +02:00
Corentin Jabot
ced6cd829c Put the ghosts in a tuple to reduce duplication 2021-07-01 10:19:46 +02:00
Corentin Jabot
3e84746cee Simplify ghost movement code 2021-07-01 10:19:46 +02:00
Corentin Jabot
c2cfb8c734 Implement ghost movement and scatter behavior
Each ghost is trying to reach a point beyond the
corner of the board, which make them run in circle
2021-07-01 10:19:46 +02:00
Corentin Jabot
93186dc8b9 Add ghosts
No movement for now!
2021-06-24 18:33:08 +02:00
Corentin Jabot
79506d218e Make a ghost pen 2021-06-24 18:33:08 +02:00
Corentin Jabot
a0780c7a8c Display the number of remaining lives 2021-06-24 18:33:08 +02:00
Corentin Jabot
fedbc153ae Implement score 2021-06-24 18:33:08 +02:00
Corentin Jabot
42ee04203f Make pacman mouth wide open while he doesn't move 2021-06-24 18:33:08 +02:00
Patricia Aas
57cb71e5c9 Add one more link 2021-06-24 18:33:08 +02:00
Corentin Jabot
ecf2ab8b6c Try to make animation less dependant on framerate 2021-06-24 18:33:08 +02:00
Corentin Jabot
a69e66d114 Pacman should not be animated when hitting a wall 2021-06-24 18:33:08 +02:00
Patricia Aas
f51b7d65e0 Reformat and add a gitignore 2021-06-22 13:17:12 +02:00
Patricia Aas
5f0c03c1fa Clang Tidy fixes 2021-06-22 13:17:12 +02:00
Patricia Aas
f69fcb6ae4 Build on MacOS too 2021-06-22 13:17:12 +02:00
Patricia Aas
aaca7a4020 Change project name 2021-06-22 13:17:12 +02:00
Patricia Aas
1fdef3fe86 Try to use CMake for git submodules (again*2) 2021-06-22 13:17:12 +02:00
Patricia Aas
942bd559c3 Try to use CMake for git submodules (again) 2021-06-22 13:17:12 +02:00
Patricia Aas
2da9215221 Try to use CMake for git submodules 2021-06-22 13:17:12 +02:00
Patricia Aas
d4d2e2d00d Fix animation 2021-06-22 13:17:12 +02:00
Corentin Jabot
652dc41bbf Try to fix linux build (again) 2021-06-22 13:17:12 +02:00
Corentin Jabot
538d4f2fcd Try to fix linux build 2021-06-22 13:17:12 +02:00
Patricia Aas
bf801adde3 Drop libudev 2021-06-22 13:17:12 +02:00
Patricia Aas
8c954d63e0 Install things on Linux 2021-06-22 13:17:12 +02:00
Patricia Aas
591872ea30 Try to make cmake to git submodule things 2021-06-22 13:17:12 +02:00
Patricia Aas
fc657801f0 Remove args from main 2021-06-22 13:17:12 +02:00