aboutsummaryrefslogtreecommitdiff
path: root/specs/04.GameSetup.md
blob: 250e39944544724c7f195e569756af6192153a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!--
    Hurry Curry! - a game about cooking
    Copyright 2024 Sofviic

    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/>.

-->
# Game Setup

## Restaurant
The game intially starts with 0€, and only tomatoes unlocked.
You start out with an intial supply of 10 tomatoes in the tomato bag.

With the restaurant in this form
```
+--------------------+
|ctc.ctc.ctc.ctc.ctc.|
|.....c..............|
|c...c...+--www---dd-+
|tc.ctc..|##...##W..#|
|c...c...w..........S|
|c.......w..######..T|
|tc......w..........F|
|c.....ct|##ss##ooo##|
+---dd---+-----------+
```

- `.`: nothing
- `+`,`-`,`|` : walls
- `d`: door
- `t`: table
- `c`: chair
- `#`: counter
- `w`: counter(window)
- `s`: sink
- `o`: oven
- `W`: watercooler
- `S`: [steak] freezer
- `T`: tomoto bag
- `F`: flour bag


## Demand
Check the [Demand section](06.Demand.md) for more info on what this means.

Demand scale starts at 0%.
(from -50% to +50%)

Demand graph starts at offset 9 hours.
$$\sin\left(3\sin\frac{\left(hour+offset\right)}{2}\right)+1$$
```c
demand = sin(3*sin((hour+offset)/2))+1
```