summaryrefslogtreecommitdiff
path: root/client/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/types.ts')
-rw-r--r--client/src/types.ts20
1 files changed, 18 insertions, 2 deletions
diff --git a/client/src/types.ts b/client/src/types.ts
index df0c8b1..02d5adb 100644
--- a/client/src/types.ts
+++ b/client/src/types.ts
@@ -1,4 +1,20 @@
+export const ATLAS_TILE_WIDTH = 32
+
+export enum Tile {
+ EMPTY,
+ WALL,
+ GHOST_WALL,
+ FOOD,
+ PLAYER_SPAWN_1,
+ PLAYER_SPAWN_2,
+ PLAYER_SPAWN_3,
+ PLAYER_SPAWN_4,
+ GHOST_SPAWN,
+ THICC_DOT,
+ INITIAL_DOT
+}
+
export enum Wall {
EMPTY,
WALL_HZ,
@@ -63,8 +79,8 @@ export type Player = {
pos: Vec2,
moveRotation: Rotation,
inputRotation: Rotation,
- name?: string,
- moving: boolean
+ moving: boolean,
+ name?: string
}
export type PlayerInput = {