Skip to content

Commit f804f81

Browse files
committed
beginning to implement events and dialogue.
main plan now is to get a few classes sorted out to import the events and speech.
1 parent 09579c7 commit f804f81

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

events.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"events": [
3+
{
4+
"id": 0,
5+
"speech": 0
6+
}
7+
]
8+
}

locations.json

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

main.py

+5
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ def __init__(self, id_num, itemName, itemDescription):
164164
self.name = itemName
165165
self.description = itemDescription
166166

167+
class Event:
168+
def __init__(self, id_num, eventType):
169+
self.id = id_num,
170+
self.type = eventType
171+
167172
MainGame = Game()
168173
MainGame.gameLoop()
169174
input()

speech.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"speech": [
3+
{
4+
"id": 0,
5+
"characters": ["Mysterious Voice"],
6+
"data": {
7+
"0": "Hey.... wake up! You've overslept!",
8+
"0": "Are you alright? You look confused.",
9+
"0": "Listen - I have to run, but just get ready, ok?",
10+
}
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)