Skip to content

Commit 2af7da9

Browse files
committed
major flaw with speech system.
can't back and forth with characters perhaps two lists in the 'data' element - something like 'order' and then 'lines', the two correspond since JSON is annoying with associative arrays
1 parent 2be292d commit 2af7da9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

items.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
{
44
"id": 0,
55
"name": "Old Diary",
6-
"description": "A diary you found on the ground.\nYou don't know who it belongs to.",
7-
"events": [0]
6+
"description": "A diary you found on the ground.\nYou don't know who it belongs to."
87
}
98
]
109
}

locations.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
{
44
"id": 0,
55
"name": "Small Bedroom",
6-
"items": [0]
6+
"items": [0],
7+
"events": [0]
78
}
89
]
910
}

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def createPlayer(self):
6565
def gameLoop(self):
6666
while True:
6767
# Beginning of loop - Clear Screen #
68-
#s("cls")
68+
s("cls")
6969

7070
# 1 - Update player location #
7171
self.player.location = self.locations[self.player.position]

speech.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"speech": [
33
{
44
"id": 0,
5-
"characters": ["f"],
5+
"characters": ["Distant Voice", "Another Distant Voice"],
66
"data": {
7-
"0": ["Hey.... wake up! You've overslept!", "Are you alright? You look confused.", "Listen - I have to run, but just get ready, ok?"]
7+
"0": ["Hey.... you alright? Wake up!"]
88
}
99
}
1010
]

0 commit comments

Comments
 (0)