Commit graph

180 commits

Author SHA1 Message Date
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
Patricia Aas
9ca1f6f12d Initialize Event object 2021-06-22 13:17:12 +02:00
Patricia Aas
1fb5f23885 Check optional before it's used 2021-06-22 13:17:12 +02:00
Patricia Aas
4e753a6024 Remove declarations of functions that no longer exist 2021-06-22 13:17:12 +02:00
Patricia Aas
493923036a Make it work on Linux again 2021-06-22 13:17:12 +02:00
Patricia Aas
6365cd2207 Add notes on git submodule 2021-06-22 13:17:12 +02:00
Patricia Aas
32886717de Make it work on windows 2021-06-22 13:17:12 +02:00
Patricia Aas
c6191b1f5d Reformat CMakeLists.txt 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
Patricia Aas
8bcc4e176a
Run on main and on pull requests 2021-06-22 09:22:16 +02:00
Corentin Jabot
f83bf46171 Fix Debug build on ubuntu 2021-06-16 15:59:52 +02:00
Corentin Jabot
98d728fb52 Fix missing header 2021-06-16 15:31:42 +02:00
Corentin Jabot
75fd208299 Basic Text rendering
Using SDL2_ttf and fmt
2021-06-16 15:18:47 +02:00
Corentin Jabot
f911f6e2a8 Eat pellets 2021-06-16 13:59:16 +02:00
Corentin Jabot
2398bf9c36 Fix animation 2021-06-16 13:18:05 +02:00
Corentin Jabot
e16d44cd23 Run clang format 2021-06-16 13:14:47 +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
dad36d7362 Remove comments and unused headers 2021-06-16 09:58:19 +02:00
Corentin Jabot
f6efcbbf79 Support teleporting at the edges of the map 2021-06-16 01:39:37 +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
Patricia Aas
27b8d47dec Move to pragma once 2021-06-10 14:42:51 +02:00
Patricia Aas
9644229061 Give function a shorter name to fit on a slide :) 2021-06-10 14:26:03 +02:00
Corentin Jabot
628f01b276 Use VCPKG in the Github Action (fix) 2021-06-01 19:06:28 +02:00
Corentin Jabot
f56aea4af1 Use VCPKG in the Github Action 2021-06-01 13:48:23 +02:00
Corentin Jabot
aa89c2267a Add a vcpkg manifest file 2021-06-01 13:35:51 +02:00
Corentin Jabot
335a698226 Replace float_t by float 2021-05-10 15:14:38 +02:00
Corentin Jabot
af03c13a97 Put pacman binary in the same directory as the assets 2021-05-10 15:04:31 +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
Patricia Aas
9966892620
Update cmake.yml 2021-04-12 18:41:28 +02:00
Patricia Aas
6d87a1d486
Update cmake.yml 2021-04-12 18:40:41 +02:00
Patricia Aas
44e70071b7 Add some CMake to build with ASan
To run: copy all the libs in that windows dir to pacman/bin
2020-12-01 18:53:59 +01:00
Patricia Aas
7ad457029a Make it easier to see how the coordinates work in the sprite sheet 2020-12-01 14:02:54 +01:00
Patricia Aas
919a4c3d82 Add a solution for Pac-Man speed 2020-11-30 17:59:18 +01:00
Patricia Aas
11d5bda4a5 Add a solution for lcd 2020-11-30 17:06:49 +01:00
Patricia Aas
457bad18c1 Get gtest for pomodoro aswell 2020-11-29 21:42:04 +01:00
Patricia Aas
f987cc6021 This version works on linux 2020-11-29 21:37:14 +01:00
Patricia Aas
c3c932726a Add more text for the exercise 2020-11-29 21:16:12 +01:00
Patricia Aas
f384d4aa08 Whitespace cleanup 2020-11-29 19:28:42 +01:00
Patricia Aas
fd6e33711b Fix some clang tidy things 2020-11-29 19:21:55 +01:00
Patricia Aas
fe03c440fb Use include_directories 2020-11-29 19:17:23 +01:00
Patricia Aas
23bc01fa38 Add LCD code 2020-11-29 19:11:19 +01:00
Patricia Aas
b718e9e54f Try to fix build 2020-11-29 18:08:28 +01:00
Patricia Aas
04c93ef20f Add lcd framework 2020-11-29 17:42:03 +01:00