summaryrefslogtreecommitdiff
path: root/client/src/types.ts
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-06-17 01:18:16 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-06-17 01:18:16 -0400
commit113c6d105a0b06603388e5e0ded90ed169ae0c50 (patch)
tree70af321cdce86a331141e437f6abae3c1cefd74a /client/src/types.ts
parentts (diff)
downloadtuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.tar.gz
tuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.tar.bz2
tuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.zip
map editor
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 = {