Added some blockers for some trees I forgot
Justin Armstrong justinmeister@gmail.com
Thu, 27 Mar 2014 01:13:24 -0700
5 files changed,
29 insertions(+),
5 deletions(-)
M
data/constants.py
→
data/constants.py
@@ -20,6 +20,7 @@ BLACK = (0, 0, 0)
NEAR_BLACK = (1, 0, 0) WHITE = (255, 255, 255) BLACK_BLUE = (19, 15, 48) +NEAR_BLACK_BLUE = (20, 15, 48)
M
data/states/house/layer2.txt
→
data/states/house/layer2.txt
@@ -0,0 +1,19 @@
+0000000000000000000000000 +0000000000000000000000000 +0000000000000000000000000 +0000000000000000000000000 +0000000000000000000000000 +0000000111111111100000000 +0000000111111111100000000 +0000000111111111100000000 +0000000111111111100000000 +0000000111111111100000000 +0000000111111111100000000 +0000000111111111100000000 +0000000111111111100000000 +0000000111111111100000000 +00000000000NN000000000000 +0000000000000000000000000 +0000000000000000000000000 +0000000000000000000000000 +0000000000000000000000000
M
data/states/level_state.py
→
data/states/level_state.py
@@ -148,6 +148,7 @@ self.level_surface.blit(self.player.image, self.player.rect)
self.sprites.draw(self.level_surface) self.level_surface.blit(self.foreground, self.viewport, self.viewport) + surface.blit(self.level_surface, (0, 0), self.viewport) self.dialogue_handler.draw(surface)
M
data/states/town/blockers.txt
→
data/states/town/blockers.txt
@@ -44,8 +44,8 @@ T00B2B0000011000000010B0T
0TB010000001100000001B0T0 T0B011111111111111111BT0T 0TB000000001100000000B0T0 -B0B0B000000110000000B0T0T -B0BBB0B0000110000000BT0T0 -0T0B0BBB00011000000B00T00 -00000B0B00011000000B00000 +B0B0B00000011000000BB0T0T +B0BBB0B000011000B0B0BT0T0 +0T0B0BBB00011000BBBB00T00 +00000B0B000110000B0B00000 00000000BBBBBBBBBBB000000
M
data/tilemap.py
→
data/tilemap.py
@@ -84,7 +84,7 @@
def make_black_surface_tile(): """Make a black surface""" surface = pg.Surface((32, 32)) - surface.fill(c.BLACK_BLUE) + surface.fill(c.NEAR_BLACK_BLUE) rect = surface.get_rect() new_dict = {'surface': surface, 'rect': rect}@@ -296,6 +296,9 @@ tile = tile_dict['fancy carpet']
blit_tile_to_map(tile, row, column, map) elif letter == 'K': tile = tile_dict['column'] + blit_tile_to_map(tile, row, column, map) + elif letter == 'N': + tile = tile_dict['black tile'] blit_tile_to_map(tile, row, column, map) tile_map.close()