summaryrefslogtreecommitdiff
path: root/client/src/renderer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/renderer.ts')
-rw-r--r--client/src/renderer.ts24
1 files changed, 19 insertions, 5 deletions
diff --git a/client/src/renderer.ts b/client/src/renderer.ts
index 8482ca6..bc6cf83 100644
--- a/client/src/renderer.ts
+++ b/client/src/renderer.ts
@@ -137,9 +137,17 @@ const draw_items = (
let width: number, atlas_index: [number, number]
switch (item.type) {
case ItemType.DOT:
- width = .2,
+ width = .2
atlas_index = [2, 3]
break
+ case ItemType.THICC_DOT:
+ width = .4
+ atlas_index = [2, 3]
+ break
+ case ItemType.FOOD:
+ width = 1
+ atlas_index = [3, 3]
+ break
default:
continue
}
@@ -267,6 +275,7 @@ const draw_debug_sprites = (
let tile_type = map.data[y * map.width + x]
+ let size = 1
let atlas_index: [number, number];
switch (tile_type) {
case Tile.EMPTY:
@@ -275,9 +284,12 @@ const draw_debug_sprites = (
case Tile.GHOST_WALL:
atlas_index = [4, 0]
break
- case Tile.FOOD:
+ case Tile.GHOST_SPAWN:
atlas_index = [3, 0]
break
+ case Tile.FOOD:
+ atlas_index = [3, 3]
+ break
case Tile.PLAYER_SPAWN_1:
atlas_index = [3, 1]
break
@@ -291,10 +303,12 @@ const draw_debug_sprites = (
atlas_index = [4, 2]
break
case Tile.THICC_DOT:
- atlas_index = [4, 3]
+ atlas_index = [2, 3]
+ size = .4
break
case Tile.INITIAL_DOT:
- atlas_index = [3, 3]
+ atlas_index = [2, 3]
+ size = .2
break
}
@@ -302,7 +316,7 @@ const draw_debug_sprites = (
ctx,
x,
y,
- 1,
+ size,
atlas,
atlas_index,
ATLAS_TILE_WIDTH,