diff options
author | Sofviic <sofviic1993@gmail.com> | 2024-06-18 13:50:50 +0300 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:21:22 +0200 |
commit | 12ecbe37e7fe1f68be1f9b9e69595d0baa2ee987 (patch) | |
tree | 77b5fc62f8cf04c8538a778f6759183baba9d3bc /specs | |
parent | 7954d6dfc42e14ecdaebbe14191c22b071819444 (diff) | |
download | hurrycurry-12ecbe37e7fe1f68be1f9b9e69595d0baa2ee987.tar hurrycurry-12ecbe37e7fe1f68be1f9b9e69595d0baa2ee987.tar.bz2 hurrycurry-12ecbe37e7fe1f68be1f9b9e69595d0baa2ee987.tar.zst |
game design document; 6 demand
Diffstat (limited to 'specs')
-rw-r--r-- | specs/04.GameSetup.md | 6 | ||||
-rw-r--r-- | specs/05.Round.md | 10 | ||||
-rw-r--r-- | specs/06.Demand.md | 31 | ||||
-rw-r--r-- | specs/07.Service.md | 2 | ||||
-rw-r--r-- | specs/08.Items.md | 2 | ||||
-rw-r--r-- | specs/09.UnlocksUpgrades.md | 2 | ||||
-rw-r--r-- | specs/10.HUD.md | 2 |
7 files changed, 52 insertions, 3 deletions
diff --git a/specs/04.GameSetup.md b/specs/04.GameSetup.md index be69bc36..55b0f6b8 100644 --- a/specs/04.GameSetup.md +++ b/specs/04.GameSetup.md @@ -34,13 +34,13 @@ With the restaurant in this form ## Demand
-Check the [Demand section](05) for more info on what this means.
+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(x+o\right)}{2}\right)+1$$
+$$\sin\left(3\sin\frac{\left(hour+offset\right)}{2}\right)+1$$
```c
-demand = sin(3*sin((x+offset)/2))+1
+demand = sin(3*sin((hour+offset)/2))+1
```
diff --git a/specs/05.Round.md b/specs/05.Round.md new file mode 100644 index 00000000..593ff6c3 --- /dev/null +++ b/specs/05.Round.md @@ -0,0 +1,10 @@ +# Pre Round
+!TODO
+
+# Round
+!TODO
+
+# Post Round
+!TODO
+
+
diff --git a/specs/06.Demand.md b/specs/06.Demand.md new file mode 100644 index 00000000..30af805f --- /dev/null +++ b/specs/06.Demand.md @@ -0,0 +1,31 @@ +# Demand
+
+Every tick(?TODO: specify further), a probability is sampled from [the demand equation](#the-demand-equation),
+that number is then multiplied by the [traffic coefficent](#traffic-coefficent),
+that number is then multiplied by the [demand bias](#the-demand-bias),
+that will give a probability on whether a customer will be spawned on this tick.
+
+### The Demand Equation
+$$\sin\left(3\sin\frac{\left(hour+offset\right)}{2}\right)+1$$
+```c
+demand = sin(3*sin((hour+offset)/2))+1
+```
+(always nonnegative below 2)
+
+every day the `offset` will be offset by `[-1,1]` multiplied by the [sway coefficent](#sway-coefficent).
+
+### The Demand Bias
+Demand scale starts at 0%.
+(from -50% to +50%)
+
+every day the `bias` will be offset by `[-10,10]` multiplied by the [sway coefficent](#sway-coefficent).
+(clamped to -50% & 50%).
+
+### Traffic Coefficent
+Usually 1%
+can be changed by the host.
+
+### Sway Coefficent
+Usually 50%
+can be changed by the host.
+
diff --git a/specs/07.Service.md b/specs/07.Service.md new file mode 100644 index 00000000..c9c5e030 --- /dev/null +++ b/specs/07.Service.md @@ -0,0 +1,2 @@ +# Service
+!TODO
diff --git a/specs/08.Items.md b/specs/08.Items.md new file mode 100644 index 00000000..f99c3cba --- /dev/null +++ b/specs/08.Items.md @@ -0,0 +1,2 @@ +# Items
+!TODO
diff --git a/specs/09.UnlocksUpgrades.md b/specs/09.UnlocksUpgrades.md new file mode 100644 index 00000000..9ee68ac8 --- /dev/null +++ b/specs/09.UnlocksUpgrades.md @@ -0,0 +1,2 @@ +# Unlocks/Upgrades
+!TODO
diff --git a/specs/10.HUD.md b/specs/10.HUD.md new file mode 100644 index 00000000..ebe1e09e --- /dev/null +++ b/specs/10.HUD.md @@ -0,0 +1,2 @@ +# HUD
+!TODO
|