diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-04-03 09:52:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 09:52:40 +0200 |
commit | 0a014f39c375c0cf28de70ebaab6cb0a5266f3c2 (patch) | |
tree | 4ee2404a1e796e8803035dd9285debcfdcb7bbea /src/engine/draw_screen.h | |
parent | d32a4942c7e16af5daf71a769906b17cb44de8e1 (diff) | |
parent | cc23564547b736125fe7e7869de277ea4d4455ab (diff) |
Merge branch 'lonkaars:dev' into dev
Diffstat (limited to 'src/engine/draw_screen.h')
-rw-r--r-- | src/engine/draw_screen.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/engine/draw_screen.h b/src/engine/draw_screen.h index 95765e5..9130842 100644 --- a/src/engine/draw_screen.h +++ b/src/engine/draw_screen.h @@ -3,24 +3,32 @@ // every function call for drawing the screen goes here. #include "engine/maths.h" -#include "ppu/consts.h" #include "ppu/ppu.h" - +#include "engine/level_const.h" +#include "engine/sprite_controller.h" #include <stdio.h> #include <stdint.h> #include <stdlib.h> +#include "engine/camera.h" - -#define HH_map_size_X 80 -#define HH_map_size_Y 60 +#define hh_max_x_size 40 +#define hh_max_y_size 30 /** @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); +vec_cor hh_draw_screen(vec2 player); + /** @brief send data to BAM memory from binary level */ -void hh_setup_screen(); +void hh_setup_screen(hh_level_entity currentlevel); +/** @brief updates screen based on view and maybe player position if it needs to turn back*/ +void hh_update_screen(vec2 view, vec2 ); + /** @brief send black screen to background memory */ void hh_clear_screen(); + /** @brief clears all sprite data */ void hh_clear_sprite(); +/** @brief send data to BAM memory from binary from shop */ +void hh_setup_Shop(); |