diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-17 22:41:11 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-17 22:41:11 +0200 |
commit | 7cd57bf97348b520c55d7ff69052675e0a15ca27 (patch) | |
tree | 7ce70034bd19e7c689a438e8aca14455c0779742 /test-client/tiles.ts | |
parent | c55662a90d6bbfcb4001df26705231cb7d0a4ba2 (diff) | |
download | hurrycurry-7cd57bf97348b520c55d7ff69052675e0a15ca27.tar hurrycurry-7cd57bf97348b520c55d7ff69052675e0a15ca27.tar.bz2 hurrycurry-7cd57bf97348b520c55d7ff69052675e0a15ca27.tar.zst |
tc: add cheese
Diffstat (limited to 'test-client/tiles.ts')
-rw-r--r-- | test-client/tiles.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test-client/tiles.ts b/test-client/tiles.ts index 17d150ea..86203cb7 100644 --- a/test-client/tiles.ts +++ b/test-client/tiles.ts @@ -113,7 +113,7 @@ const iref = (name: ItemName): Component => c => draw_item_sprite(c, name) const tref = (name: TileName): Component => c => TILES[name].forEach(f => f(c)) export type ItemName = string -export type TileName = "sink" | "conveyor" | "book" | "tomato-crate" | "steak-crate" | "flour-crate" | "leek-crate" | "rice-crate" | "fish-crate" | "coconut-crate" | "strawberry-crate" | "oven" | "cuttingboard" | "stove" | "freezer" | "trash" | "grass" | "tree" | "wall" | "chair" | "floor" | "door" | "counter" | "wall-window" | "table" | "counter-window" | "path" | "lamp" | "street" +export type TileName = "sink" | "conveyor" | "book" | "lettuce-crate" | "cheese-crate" | "tomato-crate" | "steak-crate" | "flour-crate" | "leek-crate" | "rice-crate" | "fish-crate" | "coconut-crate" | "strawberry-crate" | "oven" | "cuttingboard" | "stove" | "freezer" | "trash" | "grass" | "tree" | "wall" | "chair" | "floor" | "door" | "counter" | "wall-window" | "table" | "counter-window" | "path" | "lamp" | "street" const ITEMS: { [key in ItemName]: (c: string[]) => Component } = { "bun": () => circle(0.3, "#853e20"), @@ -145,6 +145,8 @@ const ITEMS: { [key in ItemName]: (c: string[]) => Component } = { "sliced-tomato": () => circle(0.3, "#d16363", "#d63838", 0.08), "lettuce": () => circle(0.3, "#64a30b"), "sliced-lettuce": () => circle(0.3, "#a0da4f", "#64a30b", 0.08), + "cheese": () => circle(0.3, "#b3b615"), + "sliced-cheese": () => rect(0.25, "#dcdf29", "#b3b615", 0.05), "dirty-plate": () => circle(0.4, "#947a6f", "#d3a187", 0.02), "mochi-dough": () => circle(0.3, "rgb(172, 162, 151)"), "rice-flour": () => iref("rice"), @@ -186,6 +188,8 @@ const TILES: { [key in TileName]: Component[] } = { "flour-crate": crate("flour"), "steak-crate": crate("steak"), "tomato-crate": crate("tomato"), + "lettuce-crate": crate("lettuce"), + "cheese-crate": crate("cheese"), "leek-crate": crate("leek"), "rice-crate": crate("rice"), "fish-crate": crate("fish"), |