Commits

Thomas Noe  committed ffad917

Trying to identify some issues with the creates.

  • Participants
  • Parent commits 7bf8dc2

Comments (0)

Files changed (2)

     add a key for the keys.
     add a select map menu
 
-
+bugs:
+    the 'dead zone'
+    runing over walls
 """
 import curses
 import logging
             map_array[i][j], map_array[i][j+1] = map_array[i][j+1], map_array[i][j]
             char_pos = (i, j + 1)
 
-        if map_array[i][j+1] == 2: # crate <<<<< RIGHT NOW, THIS ONLY WORKS TWICE...
+        if map_array[i][j+1] == 2: # crate 
             if map_array[i][i+2] == 1:  # space
                 # if the character on the other side of the 
                 # crate is a space:      -> swap the 3 positions.
-                logging.debug("%d %d %d" % (map_array[i][j], map_array[i][j+1], map_array[i][j+2]))
                 
                 map_array[i][j], map_array[i][j+1], map_array[i][j+2] = 1, 4, 2
                 char_pos = (i, j + 1)
 
-                logging.debug("%d %d %d" % (map_array[i][j], map_array[i][j+1], map_array[i][j+2]))
-                logging.debug("char pos -> %s" % str(char_pos))
             
     if directions[direction] == 'left':
         if map_array[i][j-1] == 1: # space
             map_array[i][j], map_array[i][j-1] = map_array[i][j-1], map_array[i][j]
             char_pos = (i, j - 1)
 
-        if map_array[i][j-1] == 2: # crate <<<<< RIGHT NOW, THIS ONLY WORKS TWICE...
+        if map_array[i][j-1] == 2: # crate 
             if map_array[i][i-2] == 1:  # space
                 # if the character on the other side of the 
                 # crate is a space:      -> swap the 3 positions.
-                logging.debug("%d %d %d" % (map_array[i][j], map_array[i][j-1], map_array[i][j-2]))
+                logging.debug("B: %d %d %d" % (map_array[i][j], map_array[i][j-1], map_array[i][j-2]))
                 
                 map_array[i][j], map_array[i][j-1], map_array[i][j-2] = 1, 4, 2
                 char_pos = (i, j - 1)
 
-                logging.debug("%d %d %d" % (map_array[i][j], map_array[i][j+1], map_array[i][j-2]))
+                logging.debug("A: %d %d %d" % (map_array[i][j], map_array[i][j-1], map_array[i][j-2]))
                 logging.debug("char pos -> %s" % str(char_pos))
     
     if directions[direction] == 'up':
 ; test
-###############
-#   .o @    . #
-#  o          #
-#     #  o    #
+################
+#   .o @    .  #
+#  o           #
+#     #  o  #  #
 #             #
 ###############