From 4933a7c038087ae465e588fafb392a57d7f92b87 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 9 Dec 2022 21:56:43 +0100 Subject: gun angle --- include/map.h | 2 +- include/players.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/map.h b/include/map.h index 7c0716d..82584e9 100644 --- a/include/map.h +++ b/include/map.h @@ -36,8 +36,8 @@ typedef struct t_map_info { // data data that is stored on disk int map[MAP_SIZE_Y][MAP_SIZE_X] = { - {0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, + {0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0}, {0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, diff --git a/include/players.h b/include/players.h index ef94489..7107797 100644 --- a/include/players.h +++ b/include/players.h @@ -11,6 +11,9 @@ float sec_since_last_shot = 10.0f; float playerx = 3; float playery = 3; +float gunx = 0.0f; +float guny = 0.0f; +float gun_height = 0.0f; void shoot(platform_window* window); void draw_player(platform_window* window); -- cgit v1.2.3-70-g09d2