Add sad and trick level. Fix pausing bug
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
Assets/_Recovery/*
|
||||
|
||||
# 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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 14d89d6852d448e5818c172b6e0137f6
|
||||
timeCreated: 1787831699
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: df749150cf624835a9d584977460e706
|
||||
timeCreated: 1787832487
|
||||
@@ -668,6 +668,8 @@ MonoBehaviour:
|
||||
- {fileID: 4900000, guid: 952c1e81a6ca4c5ca91390ad12e714ab, type: 3}
|
||||
- {fileID: 4900000, guid: dc3e4e9757d445debb596fe2f5fad7a4, 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}
|
||||
--- !u!4 &516359711
|
||||
Transform:
|
||||
|
||||
@@ -257,7 +257,10 @@ public class DialogManager : Singleton<DialogManager>
|
||||
//now get a response from the guard being questioned
|
||||
response = currentGuard.Answer(FullQuestion).ToRandomString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
var cdoor = LevelLoader.Instance.Doors.First((d) => d.type == "LIFE");
|
||||
response = response.Replace("CDOOR", cdoor.mod.Replace("#",""));
|
||||
|
||||
response = response.Replace("$", "");
|
||||
|
||||
|
||||
@@ -33,6 +33,9 @@ public class LevelLoader : Singleton<LevelLoader>
|
||||
data.doors.Shuffle();
|
||||
data.guards.Shuffle();
|
||||
|
||||
//the global modifier, refrenced everywhere
|
||||
GlobalModifier = data.globalmod;
|
||||
|
||||
//maybe in wrong place, idc at this point engine almost done
|
||||
//get parlor puzzles
|
||||
var parlorText = GlobalStateManager.Instance.parlorPuzzles.ToString();
|
||||
@@ -124,8 +127,6 @@ public class LevelLoader : Singleton<LevelLoader>
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
GlobalModifier = data.globalmod;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ public class PauseController : MonoBehaviour
|
||||
|
||||
public void GoBackToMenu(int intended)
|
||||
{
|
||||
TogglePause(false);
|
||||
GlobalStateManager.Instance.MenuIntended = intended;
|
||||
|
||||
SceneManager.LoadScene(0);
|
||||
|
||||
@@ -25,11 +25,11 @@ public class StatusManager : Singleton<StatusManager>
|
||||
|
||||
public void PopulatePanels()
|
||||
{
|
||||
PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList());
|
||||
PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.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(), 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)
|
||||
{
|
||||
@@ -43,8 +43,17 @@ public class StatusManager : Singleton<StatusManager>
|
||||
var titleMesh = obj.transform.FindChildRecursive("TITLE").GetComponent<TextMeshProUGUI>();
|
||||
var descMesh = obj.transform.FindChildRecursive("DESC").GetComponent<TextMeshProUGUI>();
|
||||
|
||||
titleMesh.text = item.GetName();
|
||||
descMesh.text = item.GetDescription();
|
||||
if (hide)
|
||||
{
|
||||
titleMesh.text = "???";
|
||||
descMesh.text = "???";
|
||||
}
|
||||
else
|
||||
{
|
||||
titleMesh.text = item.GetName();
|
||||
descMesh.text = item.GetDescription();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ecdc335139674c2fa9c766ce13a30c3e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user