tile.py 810 B

123456789101112131415161718192021222324
  1. class tile():
  2. def __init__(self,graphic,move,hurt,special='None'):
  3. self.graphic = graphic
  4. self.move = move
  5. self.hurt = hurt
  6. self.special = special
  7. tile_list = {}
  8. tile_list['#'] = tile('wall',False,False)
  9. tile_list['.'] = tile('floor',True,False)
  10. tile_list['+'] = tile('fence',False,False)
  11. tile_list['d'] = tile('door',False,False,'door')
  12. tile_list['k'] = tile('key',True,False,'key')
  13. tile_list['^'] = tile('thorn',True,True)
  14. tile_list['h'] = tile('heart',True,False,'heart')
  15. tile_list['*'] = tile('gem',True,False,'gem')
  16. tile_list['c'] = tile('checkpoint_passiv',True,False,'cp_passiv')
  17. tile_list['C'] = tile('checkpoint_activ',True,False,'cp_activ')
  18. tile_list['t'] = tile('teleport',True,False)
  19. tile_list['A'] = tile('amulett',True,False)
  20. tile_list['~'] = tile('wall',True,False)#hidden wall