diff options
| author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-04-04 15:27:35 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-04 15:27:35 +0200 | 
| commit | 1771aaa12736b4dbc24419270cf595de6d345969 (patch) | |
| tree | 8e023b13df43b3aaef5241e59bcbe5c90b1a2f8a /src/engine/draw_screen.h | |
| parent | f47d082d2fb2d5e5b5a4d3e685d8d093699938d7 (diff) | |
| parent | 854a80001b9798d1454e4308e4efba96431e44d8 (diff) | |
Merge pull request #52 from heavydemon21/dev
multiple bullets and bg collisions.
Diffstat (limited to 'src/engine/draw_screen.h')
| -rw-r--r-- | src/engine/draw_screen.h | 14 | 
1 files changed, 6 insertions, 8 deletions
| diff --git a/src/engine/draw_screen.h b/src/engine/draw_screen.h index 9130842..4829bc6 100644 --- a/src/engine/draw_screen.h +++ b/src/engine/draw_screen.h @@ -11,24 +11,22 @@  #include <stdlib.h>  #include "engine/camera.h" -#define hh_max_x_size 40  -#define hh_max_y_size 30 - -/** @brief return a single tile from world binary */ +/** @brief return a single tile from world */  uint8_t hh_world_to_tile(vec2 pos); -/** @brief shift to level if viewport changed position */ +/** @brief main function for the screen. shift through the map and update the camera based on the player */  vec_cor hh_draw_screen(vec2 player); -/** @brief send data to BAM memory from binary level */ +/** @brief sets the start of a level */  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 updates screen if view is at the beginning or end */ +void hh_update_screen(vec2 view);  /** @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(); |