aboutsummaryrefslogtreecommitdiff
path: root/src/engine/draw_screen.h
diff options
context:
space:
mode:
authorFlenk008 <frenk_0_0@hotmail.com>2023-03-13 18:04:59 +0100
committerFlenk008 <frenk_0_0@hotmail.com>2023-03-13 18:04:59 +0100
commit47c76e5eabd2b7aa4eb0de7ca34b4ef9ac78f395 (patch)
treed6f75676ba9f544910cc3e49e4e3f3a49cb15d7a /src/engine/draw_screen.h
parent91c9d1c9fc13cf163c6262437de16c992dadaa5b (diff)
Revert "Revert "Merge branch 'dev' of https://github.com/Flenk008/avans-arcade into dev""
This reverts commit a9ad8e0a8ac5346108f1e2c1a0bf9360fadc20da.
Diffstat (limited to 'src/engine/draw_screen.h')
-rw-r--r--src/engine/draw_screen.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/engine/draw_screen.h b/src/engine/draw_screen.h
index 4af5865..b181108 100644
--- a/src/engine/draw_screen.h
+++ b/src/engine/draw_screen.h
@@ -3,7 +3,19 @@
// every function call for drawing the screen goes here.
#include "engine/maths.h"
+#include "ppu/ppu.h"
+#include <stdio.h>
#include <stdint.h>
-uint16_t hh_world_to_tile(vec2 pos);
-void hh_draw_screen(vec2 viewport); \ No newline at end of file
+#include <stdlib.h>
+
+
+#define HH_map_size_X 80
+#define HH_map_size_Y 60
+
+/** @brief return a single tile from world binary */
+uint8_t hh_world_to_tile(vec2 pos);
+/** @brief shift to level if viewport changed position */
+void hh_draw_screen(vec2 viewport);
+/** @brief send data to BAM memory from binary level */
+void hh_setup_screen();