Included some of the graphics in the game.

This commit is contained in:
Sakse Dalum 2012-08-08 11:15:14 +02:00
parent 2457f743cc
commit 5ba6f515fb
3 changed files with 3 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -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):

View File

@ -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]))