diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-03-12 11:39:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 11:39:48 +0100 |
commit | b632b5dadf2d992b2bf6e5d52a1df03c871ec8e9 (patch) | |
tree | 93f2ca26907d7ee920c4e08525be860cbdc2e365 /src/engine/draw_screen.h | |
parent | 835cd8a4cf7052d4599ab4fc2004922336766c21 (diff) | |
parent | 55ffb32cc60f14d5055e5ac6fff746c5e9f7eb7d (diff) |
Merge branch 'lonkaars:dev' into game-engine
Diffstat (limited to 'src/engine/draw_screen.h')
-rw-r--r-- | src/engine/draw_screen.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/engine/draw_screen.h b/src/engine/draw_screen.h index 4af5865..8d7df47 100644 --- a/src/engine/draw_screen.h +++ b/src/engine/draw_screen.h @@ -2,8 +2,20 @@ // every function call for drawing the screen goes here. -#include "engine/maths.h" +#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(); |