/**
 * Created by wanghx on 5/3/16.
 *
 * constant
 *
 */ export const CMD_INIT = 100 ; export const CMD_INIT_ACK = 101 ; export const CMD_SYNC_MAIN_COORD = 102 ; export const CMD_SYNC_OTHER_COORD = 103 ; export const CMD_LOSE_CONNECT = 104 ; export const port = 9999 ; export const devPort = port - 1 ; export const socketPort = port - 2 ; export const MAP_WIDTH = 5000 ; export const MAP_HEIGHT = 5000 ; export const SPEED = 4 ; export const BASE_ANGLE = Math . PI * 200 ; export const MAP_RECT_WIDTH = 200 ; export const MAP_RECT_HEIGHT = 200 ; export const TILE_IMG_WIDTH = 1000 ; export const TILE_IMG_HEIGHT = 1000 ; export const SNAKE_IMG_SIZE = 60 ; export const SYNC_PER_FRAME = 5 ; export const INIT_FOOD_COUNT = 2000 ;