diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-06-18 19:36:36 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:21:22 +0200 | 
| commit | 48934ff63ee14d4759eda36512af87361dd915dd (patch) | |
| tree | f7a80115eacfee7b6871040a87f5fb0087098ea8 /test-client/tiles.ts | |
| parent | 6ec47d729509db83eaeb6a9d855ce2483d70f227 (diff) | |
| download | hurrycurry-48934ff63ee14d4759eda36512af87361dd915dd.tar hurrycurry-48934ff63ee14d4759eda36512af87361dd915dd.tar.bz2 hurrycurry-48934ff63ee14d4759eda36512af87361dd915dd.tar.zst | |
remodel game.
Diffstat (limited to 'test-client/tiles.ts')
| -rw-r--r-- | test-client/tiles.ts | 25 | 
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"),  } | 
