From d6c58243b7b9d90e5e23af2f3c866ddf316cb0fa Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Thu, 22 Feb 2024 12:19:43 -0700 Subject: Can now use pixel data for collision --- src/util.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index fba1e7f..eb8537e 100644 --- a/src/util.h +++ b/src/util.h @@ -1,6 +1,5 @@ #include "gameCommon.h" #include "animation.h" -#include #ifndef UTIL_H #define UTIL_H @@ -9,6 +8,6 @@ Vector2 getScaledMousePosition(); // Check pixals and that fun stuff. -bool doesCollideWithAnimation(Rectangle rect, Animation* animation, Vector2 point); +bool doesCollideWithAnimationData(Rectangle rect, void* data, int width, int height, int frame, Vector2 point); #endif -- cgit v1.2.3