Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Room():
- def __init__(self, rnum, rname, rdesc, north=None, south=None, east=None, west=None):
- self.rnum = rnum
- self.rname = rname
- self.rdesc = rdesc
- self.north = north
- self.south = south
- self.east = east
- self.west = west
- class Player():
- def __init__(self, name, health, damage, money, room):
- self.name = name
- self.health = health
- self.damage = damage
- self.money = money
- self.room = room
- player = Player(name="blank", health=100, damage=20, money=0, room=1)
- main = Room(rnum=0, rname="Main", rdesc="Welcome to room Main")
- north_room = Room(rnum=1, rname="North Room", rdesc="Welcome to the north room")
- south_room = Room(rnum=2, rname="South Room", rdesc="Welcome to the south room")
- east_room = Room(rnum=3, rname="East Room", rdesc="Welcome to the east room")
- west_room = Room(rnum=4, rname="West Room", rdesc="Welcome to the west room")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement