1. remusao
  2. BASIC-RoBots

Commits

Pierre Surply  committed 14def95

Fixed arrow shift

  • Participants
  • Parent commits c5705ca
  • Branches master

Comments (0)

Files changed (4)

File TODO

View file
 - Make the map scroll when you keep pressing a Key
-- When typing a cmd on the shell, the arroy move to the right and then come back to the left
 - Add comments
 - problem when using ESC to leave the game

File basic-robots.py

View file
-#!/usr/bin/python2
+#!/usr/bin/python
 #-*-coding:Utf-8 -*
 
 # basic-robots.py for BASIC-RoBots in /home/surply_p
 # <pierre.surply@gmail.com>
 # 
 # Started on  Sat May  5 13:04:07 2012 Pierre Surply
-## Last update Wed May  9 17:59:29 2012 Pierre Surply
+## Last update Sun Jul 29 10:52:14 2012 Pierre Surply
 #
 
 from src import main
 
-a = main.Main()
-a.run()
+if __name__ == "__main__":
+    a = main.Main()
+    a.run()

File src/importViewer/importViewer.py

View file
-#!/usr/bin/python2
+#!/usr/bin/python
 #-*-coding:Utf-8 -*
 
 import os

File src/terminal.py

View file
 ## <pierre.surply@gmail.com>
 ## 
 ## Started on  Wed May  9 18:57:29 2012 Pierre Surply
-## Last update Fri Jul 20 20:15:55 2012 Pierre Surply
+## Last update Sun Jul 29 13:42:30 2012 Pierre Surply
 ##
 
 import time
     def write(self, s, m=0x00):
         for i in s.split("\n"):
             self.lines[-1].extend(self.str2charlist(i, m))
-            self.lines.append([ord(" ")])
+            self.lines.append([])
         del self.lines[-1]
         
     def clear(self):
-        self.lines = [[ord(" ")]]
+        self.lines = [[]]
 
     def display(self, display, (org_x, org_y, w, h), info_bottom = None, info_top=None):
         display.set_tile()