add water texture to Map
This commit is contained in:
parent
36fbdbab62
commit
55fb38aa0a
BIN
data/images/terrain/water.jpg
Normal file
BIN
data/images/terrain/water.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
@ -1,20 +1,20 @@
|
||||
....................
|
||||
..wwww..w...w...ww..
|
||||
..w......w.w...w..w.
|
||||
,,wwww,,,,w,,,,wwww,
|
||||
..w......w.w...w..w.
|
||||
..wwww..w...w..w..w.
|
||||
....................
|
||||
.w...w...ww...w..ww.
|
||||
.ww.ww..w..w..w..w..
|
||||
,w,w,w,,wwww,,w,,ww,
|
||||
.w...w..w.....w..w..
|
||||
.w...w..w.....ww.ww.
|
||||
....................
|
||||
..w...w...ww...ww...
|
||||
..ww.ww..w..w.w..w..
|
||||
,,w,w,w,,wwww,wwww,,
|
||||
..w...w..w..w.w.....
|
||||
..w...w..w..w.w.....
|
||||
....................
|
||||
....................
|
||||
xxxxxxxxxxxxxxxxxxxx
|
||||
xwwww..w...w...ww..x
|
||||
xw......w.w...w..w.x
|
||||
xwwww,,,,w,,,,wwww,x
|
||||
xw......w.w...w..w.x
|
||||
xwwww..w...w..w..w.x
|
||||
x..................x
|
||||
xw...w...ww...w..wwx
|
||||
xww.ww..w..w..w..w.x
|
||||
xw,w,w,,wwww,,w,,wwx
|
||||
xw...w..w.....w..w.x
|
||||
xw...w..w.....ww.wwx
|
||||
x..................x
|
||||
x.w...w...ww...ww..x
|
||||
x.ww.ww..w..w.w..w.x
|
||||
x,w,w,w,,wwww,wwww,x
|
||||
x.w...w..w..w.w....x
|
||||
x.w...w..w..w.w....x
|
||||
x..................x
|
||||
xxxxxxxxxxxxxxxxxxxx
|
@ -33,6 +33,10 @@ class Map:
|
||||
self.screen.draw(TerrainTile(col, row, 'floor.png', self.tileSize), Locations.MAP, 0, 0)
|
||||
elif tile == '.':
|
||||
self.screen.draw(TerrainTile(col, row, 'grass.png', self.tileSize), Locations.MAP, 0, 0)
|
||||
elif tile == 'x':
|
||||
object = TerrainTile(col, row, 'water.jpg', self.tileSize)
|
||||
self.screen.draw(object, Locations.MAP, 0, 0)
|
||||
self.collidables.add(object)
|
||||
|
||||
def addEntity(self, entity):
|
||||
self.screen.draw(entity, Locations.MAP, 0, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user