Przeglądaj źródła

add test sandbox

Bastien Sevajol 9 lat temu
rodzic
commit
7c54ee199a
3 zmienionych plików z 10230 dodań i 1 usunięć
  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 Wyświetl plik

@@ -4,7 +4,7 @@ import argparse
4 4
 
5 5
 parser = argparse.ArgumentParser(description='Select sandbox.')
6 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 9
 args = parser.parse_args()
10 10
 
@@ -12,6 +12,8 @@ if 'all' in args.sandbox:
12 12
     from intelligine.sandbox.all.all import simulations, visualisation as pygame_visualisation
13 13
 elif 'exploration' in args.sandbox:
14 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 17
 else:
16 18
     parser.parse_args(['-h'])
17 19
 

+ 7 - 0
intelligine/sandbox/test/test.py Wyświetl plik

@@ -0,0 +1,7 @@
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)

Plik diff jest za duży
+ 10220 - 0
intelligine/sandbox/test/test.tmx