Skip to content

Commit

Permalink
I really need to use proper logging. Stupid lazy dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
Katie Cunningham committed Apr 11, 2012
1 parent a013135 commit 7abbdbc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions roguey/classes/gamemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def __init__(self):

self.get_rooms()
self.connect_rooms()
for room in self.roomlist:
print room.start

for i in range(TREASURES):
while 1:
Expand Down Expand Up @@ -59,8 +57,8 @@ def get_rooms(self):
rooms = 1
keep_going = 50
while rooms <= MAX_ROOMS and keep_going:
height = randint(4,7)
length = randint(4,7)
height = randint(4,10)
length = randint(4,10)
x = randint(0, COLUMNS-1)
y = randint(0, ROWS)
room = self.check_room(coord=(x,y), height=height, length=length)
Expand All @@ -79,15 +77,13 @@ def connect_rooms(self):
next = self.roomlist[i+1]
except:
next = self.roomlist[0]
print room.door, "->", next.door
if room.door[0] < next.door[0]:
start = room.door[0]
end = next.door[0]
else:
start = next.door[0]
end = room.door[0]
for x in range(start, end):
print x, room.door[1]
self.walls[x][room.door[1]] = 0
self.floor[x][room.door[1]] = 1
if room.door[1] < next.door[1]:
Expand All @@ -97,7 +93,6 @@ def connect_rooms(self):
start = next.door[1]
end = room.door[1]
for y in range(start, end):
print room.door[0], y
self.walls[next.door[0]][y] = 0
self.floor[next.door[0]][y] = 1

Expand Down

0 comments on commit 7abbdbc

Please sign in to comment.