diff --git a/resources/graphics/tiles/ground1.png b/resources/graphics/tiles/ground1.png index e20bcea..091c134 100644 Binary files a/resources/graphics/tiles/ground1.png and b/resources/graphics/tiles/ground1.png differ diff --git a/robotgame/level1.py b/robotgame/level1.py index 296aa86..dc87452 100644 --- a/robotgame/level1.py +++ b/robotgame/level1.py @@ -51,8 +51,7 @@ class Level1(level.Level): for i in range(self.dimensions[0]): for j in range(self.dimensions[1]): self.tiles.append( - tile.Tile(self, i*64, j*48, self.imgs['ground%d' - % (((i + j) % 2) + 1)])) + tile.Tile(self, i*64, j*48, self.imgs['ground1'])) self.objects.append(self.player) for i in range(100): diff --git a/robotgame/tile.py b/robotgame/tile.py index 63ccb35..3af9a50 100644 --- a/robotgame/tile.py +++ b/robotgame/tile.py @@ -32,5 +32,5 @@ class Tile(worldobject.WorldObject): worldobject.WorldObject.__init__(self, level, x, y) def draw(self, window): - window.blit(self.img, (self.x, self.y), - (0, 0, self.tile_x, self.tile_y)) + window.blit(self.img, (self.x - 32, + self.y - self.img.get_size()[1]))