diff options
| author | realtradam <[email protected]> | 2023-05-27 18:17:05 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-05-27 18:17:05 -0400 |
| commit | adbd4bf423647fbab111434b08058c3c130df020 (patch) | |
| tree | 0e2da07207814d444d63783b2e18f2186d45bcbc /src/player.h | |
| parent | 6a6a9ff8f989896fa7af7132d50b116a07e6b44c (diff) | |
| download | TOJam2023-adbd4bf423647fbab111434b08058c3c130df020.tar.gz TOJam2023-adbd4bf423647fbab111434b08058c3c130df020.zip | |
centered target sprite
Diffstat (limited to 'src/player.h')
| -rw-r--r-- | src/player.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h index fa010eb..45c81b1 100644 --- a/src/player.h +++ b/src/player.h @@ -13,6 +13,15 @@ enum } move_state_t; +typedef +struct +{ + float x; + float y; +} +aim_position_t; + + void init_player(void); @@ -39,3 +48,11 @@ detect_player_wall_collisions(void); cvec_collision_2d_world_item_value * get_player_position(void); + +void +update_aim_position(void); + +void +draw_aim(float player_x, float player_y, float scale); + + |
