aboutsummaryrefslogtreecommitdiff
path: root/src/engine/sprite_controller.c
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-03-13 09:57:34 +0100
committerUnavailableDev <ggwildplay@gmail.com>2023-03-13 09:57:34 +0100
commit5c4bf7d451135cd3af3e51976251f01cbb6e6573 (patch)
tree82990aa7c7df22c0888543a87dbd05799217cc99 /src/engine/sprite_controller.c
parentbb2839a81d64e8644c57d83806ae41cc4cfad9dd (diff)
camera, movement, collisions
Diffstat (limited to 'src/engine/sprite_controller.c')
-rw-r--r--src/engine/sprite_controller.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/sprite_controller.c b/src/engine/sprite_controller.c
index d4c44ab..5d93cf8 100644
--- a/src/engine/sprite_controller.c
+++ b/src/engine/sprite_controller.c
@@ -1,7 +1,6 @@
#include <stdint.h>
#include "engine/sprite_controller.h"
-// #include "engine/maths.h"
#include "ppu/types.h"
#include "ppu/consts.h"
#include "ppu/ppu.h"
@@ -17,3 +16,7 @@ void hh_setup_palettes(){
}
}
}
+
+bool hh_colidable(uint8_t tile_idx){
+ return (hh_get_palette(tile_idx) != 0);
+}