From 113c6d105a0b06603388e5e0ded90ed169ae0c50 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sat, 17 Jun 2023 01:18:16 -0400 Subject: map editor --- client/src/types.ts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'client/src/types.ts') 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 = { -- cgit v1.2.3-freya