aboutsummaryrefslogtreecommitdiff
path: root/src/engine/sprite_controller.c
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-03-12 11:37:58 +0100
committerUnavailableDev <ggwildplay@gmail.com>2023-03-12 11:37:58 +0100
commita386709d12167ab8f85336a1764040c3f573e9eb (patch)
tree14da1e60ed7b21a74d3058928ac925f2d619e65d /src/engine/sprite_controller.c
parent311850396060dbd2b6d716d69bd98af44ee69164 (diff)
integrated palettes and fixed reading tiles
Diffstat (limited to 'src/engine/sprite_controller.c')
-rw-r--r--src/engine/sprite_controller.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/engine/sprite_controller.c b/src/engine/sprite_controller.c
index e69de29..c224ff7 100644
--- a/src/engine/sprite_controller.c
+++ b/src/engine/sprite_controller.c
@@ -0,0 +1,10 @@
+#include <stdint.h>
+
+#include "engine/sprite_controller.h"
+// #include "engine/maths.h"
+#include "ppu/types.h"
+#include "ppu/consts.h"
+
+uint8_t hh_get_palette(uint16_t tile_idx) {
+ return hh_g_sprite_palette[tile_idx];
+}