1- export const SERVER_FPS = 60 ;
1+ export const SERVER_FPS = 30 ;
22
33export const TILE_SIZE = 8 ;
44export const TILE_BIG_SIZE = 16 ;
@@ -37,21 +37,26 @@ export const TEAMS_CONFIG = [
3737 }
3838] ;
3939
40+ const TANK_SPEED_SLOW = 35 ;
41+ const TANK_SPEED_FAST = 60 ;
42+
43+ const BULLET_SPEED_SLOW = 125 ;
44+ const BULLET_SPEED_FAST = 250 ;
4045
4146export const TANK_STATS = {
42- basic : { speed : 35 / SERVER_FPS , hp : 1 , bulletSpeed : 120 / SERVER_FPS , bulletCooldown : SERVER_FPS , canBreakSteel : false , spriteKey : 'basic' } ,
43- fast : { speed : 60 / SERVER_FPS , hp : 1 , bulletSpeed : 120 / SERVER_FPS , bulletCooldown : SERVER_FPS , canBreakSteel : false , spriteKey : 'fast' , } ,
44- armor : { speed : 35 / SERVER_FPS , hp : 1 , bulletSpeed : 180 / SERVER_FPS , bulletCooldown : SERVER_FPS , canBreakSteel : false , spriteKey : 'armor' } ,
45- heavy : { speed : 35 / SERVER_FPS , hp : 4 , bulletSpeed : 180 / SERVER_FPS , bulletCooldown : SERVER_FPS , canBreakSteel : false , spriteKey : 'heavy' } ,
47+ basic : { speed : TANK_SPEED_SLOW / SERVER_FPS , hp : 1 , bulletSpeed : BULLET_SPEED_SLOW / SERVER_FPS , bulletCooldown : SERVER_FPS , canBreakSteel : false , spriteKey : 'basic' } ,
48+ fast : { speed : TANK_SPEED_FAST / SERVER_FPS , hp : 1 , bulletSpeed : BULLET_SPEED_SLOW / SERVER_FPS , bulletCooldown : SERVER_FPS , canBreakSteel : false , spriteKey : 'fast' , } ,
49+ armor : { speed : TANK_SPEED_SLOW / SERVER_FPS , hp : 1 , bulletSpeed : BULLET_SPEED_FAST / SERVER_FPS , bulletCooldown : SERVER_FPS , canBreakSteel : false , spriteKey : 'armor' } ,
50+ heavy : { speed : TANK_SPEED_SLOW / SERVER_FPS , hp : 4 , bulletSpeed : BULLET_SPEED_FAST / SERVER_FPS , bulletCooldown : SERVER_FPS , canBreakSteel : false , spriteKey : 'heavy' } ,
4651
4752 player : {
48- speed : 60 / SERVER_FPS ,
53+ speed : TANK_SPEED_FAST / SERVER_FPS ,
4954 hp : 1 ,
5055 levels : {
51- 1 : { bulletSpeed : 120 / SERVER_FPS , bulletCount : 1 , cooldown : Math . floor ( 0.33 * SERVER_FPS ) , canBreakSteel : false } ,
52- 2 : { bulletSpeed : 180 / SERVER_FPS , bulletCount : 1 , cooldown : Math . floor ( 0.20 * SERVER_FPS ) , canBreakSteel : false } ,
53- 3 : { bulletSpeed : 180 / SERVER_FPS , bulletCount : 2 , cooldown : Math . floor ( 0.20 * SERVER_FPS ) , canBreakSteel : false } ,
54- 4 : { bulletSpeed : 180 / SERVER_FPS , bulletCount : 2 , cooldown : Math . floor ( 0.20 * SERVER_FPS ) , canBreakSteel : true }
56+ 1 : { bulletSpeed : BULLET_SPEED_SLOW / SERVER_FPS , bulletCount : 1 , cooldown : Math . floor ( 0.33 * SERVER_FPS ) , canBreakSteel : false } ,
57+ 2 : { bulletSpeed : BULLET_SPEED_FAST / SERVER_FPS , bulletCount : 1 , cooldown : Math . floor ( 0.20 * SERVER_FPS ) , canBreakSteel : false } ,
58+ 3 : { bulletSpeed : BULLET_SPEED_FAST / SERVER_FPS , bulletCount : 2 , cooldown : Math . floor ( 0.20 * SERVER_FPS ) , canBreakSteel : false } ,
59+ 4 : { bulletSpeed : BULLET_SPEED_FAST / SERVER_FPS , bulletCount : 2 , cooldown : Math . floor ( 0.20 * SERVER_FPS ) , canBreakSteel : true }
5560 }
5661 }
5762} ;
@@ -99,5 +104,5 @@ export const BULLET_COOLDOWN_FAST = 8;
99104
100105export const CHAT_HISTORY_LENGTH = 100 ;
101106
102- export const TANK_SNAP_GRID = 8 ;
103- export const TANK_SNAP_TOLERANCE = 8 ;
107+ export const TANK_SNAP_GRID = 4 ;
108+ export const TANK_SNAP_TOLERANCE = 4 ;
0 commit comments