projects
/
koperkapel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Final screenshots.
[koperkapel.git]
/
koperkapel
/
gamelib
/
tiles.py
diff --git
a/koperkapel/gamelib/tiles.py
b/koperkapel/gamelib/tiles.py
index 382a2eab8bf72fa11cccf9ea0b25d21366e8761a..69ffbe83e901f174264eea8d37e086c8b36193bc 100644
(file)
--- a/
koperkapel/gamelib/tiles.py
+++ b/
koperkapel/gamelib/tiles.py
@@
-60,11
+60,21
@@
class Wall(RandomizedTile):
class Underground(RandomizedTile):
IMGDIR = "underground"
class Underground(RandomizedTile):
IMGDIR = "underground"
+class Grate(Tile):
+ IMG = os.path.join('grate', 'grate')
+ TILESET = 'bunker'
+
+
+class Exit(Tile):
+ IMG = os.path.join('exit', 'exit')
+ TILESET = 'bunker'
+
+
class Tunnel(OrientatedTile):
@classmethod
def image(cls, neighbors):
class Tunnel(OrientatedTile):
@classmethod
def image(cls, neighbors):
- connections = [True if '
walk
' in x['behaviour'] else False for x in neighbors]
+ connections = [True if '
crawl
' in x['behaviour'] else False for x in neighbors]
conn_count = connections.count(True)
# simple cases
cls.ANGLE = 0
conn_count = connections.count(True)
# simple cases
cls.ANGLE = 0