RestInPieces klify

This commit is contained in:
s464859 2022-04-28 17:48:25 +02:00
parent c1c76f96cb
commit 2aa596db5f

View File

@ -111,7 +111,6 @@ class Map:
#od liczby zależy jaki teren, np. 0 - piasek
rng = randrange(10)
if ok and rng==0 and not (i<2 and j<3):
matrix[i].append(10) #kamień
elif ok and rng>6 and not (i<2 and j<3):
matrix[i].append(5) #trawa
@ -120,11 +119,11 @@ class Map:
rand_rotate = 0#randrange(4)*90
if rand_rotate==0 and j+3<self.tiles_x and not (i==0 or i==self.tiles_y-1 or j==0 or j==self.tiles_x-1):
cliff = Cliff(j,i,self.tile_size, rand_rotate, type=2)
self.cliffs.append(cliff)
#self.cliffs.append(cliff)
cliff = Cliff(j+1,i,self.tile_size, rand_rotate, type=0)
self.cliffs.append(cliff)
#self.cliffs.append(cliff)
cliff = Cliff(j+2,i,self.tile_size, rand_rotate, type=3)
self.cliffs.append(cliff)
#self.cliffs.append(cliff)
else:
matrix[i].append(0)
self.terrain_matrix = matrix