castleraider

changeset 303:b784b5e2109b

Added scenery for the finishing sequence. Removed an unused tile from the build.
author David Boddie <david@boddie.org.uk>
date Sun Apr 06 00:46:45 2014 +0200
parents c6755d404fa8
children 2ab5cb93b22a
files levels/default.txt tools/makelevels.py utilities/editor.py
diffstat 3 files changed, 23 insertions(+), 21 deletions(-) [+]
line diff
     1.1 --- a/levels/default.txt	Sun Apr 06 00:03:13 2014 +0200
     1.2 +++ b/levels/default.txt	Sun Apr 06 00:46:45 2014 +0200
     1.3 @@ -47,8 +47,8 @@
     1.4  ..................I.............................................++++++++++++................................................................................................................................@@@@--------------------------@@@@.................@@@@@@@@@@@@@@@@@@.......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..@@@@@@@@@@@@@@@@@@@@@@@@/.\@@@@@@@@@@..............2............@@@@@@@@@@@@@@......
     1.5  ..................I..........................................+++############++++..........................................................................................................................@@@@@@..........................@@@@@@........................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..@@@@@@@@@@@@@@@@@@@@@@@@...........................2..........n.@@@@@@@@@@@@@@@@....
     1.6  ..................I.......................................+++###################++........................+++++.....................+++++++.............................................................@@@@@@@@..........................@@@@@@@@..................................ZZZZ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...........................2............@@@@@@@@@@@@@@@@@@..
     1.7 -.................@@@@@@@@@@@@.......>................+++++########################++++............>.....++#####++.>............+++++#######+++++@@........>.........@@++++++++++++++++++++++++++++++++@@@@@@@@@@..........................@@@@@@@@@@..................>.............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@SSS.......................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     1.8 -+++@@------------@@@@@@@@@@@@++++++++++++++++++++++++#################################++++++++++++++++++#########++++++++++++++#################@@@@@@@@@@@@@@@@@@@@@@################################@@@@@@@@@@..........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     1.9 +...@@------------@@@@@@@@@@@@.......>................+++++########################++++............>.....++#####++.>............+++++#######+++++@@........>.........@@++++++++++++++++++++++++++++++++@@@@@@@@@@..........................@@@@@@@@@@..................>.............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@SSS.......................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    1.10 ++++@@............@@@@@@@@@@@@++++++++++++++++++++++++#################################++++++++++++++++++#########++++++++++++++#################@@@@@@@@@@@@@@@@@@@@@@################################@@@@@@@@@@..........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    1.11  
    1.12  Basement
    1.13  ..................@@@@@@@@@@]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
    1.14 @@ -123,19 +123,20 @@
    1.15  ...................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.......................#####################.......###.....###.......===============
    1.16  
    1.17  Ending
    1.18 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..........<........--..............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......................................................................................................................+++++++++++..................................................................................
    1.19 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......--..........@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.............--..........--........@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................................................................................................................++++++###########+++++.............................................................................
    1.20 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@....................................3.............................................@@@@@@@@@.............................................................................................................++++######################+++..........................................................................
    1.21 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@......................o.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.m..................................3.............................................@@@@@@@@@.........................................................................................................++++#############################++........................................................................
    1.22 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......<..............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...........--.......................3................................................4...........................................................................................................+++###################################+.......................................................................
    1.23 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@............................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@........................4.........................................................................................................++#######################################++.....................................................................
    1.24 -...................@@@@@@@@@@@@@@@................3........---.........@@@@@@@@@@@@@@@....@@@@@@@@@@@@@@@@@@@@@@@@@...........--................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................V....4.......................................................................++++++++++++....................++###########################################++...................................................................
    1.25 -...................@@@@@@@@@@@@@@@.wx.............3....................@@@@@@@@@@@@@........@@@@@@@@@@@@@@@@@@@@@@@....<.................--.....@@@@/.\@@@@@@@@@@@@@@@@@@@@@@@@......................4...................................................................++++############++++++...........+++###############################################+++................................................................
    1.26 -...................@@@@@@@@@@@@@@@................3....................@@@@@@@@@@@@..........@@@@@@@@@@@@@@@@@@@@@@..................--................@@@@@@@@@@@@@@@@@@@@@@@@@@....................4.............................................................++++++######################++......+++#####################################################++++............................................................
    1.27 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...................@@@@@@@@@@@@..........@@@@@@@@@@@@@@@@@@@@@@....................................@@@@@@@@@@@@@@@@@@@@@@@@@@.................@@@@@@@@@....................................................++++##############################++++++############################################################++++........................................................
    1.28 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@................@@@@@@@@@@@@..........@@@@@@@@@@@@@@@@@@@@@@@@@..............................JJJ@@@@@@@@@@@@@@@@@@@@@@@@@@@@.............@@@@@@@@@@@............................................++++++++########################################################################################################+++.....................................................
    1.29 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...................@@@@@@@@@@@@..........@@@/.\@@@@@@@@@@@@@@@@@@@..........--............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.........@@@@@@@@@@@@@.......................................+++++###################################################################################################################++++.................................................
    1.30 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...................................V...........@@@@@@@@@@@@@@@@@@@..........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.........@@@@@@@@@@@@@..................................+++++############################################################################################################################+++++............................................
    1.31 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...............................................@@@@@@@@@@@@@@@@@@@..........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.........@@@@@@@@@@@@@............................++++++######################################################################################################################################+++.........................................
    1.32 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@......----..................................NNN@@@@@@@@@@@@@@@@@@@.......>..................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..>......@@@@@@@@@@@@@..>..........+++++++++++++++###############################################################################################################################################++++++++++...............................
    1.33 -...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...............@@@@@@@@@@@@@@@@@@......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@########################################################################################################################################################################+++++++++++++++++++++++++++++++
    1.34 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..........<........--..............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......................................................................................................................+++++++++++.................................................................................................
    1.35 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......--..........@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.............--..........--........@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................................................................................................................++++++###########+++++............................................................................................
    1.36 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@....................................3.............................................@@@@@@@@@.............................................................................................................++++######################+++.........................................................................................
    1.37 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@......................o.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.m..................................3.............................................@@@@@@@@@.........................................................................................................++++#############################++.......................................................................................
    1.38 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.......<..............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...........--.......................3................................................4...........................................................................................................+++###################################+......................................................................................
    1.39 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@............................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@........................4.........................................................................................................++#######################################++....................................................................................
    1.40 +...................@@@@@@@@@@@@@@@................3........---.........@@@@@@@@@@@@@@@....@@@@@@@@@@@@@@@@@@@@@@@@@...........--................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................V....4.......................................................................++++++++++++....................++###########################################++..................................................................................
    1.41 +...................@@@@@@@@@@@@@@@.wx.............3....................@@@@@@@@@@@@@........@@@@@@@@@@@@@@@@@@@@@@@....<.................--.....@@@@/.\@@@@@@@@@@@@@@@@@@@@@@@@......................4...................................................................++++############++++++...........+++###############################################+++......................................................@@..@@..@@...............
    1.42 +...................@@@@@@@@@@@@@@@................3....................@@@@@@@@@@@@..........@@@@@@@@@@@@@@@@@@@@@@..................--................@@@@@@@@@@@@@@@@@@@@@@@@@@....................4.............................................................++++++######################++......+++#####################################################++++..................................................@@@@@@@@@@...............
    1.43 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...................@@@@@@@@@@@@..........@@@@@@@@@@@@@@@@@@@@@@....................................@@@@@@@@@@@@@@@@@@@@@@@@@@.................@@@@@@@@@....................................................++++##############################++++++############################################################++++...............................................@@@@@@@@................
    1.44 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@................@@@@@@@@@@@@..........@@@@@@@@@@@@@@@@@@@@@@@@@..............................JJJ@@@@@@@@@@@@@@@@@@@@@@@@@@@@.............@@@@@@@@@@@............................................++++++++########################################################################################################+++....................................................................
    1.45 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...................@@@@@@@@@@@@..........@@@/.\@@@@@@@@@@@@@@@@@@@..........--............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.........@@@@@@@@@@@@@.......................................+++++###################################################################################################################++++................................................................
    1.46 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...................................V...........@@@@@@@@@@@@@@@@@@@..........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.........@@@@@@@@@@@@@..................................+++++############################################################################################################################+++++...........................................................
    1.47 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...............................................@@@@@@@@@@@@@@@@@@@..........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.........@@@@@@@@@@@@@............................++++++######################################################################################################################################+++........................................................
    1.48 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@......----..................................NNN@@@@@@@@@@@@@@@@@@@.......>..................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..>......@@@@@@@@@@@@@..>..........+++++++++++++++###############################################################################################################################################++++++++++.....................@@@@@@@@@@----------@@...
    1.49 +...................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...............@@@@@@@@@@@@@@@@@@......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@########################################################################################################################################################################+++++++++++++++++++++@@@@@@@@@@..........@@+++
    1.50 +
     2.1 --- a/tools/makelevels.py	Sun Apr 06 00:03:13 2014 +0200
     2.2 +++ b/tools/makelevels.py	Sun Apr 06 00:46:45 2014 +0200
     2.3 @@ -46,7 +46,6 @@
     2.4              "\\": "images/window-topright.png",
     2.5              "{": "images/stalactite.png",
     2.6              "I": "images/gate.png",
     2.7 -            "%": "images/brick-alt3.png",
     2.8              # End of scenery tile sprites
     2.9              
    2.10              # Start of collectable item sprites
    2.11 @@ -63,9 +62,12 @@
    2.12  # Collectable items after the first 16 tiles are ignored by the editor.
    2.13  
    2.14  tile_order = (".", "@", "#", "+", "=", "-", "X", "|",   # regular tiles
    2.15 -              "?", "[", "]", "/", "\\", "{", "I", "%",  #
    2.16 +              "?", "[", "]", "/", "\\", "{", "I",
    2.17                "K", "L", "M", "N", "q", "C", "D", "E", "F")   # collectable tiles
    2.18  
    2.19 +# The index of the first special tile is also the number of normal tiles.
    2.20 +normal_tiles = tile_order.index("K")
    2.21 +
    2.22  flags_values = {"visible": 0x80, "collectable": 0x40, "door": 0x20, "treasure": 0x10}
    2.23  
    2.24  monster_ref = {"V": "images/bat1.png", "^": "images/spider1.png",
     3.1 --- a/utilities/editor.py	Sun Apr 06 00:03:13 2014 +0200
     3.2 +++ b/utilities/editor.py	Sun Apr 06 00:46:45 2014 +0200
     3.3 @@ -670,7 +670,7 @@
     3.4          self.tileGroup = QActionGroup(self)
     3.5          self.tileGroup.triggered.connect(self.setCurrentTile)
     3.6          
     3.7 -        for symbol in makelevels.tile_order[:16]:
     3.8 +        for symbol in makelevels.tile_order[:makelevels.normal_tiles]:
     3.9          
    3.10              icon = QIcon(QPixmap.fromImage(self.tile_images[symbol]))
    3.11              action = self.tilesToolBar.addAction(icon, symbol)