X-Git-Url: http://deadsoftware.ru/gitweb?p=netwar.git;a=blobdiff_plain;f=game.h;h=8568721dde2f1c01412effa93394b2157546286a;hp=00b06cccfc30130de9f36ef98de92257200e363e;hb=2ceffd99eed505ef125b04342304ed87df860d5f;hpb=db7f47cfc17c652a825f7c059ca4a0f3c73a596c diff --git a/game.h b/game.h index 00b06cc..8568721 100644 --- a/game.h +++ b/game.h @@ -4,10 +4,11 @@ #define MAX_PLAYERS 32 #define MAX_BULLETS (MAX_PLAYERS * 8) -#define TICK_DELAY (1000 / 20) // 20 World updates per second -#define BULLET_TIME (TICK_DELAY * 6) // Bullet live time 6.0s -#define PLAYER_SIZE 0.01785 // Palyer radius -#define PLAYER_SHOOT (TICK_DELAY * 1) // Can shoot every 1.0s (less then 1s not work) +#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) typedef struct Player { /* public */