Skip to content

Commit 2d7378a

Browse files
authored
Create data.lua
0 parents  commit 2d7378a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

luaquest/data.lua

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
-- Rooms
2+
rooms = {
3+
start = {
4+
desc = "You are in a dark forest. Paths lead north and east.",
5+
exits = { north = "cave", east = "river" }
6+
},
7+
cave = {
8+
desc = "A spooky cave. You hear growling.",
9+
exits = { south = "start" },
10+
enemy = { name = "Goblin", hp = 10, attack = 2 }
11+
},
12+
river = {
13+
desc = "A wide river. You see a shiny sword on the shore.",
14+
exits = { west = "start" },
15+
item = { name = "Shiny Sword", damage = 5 }
16+
}
17+
}
18+
19+
-- Player template
20+
player = {
21+
location = "start",
22+
hp = 20,
23+
inventory = {}
24+
}

0 commit comments

Comments
 (0)