Add sad and trick level. Fix pausing bug

This commit is contained in:
WillJeynes
2026-08-27 14:37:12 +01:00
parent 3ca0c5330f
commit 9f16389b7a
11 changed files with 133 additions and 8 deletions
+2
View File
@@ -1,3 +1,5 @@
Assets/_Recovery/*
# This .gitignore file should be placed at the root of your Unity project directory # This .gitignore file should be placed at the root of your Unity project directory
# #
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore # Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
+49
View File
@@ -0,0 +1,49 @@
{
"doors": [
{
"type": "DEFAULT",
"action": "DEATH"
},
{
"type": "DEFAULT",
"action": "DEATH"
},
{
"type": "DEFAULT",
"action": "LIFE"
}
],
"guards": [
{
"type": "BASE",
"action": "JOKER"
}
],
"doorsmods": [
"#LEFT",
"#CENTER",
"#RIGHT"
],
"introdialog": "I'm too sad to be of any use",
"dialog": {
"a horse walks into a therapist's office": {
"and says it feels hoarse": "$ugh, so basic",
"and says nothing, because horses can't talk": "$that just makes me sadder"
},
"a horse walks into a bar": {
"and asks": {
"where the lavatory can be found": "$thats just normal?"
},
"and orders a whiskey": {
"the bartender says": {
"we don't serve horses here": "$Oh poor horse, probably feels like me",
"that'll be five dollars": "$Inflation, in these holy lands!",
"why the long face": "$haha, good one. Alright, fine, you need the CDOOR door"
}
}
},
"two horses walk into a bar": {
"one says ouch": "$I cannot comprehend two horses"
}
}
}
+3
View File
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 14d89d6852d448e5818c172b6e0137f6
timeCreated: 1787831699
+44
View File
@@ -0,0 +1,44 @@
{
"doors": [
{
"type": "DEFAULT",
"action": "LIFE"
},
{
"type": "DEFAULT",
"action": "LIFE"
}
],
"guards": [
{
"type": "BASE",
"action": "LIAR"
},
{
"type": "BASE",
"action": "TRUTHER"
}
],
"guardsmods": [
"HAT",
"SHORT"
],
"doorsmods": [
"BLUE",
"RED"
],
"globalmod": "HIDE",
"introdialog": "Doesn't seem like anything is off here...",
"dialog": {
"is": {
"DOORS": {
"safe": "DS#safe",
"unsafe": "DS#safe!"
},
"GUARDS_YOU": {
"short": "GS#short",
"wearing a hat": "GS#hat"
}
}
}
}
+3
View File
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: df749150cf624835a9d584977460e706
timeCreated: 1787832487
+2
View File
@@ -668,6 +668,8 @@ MonoBehaviour:
- {fileID: 4900000, guid: 952c1e81a6ca4c5ca91390ad12e714ab, type: 3} - {fileID: 4900000, guid: 952c1e81a6ca4c5ca91390ad12e714ab, type: 3}
- {fileID: 4900000, guid: dc3e4e9757d445debb596fe2f5fad7a4, type: 3} - {fileID: 4900000, guid: dc3e4e9757d445debb596fe2f5fad7a4, type: 3}
- {fileID: 4900000, guid: 3f7768c50f1e44d6b0965af3ba420fde, type: 3} - {fileID: 4900000, guid: 3f7768c50f1e44d6b0965af3ba420fde, type: 3}
- {fileID: 4900000, guid: 14d89d6852d448e5818c172b6e0137f6, type: 3}
- {fileID: 4900000, guid: df749150cf624835a9d584977460e706, type: 3}
parlorPuzzles: {fileID: 4900000, guid: 665a3d6096294d17ab0ea2e2db862bbb, type: 3} parlorPuzzles: {fileID: 4900000, guid: 665a3d6096294d17ab0ea2e2db862bbb, type: 3}
--- !u!4 &516359711 --- !u!4 &516359711
Transform: Transform:
+3
View File
@@ -259,6 +259,9 @@ public class DialogManager : Singleton<DialogManager>
} }
var cdoor = LevelLoader.Instance.Doors.First((d) => d.type == "LIFE");
response = response.Replace("CDOOR", cdoor.mod.Replace("#",""));
response = response.Replace("$", ""); response = response.Replace("$", "");
string responsePrefix = ""; string responsePrefix = "";
+3 -2
View File
@@ -33,6 +33,9 @@ public class LevelLoader : Singleton<LevelLoader>
data.doors.Shuffle(); data.doors.Shuffle();
data.guards.Shuffle(); data.guards.Shuffle();
//the global modifier, refrenced everywhere
GlobalModifier = data.globalmod;
//maybe in wrong place, idc at this point engine almost done //maybe in wrong place, idc at this point engine almost done
//get parlor puzzles //get parlor puzzles
var parlorText = GlobalStateManager.Instance.parlorPuzzles.ToString(); var parlorText = GlobalStateManager.Instance.parlorPuzzles.ToString();
@@ -124,8 +127,6 @@ public class LevelLoader : Singleton<LevelLoader>
}); });
} }
GlobalModifier = data.globalmod;
} }
+1
View File
@@ -13,6 +13,7 @@ public class PauseController : MonoBehaviour
public void GoBackToMenu(int intended) public void GoBackToMenu(int intended)
{ {
TogglePause(false);
GlobalStateManager.Instance.MenuIntended = intended; GlobalStateManager.Instance.MenuIntended = intended;
SceneManager.LoadScene(0); SceneManager.LoadScene(0);
+12 -3
View File
@@ -25,11 +25,11 @@ public class StatusManager : Singleton<StatusManager>
public void PopulatePanels() public void PopulatePanels()
{ {
PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList()); PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList(),LevelLoader.Instance.GlobalModifier == "HIDE");
PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList()); PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList(), false);
} }
private void PopulatePanel(Transform panel, GameObject template, List<IDescribable> items) private void PopulatePanel(Transform panel, GameObject template, List<IDescribable> items, bool hide)
{ {
foreach (Transform child in panel) foreach (Transform child in panel)
{ {
@@ -43,9 +43,18 @@ public class StatusManager : Singleton<StatusManager>
var titleMesh = obj.transform.FindChildRecursive("TITLE").GetComponent<TextMeshProUGUI>(); var titleMesh = obj.transform.FindChildRecursive("TITLE").GetComponent<TextMeshProUGUI>();
var descMesh = obj.transform.FindChildRecursive("DESC").GetComponent<TextMeshProUGUI>(); var descMesh = obj.transform.FindChildRecursive("DESC").GetComponent<TextMeshProUGUI>();
if (hide)
{
titleMesh.text = "???";
descMesh.text = "???";
}
else
{
titleMesh.text = item.GetName(); titleMesh.text = item.GetName();
descMesh.text = item.GetDescription(); descMesh.text = item.GetDescription();
} }
}
} }
private Dictionary<RectTransform, bool> panelStates = new(); private Dictionary<RectTransform, bool> panelStates = new();
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ecdc335139674c2fa9c766ce13a30c3e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: