aboutsummaryrefslogtreecommitdiff
path: root/test-client/tiles.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test-client/tiles.ts')
-rw-r--r--test-client/tiles.ts25
1 files changed, 18 insertions, 7 deletions
diff --git a/test-client/tiles.ts b/test-client/tiles.ts
index 57d96c0f..5eee2b32 100644
--- a/test-client/tiles.ts
+++ b/test-client/tiles.ts
@@ -55,6 +55,11 @@ function arrange_items(...items: string[]): Component[] {
})
}
+const door: Component = c => {
+ c.fillStyle = "#ff9843"
+ c.fillRect(-0.5, -0.1, 1, 0.2)
+}
+
const plate = [circle(0.4, "#b6b6b6", "#f7f7f7", 0.02)];
export const FALLBACK_ITEM: Component[] = [circle(0.3, "#f0f")];
@@ -76,19 +81,25 @@ export const ITEMS: { [key: string]: Component[] } = {
const table = [base("rgb(133, 76, 38)")];
const floor = [base("#333", "#222", 0.05)];
-const spawn = (i: string) => [base("#60701e", "#b9da37", 0.05), ...ITEMS[i]];
+const counter = [base("rgb(182, 172, 164)")];
+const crate = (i: string) => [base("#60701e", "#b9da37", 0.05), ...ITEMS[i]];
export const FALLBACK_TILE: Component[] = [base("#f0f")];
export const TILES: { [key: string]: Component[] } = {
"floor": floor,
"table": table,
- "counter": [base("rgb(182, 172, 164)")],
+ "counter": counter,
+ "door": [...floor, door],
+ "chair": [...floor, circle(0.45, "rgb(136, 83, 41)")],
+ "wall": [base("rgb(0, 14, 56)")],
+ "window": [base("rgb(233, 233, 233)")],
+ "watercooler": [...floor, circle(0.4, "rgb(64, 226, 207)")],
"trash": [...floor, circle(0.4, "rgb(20, 20, 20)"), cross(0.3, "rgb(90, 36, 36)")],
"sink": [base("rgb(131, 129, 161)", "rgb(177, 174, 226)", 0.2)],
"oven": [base("rgb(241, 97, 61)", "rgb(109, 84, 84)", 0.3)],
- "pan": [...table, circle(0.4, "#444", "#999")],
- "flour-spawn": spawn("flour"),
- "dirty-plate-spawn": spawn("dirty-plate"),
- "raw-steak-spawn": spawn("raw-steak"),
- "tomato-spawn": spawn("tomato"),
+ "pan": [...counter, circle(0.4, "#444", "#999")],
+ "flour-crate": crate("flour"),
+ "dirty-plate-crate": crate("dirty-plate"),
+ "raw-steak-crate": crate("raw-steak"),
+ "tomato-crate": crate("tomato"),
}