aboutsummaryrefslogtreecommitdiff
path: root/src/engine/draw_screen.c
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-04-05 20:49:23 +0200
committerUnavailableDev <ggwildplay@gmail.com>2023-04-05 20:49:23 +0200
commit06b9a5e3c252713c211d77b5643143276db209ba (patch)
tree8fb96c3086904969207fab1e77e786a916346aa6 /src/engine/draw_screen.c
parent30ed47e6ea66872951140711323844698a278fff (diff)
parent854a80001b9798d1454e4308e4efba96431e44d8 (diff)
Merge branch 'dev' of https://github.com/heavydemon21/avans-arcade into dev
Diffstat (limited to 'src/engine/draw_screen.c')
-rw-r--r--src/engine/draw_screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/draw_screen.c b/src/engine/draw_screen.c
index 823c284..74b4ff2 100644
--- a/src/engine/draw_screen.c
+++ b/src/engine/draw_screen.c
@@ -10,7 +10,7 @@ uint8_t hh_world_to_tile(vec2 pos){
return tile;
}
-void hh_update_screen(vec2 view, vec2 player){
+void hh_update_screen(vec2 view){
int current_tile_y = view.y / HH_PPU_SPRITE_HEIGHT;
int current_tile_x = view.x / HH_PPU_SPRITE_WIDTH;
int offset_py = view.y - (offsetY / 40 * HH_PPU_SPRITE_HEIGHT);
@@ -86,7 +86,7 @@ vec_cor hh_draw_screen(vec2 player) {
viewport.x = CLAMP(viewport.x, 0, level.size.x * HH_PPU_SPRITE_WIDTH - HH_PPU_SCREEN_WIDTH);
viewport.y = CLAMP(viewport.y, 0, level.size.y * HH_PPU_SPRITE_HEIGHT - HH_PPU_SCREEN_HEIGHT);
- hh_update_screen((vec2){.y=viewport.y,.x=viewport.x},player);
+ hh_update_screen((vec2){.y=viewport.y,.x=viewport.x});
if (viewport.x == previousViewport.x && viewport.y == previousViewport.y){}
else{
hh_ppu_update_aux((hh_s_ppu_loc_aux){