Browse Source

add test sandbox

Bastien Sevajol 9 years ago
parent
commit
7c54ee199a
3 changed files with 10230 additions and 1 deletions
  1. 3 1
      config.py
  2. 7 0
      intelligine/sandbox/test/test.py
  3. 10220 0
      intelligine/sandbox/test/test.tmx

+ 3 - 1
config.py View File

4
 
4
 
5
 parser = argparse.ArgumentParser(description='Select sandbox.')
5
 parser = argparse.ArgumentParser(description='Select sandbox.')
6
 parser.add_argument('sandbox', metavar='sandbox', type=str, nargs=1,
6
 parser.add_argument('sandbox', metavar='sandbox', type=str, nargs=1,
7
-                    help='Name of sandbox: ' + ', '.join(['exploration', 'all']))
7
+                    help='Name of sandbox: ' + ', '.join(['exploration', 'all', 'test']))
8
 
8
 
9
 args = parser.parse_args()
9
 args = parser.parse_args()
10
 
10
 
12
     from intelligine.sandbox.all.all import simulations, visualisation as pygame_visualisation
12
     from intelligine.sandbox.all.all import simulations, visualisation as pygame_visualisation
13
 elif 'exploration' in args.sandbox:
13
 elif 'exploration' in args.sandbox:
14
     from intelligine.sandbox.exploration.exploration import simulations, visualisation as pygame_visualisation
14
     from intelligine.sandbox.exploration.exploration import simulations, visualisation as pygame_visualisation
15
+elif 'test' in args.sandbox:
16
+    from intelligine.sandbox.test.test import simulations, visualisation as pygame_visualisation
15
 else:
17
 else:
16
     parser.parse_args(['-h'])
18
     parser.parse_args(['-h'])
17
 
19
 

+ 7 - 0
intelligine/sandbox/test/test.py View File

1
+from os import getcwd
2
+from intelligine.display.pygame.config import map_config
3
+from intelligine.display.pygame.visualisation import get_standard_extract_from_map
4
+
5
+
6
+simulations, visualisation = get_standard_extract_from_map(getcwd()+"/intelligine/sandbox/test/test.tmx",
7
+                                                           map_config)

File diff suppressed because it is too large
+ 10220 - 0
intelligine/sandbox/test/test.tmx