Included some of the graphics in the game.
This commit is contained in:
parent
2457f743cc
commit
5ba6f515fb
Binary file not shown.
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 3.0 KiB |
|
@ -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):
|
||||
|
|
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue