From be5c7263406aef867501c7965bcced6a7e2898a6 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Sep 2024 16:39:31 +1000 Subject: animation, player movement, physics etc. --- physics.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 physics.h (limited to 'physics.h') diff --git a/physics.h b/physics.h new file mode 100644 index 0000000..7044996 --- /dev/null +++ b/physics.h @@ -0,0 +1,19 @@ +#ifndef physics_h +#define physics_h + +struct Map; +struct Rect; + +void update_body( + const struct Map* map, + int* x, + int* y, + int* vx, + int* vy, + int* grounded, + int* headbutted, + int* on_ramp, + const struct Rect* r +); + +#endif -- cgit v1.2.3-54-g00ecf