summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ceffd9)
raw | patch | inline | side by side (parent: 2ceffd9)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 4 Apr 2017 15:46:55 +0000 (18:46 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 4 Apr 2017 15:46:55 +0000 (18:46 +0300) |
game.h | patch | blob | history |
index 8568721dde2f1c01412effa93394b2157546286a..ea505cf3692fa27fa172a184e2b5c2145b4852c6 100644 (file)
--- a/game.h
+++ b/game.h
#define MAX_PLAYERS 32
#define MAX_BULLETS (MAX_PLAYERS * 8)
-#define TICK 24 // 24 World updates per second
-#define TICK_DELAY (1000 / TICK) // World freeze time ms
-#define BULLET_TIME (TICK * 6) // Bullet live time 6.0s
-#define PLAYER_SIZE 0.01785 // Palyer radius
-#define PLAYER_SHOOT (TICK * 0.8) // Can shoot every 1.0s (less then 1s not work)
+#define TICK 24 // Количество обновлений мира в секунду
+#define TICK_DELAY (1000 / TICK) // Задержка между тиками
+#define BULLET_TIME (TICK * 6) // Время жизни игрока
+#define PLAYER_SIZE 0.01785 // Радиус игрока
+#define PLAYER_SHOOT ((int)(TICK * 0.8)) // Задержка между выстрелами
typedef struct Player {
/* public */