diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-06-25 23:34:10 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-06-25 23:34:10 +0200 | 
| commit | 4dc15a1e86ef1ae985fdf36f1a84d07b1de99ea7 (patch) | |
| tree | 6a262cd2be9abee480adda3e367c7f8abf8845d6 /data | |
| parent | 84c90e84a1e0d6cd2eae36fd8888354b4e23c354 (diff) | |
| download | hurrycurry-4dc15a1e86ef1ae985fdf36f1a84d07b1de99ea7.tar hurrycurry-4dc15a1e86ef1ae985fdf36f1a84d07b1de99ea7.tar.bz2 hurrycurry-4dc15a1e86ef1ae985fdf36f1a84d07b1de99ea7.tar.zst | |
server can change map at runtime
Diffstat (limited to 'data')
| -rw-r--r-- | data/demands/default.yaml (renamed from data/demands.yaml) | 0 | ||||
| -rw-r--r-- | data/demands/none.yaml | 0 | ||||
| -rw-r--r-- | data/index.yaml | 14 | ||||
| -rw-r--r-- | data/makefile | 4 | ||||
| -rw-r--r-- | data/maps/big.yaml (renamed from data/map.yaml) | 30 | ||||
| -rw-r--r-- | data/maps/lobby.yaml | 55 | ||||
| -rw-r--r-- | data/maps/small.yaml | 78 | ||||
| -rw-r--r-- | data/recipes/.gitignore | 1 | ||||
| -rw-r--r-- | data/recipes/default.ts (renamed from data/recipes.ts) | 2 | ||||
| -rw-r--r-- | data/recipes/none.ts | 1 | 
10 files changed, 169 insertions, 16 deletions
| diff --git a/data/demands.yaml b/data/demands/default.yaml index f6be0911..f6be0911 100644 --- a/data/demands.yaml +++ b/data/demands/default.yaml diff --git a/data/demands/none.yaml b/data/demands/none.yaml new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/data/demands/none.yaml diff --git a/data/index.yaml b/data/index.yaml new file mode 100644 index 00000000..e00ff9f2 --- /dev/null +++ b/data/index.yaml @@ -0,0 +1,14 @@ +initial: [null, lobby, null] + +demands: +    - none +    - default + +maps: +    - lobby +    - big +    - small + +recipes: +    - none +    - default diff --git a/data/makefile b/data/makefile new file mode 100644 index 00000000..b5984dd7 --- /dev/null +++ b/data/makefile @@ -0,0 +1,4 @@ + +all: $(patsubst %.ts,%.yaml,$(wildcard recipes/*.ts)) +recipes/%.yaml: recipes/%.ts +	deno run $< > $@ diff --git a/data/map.yaml b/data/maps/big.yaml index 207a4f90..46527a87 100644 --- a/data/map.yaml +++ b/data/maps/big.yaml @@ -16,27 +16,26 @@  map:      - "'''''*'''*'''''*'''*'''*'''*''*'"      - "'''*''''*'*'**'''*''**''**''*'''" -    - "''██v███v███v███v███v███v██v██*'" -    - "''vctc.ctc.ctc.ctc.ctc█⌷....sv**" +    - "''██▒██▒██▒███▒███▒████▒██▒███*'" +    - "''█ctc.ctc.ctc.ctc.ctc█⌷....s█**"      - "''█.....c.............█⌷....s█''" -    - "'*vc...c...████www██dd█⌷.⌷.⌷⌷v*'" -    - "*'█tc.ctc..█⌷.C...ff..d..⌷..H█''" -    - "''█c...c...█⌷.C.....~.d..⌷..R█'*" -    - "*'vc.......w..⌷⌷⌷⌷⌷⌷⌷⌷█⌷.⌷..Tv*'" -    - "'*█tc......w..........d..⌷..F█*'" -    - "''vc.....ct█⌷S⌷S⌷S⌷⌷oo█⌷⌷⌷..Xv*'" -    - "*'██v█dd█v███v██████v███v██v██*'" -    - "''''''__''''''''''''''''''''''''" -    - "*'''''___________________!______" -    - "''''''__________________________" -    - "''''''''''''''''''''''''''''''''" +    - "'*▒c...c...████www██dd█⌷.⌷.⌷⌷█*'" +    - "*'█tc.ctc..█⌷.C...ff..d..⌷..L█''" +    - "''▒c...c...█⌷.C.....~.d..⌷..R█'*" +    - "*'█c.......w..⌷⌷⌷⌷⌷⌷⌷⌷█⌷.⌷..T█*'" +    - "'*▒tc......w..........d..⌷..F█''" +    - "''█c.....ct█⌷S⌷S⌷S⌷⌷oo█⌷⌷⌷..X█*'" +    - "*'████dd██████████▒███████▒███'*" +    - "'''*''__''''''''''''''''''''''''" +    - "*'''*'___________________!______" +    - "'*''''__________________________" +    - "*''*''''''''''''''''''''''''''''"  tiles:      "⌷": counter      "f": counter      "t": table      "w": counter-window -    "v": wall-window      "s": sink      "o": oven      "S": stove @@ -44,7 +43,7 @@ tiles:      "R": raw-steak-crate      "T": tomato-crate      "F": flour-crate -    "H": leek-crate +    "L": leek-crate      "X": trash      "c": chair @@ -56,6 +55,7 @@ tiles:      "_": path      "d": door      "█": wall +    "▒": wall-window  items:      "S": pot diff --git a/data/maps/lobby.yaml b/data/maps/lobby.yaml new file mode 100644 index 00000000..b35d5839 --- /dev/null +++ b/data/maps/lobby.yaml @@ -0,0 +1,55 @@ +# Undercooked - a game about cooking +# Copyright 2024 metamuffin +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program.  If not, see <https://www.gnu.org/licenses/>. +# +map: +    - "'''''*'''*''''" +    - "'''*''''*'*'*'" +    - "''██████████*'" +    - "''█...ctc.c█**" +    - "''█c...c.cT█''" +    - "'*█tc.....c█*'" +    - "*'█c..~..ct█''" +    - "''█......cT█'*" +    - "*'█.c.....c█*'" +    - "'*█cTc..c..█'*" +    - "''█.c..ctc.█*'" +    - "*'██████████*'" +    - "'*'''*'''*''*'" +    - "*''*''**'''**'" + +tiles: +    "t": table +    "T": table +    "s": sink +    "c": chair +    "~": floor +    ".": floor +    "'": grass +    "*": tree +    "█": wall + +items: +    "t": tomato-soup-plate +    "T": bread-slice-plate + +chef_spawn: "~" +customer_spawn: "!" + +walkable: +    - floor +    - chair +    - grass +collider: +    - wall diff --git a/data/maps/small.yaml b/data/maps/small.yaml new file mode 100644 index 00000000..c45a1d19 --- /dev/null +++ b/data/maps/small.yaml @@ -0,0 +1,78 @@ +# Undercooked - a game about cooking +# Copyright 2024 metamuffin +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program.  If not, see <https://www.gnu.org/licenses/>. +# +map: +    - "'''''*'''*'''''*'''*'''*'" +    - "'''*''''*'*'**'''*''**'''" +    - "''████▒████▒████▒████▒█*'" +    - "''█ctc.ctc.ctc.ctc.ctc█**" +    - "''▒.....c.............█''" +    - "'*█c...c...████ww██dd██*'" +    - "*'█tc.ctc..█sCC..f⌷..L█''" +    - "''▒c...c...█........~R█'*" +    - "*'█c.......█⌷⌷⌷⌷⌷⌷⌷..T█*'" +    - "'*█tc......w.........F█'*" +    - "''█c.....ct█⌷oo⌷⌷SSS⌷X█*'" +    - "*'████dd██████▒████▒███*'" +    - "'*''''__'''''''''''''''''" +    - "*'''''___________________" +    - "'''*''__________________!" +    - "'*'''''''''''''''''''''''" + +tiles: +    "⌷": counter +    "f": counter +    "t": table +    "w": counter-window +    "s": sink +    "o": oven +    "S": stove +    "C": cuttingboard +    "R": raw-steak-crate +    "T": tomato-crate +    "F": flour-crate +    "L": leek-crate +    "X": trash + +    "c": chair +    "~": floor +    ".": floor +    "'": grass +    "*": tree +    "!": path +    "_": path +    "d": door +    "▒": wall-window +    "█": wall + +items: +    "S": pot +    "w": plate +    "f": foodprocessor + +chef_spawn: "~" +customer_spawn: "!" + +walkable: +    - door +    - floor +    - chair +    - grass +    - path + +collider: +    - wall +    - wall-window +    - tree diff --git a/data/recipes/.gitignore b/data/recipes/.gitignore new file mode 100644 index 00000000..1e82fc7d --- /dev/null +++ b/data/recipes/.gitignore @@ -0,0 +1 @@ +*.yaml diff --git a/data/recipes.ts b/data/recipes/default.ts index c3c764f6..4efdb16a 100644 --- a/data/recipes.ts +++ b/data/recipes/default.ts @@ -22,7 +22,7 @@ interface Recipe {      tile?: string,      inputs: (string | null)[],      outputs: (string | null)[], -    action: "instant" | "passive" | "active" +    action: "instant" | "passive" | "active" | "demand"      duration?: number      revert_duration?: number,      warn?: boolean diff --git a/data/recipes/none.ts b/data/recipes/none.ts new file mode 100644 index 00000000..3338909f --- /dev/null +++ b/data/recipes/none.ts @@ -0,0 +1 @@ +// This scripts generates no recipes. Interesting, isn't it? | 
