repl.it
@jdelarios/

cave.py

Pygame

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Map = {
    'start': {
        'description': 'You are standing at the end of a road before ' \
                       'a small brick building. Around you is a '      \
                       'forest. A small stream flows out of the '      \
                       'building and down a gully to the SOUTH.',
        'exits': { 'South': 'grate' },
        'items': []
    },
    'grate': {
        'description': 'You reach the end of the stream, which flows ' \
                       'down through a metal grate and disappears. ',
        'exits': { 'North': 'start', 'West': 'debris' },
        'items': ['cage']
    },
    'debris': {
        'description': 'You walk along a shallow gully and duck under' \
                       ' the remains of a small bridge. You\'re in a ' \
                       'dimly lit room littered with debris.',
        'exits': { 'East': 'grate', 'West': 'bird' },
        'items': ['rod']
    },
    'bird': {
        'description': 'You follow a tunnel into a larger room where' \
                       ' you can stand upright without hunching.'     \
                       ' You can hear rustling and twittering.',
        'exits': { 'East': 'debris', 'South': 'mists' },
        'items': ['bird']
    },
    'mists': {
        'description': 'You\'re in a huge hall that extends as far ' \
                       'as you can see in an east/west direction. '  \
                       'The ceiling is shrouded in darkness. An '    \
                       'eerie mist covers the floor.',
        'exits': { 'North': 'bird', 'West': 'end' },
        'items': []
    },
    'end': {
        'description': 'You made it to the end.',
        'exits': {},
        'items': []
    }
}