Add ladder on the start position
This commit is contained in:
		@@ -184,6 +184,7 @@ class Generator:
 | 
			
		||||
        sy, sx = randint(0, height - 1), randint(0, width - 1)
 | 
			
		||||
        while level[sy][sx] != Tile.FLOOR:
 | 
			
		||||
            sy, sx = randint(0, height - 1), randint(0, width - 1)
 | 
			
		||||
        level[sy][sx] = Tile.LADDER
 | 
			
		||||
 | 
			
		||||
        # now we loop until we've tried enough, or we've added enough rooms
 | 
			
		||||
        tries, rooms_built = 0, 0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user