summaryrefslogtreecommitdiff
path: root/src/players.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-12 20:12:38 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-12 20:12:38 +0100
commitcaac4b1d169425ad7dda15fe8fceca9c5a95400b (patch)
treec794d875eb7e4565167267fd54667df97e432222 /src/players.c
parent9528c0c69dba57117f38f84f576af2c81a3b435b (diff)
testing
Diffstat (limited to 'src/players.c')
-rw-r--r--src/players.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/players.c b/src/players.c
index 82804d1..c168eb5 100644
--- a/src/players.c
+++ b/src/players.c
@@ -1,4 +1,5 @@
#include "../include/players.h"
+#include "../include/game.h"
float get_bullet_size_in_tile(platform_window* window) {
return 1 / 8.0f;
@@ -106,8 +107,6 @@ void draw_players_at_tile(platform_window* window, int x, int y) {
if (!players[i].active) continue;
if ((int)players[i].playerx != x || (int)(players[i].playery+get_player_size_in_tile()) != y) continue;
- if (players[i].id == my_id) take_player_input(window);
-
players[i].sec_since_last_shot += update_delta;
float bullets_per_sec = 10;
float time_between_bullets = 1.0f/bullets_per_sec;