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 i in range(self.dimensions[0]):
for j in range(self.dimensions[1]): for j in range(self.dimensions[1]):
self.tiles.append( self.tiles.append(
tile.Tile(self, i*64, j*48, self.imgs['ground%d' tile.Tile(self, i*64, j*48, self.imgs['ground1']))
% (((i + j) % 2) + 1)]))
self.objects.append(self.player) self.objects.append(self.player)
for i in range(100): for i in range(100):

View File

@ -32,5 +32,5 @@ class Tile(worldobject.WorldObject):
worldobject.WorldObject.__init__(self, level, x, y) worldobject.WorldObject.__init__(self, level, x, y)
def draw(self, window): def draw(self, window):
window.blit(self.img, (self.x, self.y), window.blit(self.img, (self.x - 32,
(0, 0, self.tile_x, self.tile_y)) self.y - self.img.get_size()[1]))