Dag-Erling Smørgrav
34445c7540
Add Q for quit.
2021-10-19 10:50:21 +02:00
Corentin Jabot
6923904c61
Canvas::update=>render
2021-10-06 13:30:07 +02:00
Patricia Aas
ebed3ee8f1
Fix Clang Tidy warning
2021-10-05 14:48:26 +02:00
Corentin Jabot
d3e7ed1f46
Pressing A switches from the player to the AI.
2021-10-05 14:31:21 +02:00
Ólafur Waage
60b3cdeb40
Formatting and const fixes. Also check for extra canGo calls.
2021-09-08 14:49:43 +02:00
Ólafur Waage
55fbb53591
Refactoring Game and GameState. Moving game state update logic into that class. Game is now only event loop.
2021-09-07 16:00:19 +02:00
Patricia Aas
4b7015b96b
Remove unneeded init
2021-08-25 11:23:54 +02:00
Patricia Aas
5b2b0d8e73
Make files for ghosts
2021-07-28 15:28:36 +02:00
Corentin Jabot
d6a046ff47
Use the correct ghost names
2021-07-16 09:35:32 +02:00
Corentin Jabot
0428366e86
Call reserve and add uncommited code
2021-07-16 09:19:10 +02:00
Corentin Jabot
691aac978e
Get rid of tuple
2021-07-15 09:14:25 +02:00
Patricia Aas
522362152d
Refactor
2021-07-13 14:26:57 +02:00
Patricia Aas
ee3c7c61db
Simplify
2021-07-08 18:12:03 +02:00
Patricia Aas
e5e46a0e65
Create GameState
2021-07-08 16:57:18 +02:00
Patricia Aas
3c638c057e
No need to pass Board around
2021-07-07 11:39:09 +02:00
Patricia Aas
f7b53d9fca
Don't use ->
2021-07-06 17:09:42 +02:00
Corentin Jabot
60095363f4
Put the code in a namespace
2021-07-05 14:10:01 +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
93186dc8b9
Add ghosts
...
No movement for now!
2021-06-24 18:33:08 +02:00
Corentin Jabot
fedbc153ae
Implement score
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
Patricia Aas
1fb5f23885
Check optional before it's used
2021-06-22 13:17:12 +02:00
Corentin Jabot
c7ef086d3d
Migrate from SDL to SFML
...
This simplifies the rendering code and remove all(!) pointers.
There is a number of unresolved issues
* Windows build ?
* position delta computation: migrating to SFML seems to have modified
the frame rate.
2021-06-22 13:17:12 +02:00
Corentin Jabot
f911f6e2a8
Eat pellets
2021-06-16 13:59:16 +02:00
Patricia Aas
68f63f3f66
Canvas rewrite ( #6 )
...
* Beginning rewrite
* Move all constants to canvas, wire sprite handling code
* Make Sprite a struct and reformat
* Fix warning
Co-authored-by: Corentin Jabot <corentinjabot@gmail.com>
2021-06-16 12:52:04 +02:00
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
Corentin Jabot
164db664ef
Use VCPKG and reorganization
...
* Remove non-pacman exercises.
* Use vcpkg instead of conan ( make vcpkg a submodule)
* Merge the readmem these will need to be improve later
2021-05-10 14:58:00 +02:00