Some changes...

This commit is contained in:
Christian
2024-08-07 21:21:17 +02:00
parent ba21a28ec9
commit 3cc8160f06
5 changed files with 40 additions and 7 deletions

View File

@@ -21,15 +21,14 @@ class Tilemap(object):
for i in range(0, self.height):
self.tiles.append(list())
for j in range(0, self.width):
x = random.randint(0,4)
if x == 0:
if i == 15:
self.tiles[i].append("grass")
elif x == 1:
elif i == 15:
self.tiles[i].append("water")
elif x == 2:
elif i > 15:
self.tiles[i].append("mud")
else:
self.tiles[i].append("block")
self.tiles[i].append("empty")
def render(self, screen):