comparison data/ST/make_stage.py @ 121:1bc0ad774ed4

More impressive data, use a wider range of things, and document things!
author Thibaut Girka <thib@sitedethib.com>
date Fri, 09 Sep 2011 21:36:53 +0200
parents 4300a832f033
children 016f6b937893
comparison
equal deleted inserted replaced
120:4300a832f033 121:1bc0ad774ed4
28 (0, 0.0, -46*3*4, 0.0), 28 (0, 0.0, -46*3*4, 0.0),
29 (0, 0.0, -46*3*5, 0.0), 29 (0, 0.0, -46*3*5, 0.0),
30 (0, 0.0, -46*3*6, 0.0), 30 (0, 0.0, -46*3*6, 0.0),
31 (0, 0.0, -46*3*7, 0.0), 31 (0, 0.0, -46*3*7, 0.0),
32 (0, 0.0, -46*3*8, 0.0), 32 (0, 0.0, -46*3*8, 0.0),
33 (0, 0.0, -46*3*9, 0.0),
34 (0, 0.0, -46*3*10, 0.0),
33 #Trees 35 #Trees
34 (1, 40.0, -46*3*1, -50.0), 36 (1, 40.0, -46*3*1, -50.0),
35 (1, 40.0, -46*3*2, -50.0), 37 (1, 40.0, -46*3*2, -50.0),
36 (1, 40.0, -46*3*3, -50.0), 38 (1, 40.0, -46*3*3, -50.0),
37 (1, 40.0, -46*3*4, -50.0), 39 (1, 40.0, -46*3*4, -50.0),
38 (1, 40.0, -46*3*5, -50.0), 40 (1, 40.0, -46*3*5, -50.0),
39 (1, 40.0, -46*3*6, -50.0), 41 (1, 40.0, -46*3*6, -50.0),
42 (1, 40.0, -46*3*7, -50.0),
43 (1, 40.0, -46*3*8, -50.0),
40 44
41 (1, 40.0+40, -46*3*1-20, -50.0), 45 (1, 40.0+40, -46*3*1-20, -50.0),
42 (1, 40.0+40, -46*3*2-20, -50.0), 46 (1, 40.0+40, -46*3*2-20, -50.0),
43 (1, 40.0+40, -46*3*3-20, -50.0), 47 (1, 40.0+40, -46*3*3-20, -50.0),
44 (1, 40.0+40, -46*3*4-20, -50.0), 48 (1, 40.0+40, -46*3*4-20, -50.0),
45 (1, 40.0+40, -46*3*5-20, -50.0), 49 (1, 40.0+40, -46*3*5-20, -50.0),
46 (1, 40.0+40, -46*3*6-20, -50.0), 50 (1, 40.0+40, -46*3*6-20, -50.0),
51 (1, 40.0+40, -46*3*7-20, -50.0),
52 (1, 40.0+40, -46*3*8-20, -50.0),
47 53
48 (2, 192*2-30-40.0, -46*3*1, -50.0), 54 (2, 192*2-30-40.0, -46*3*1, -50.0),
49 (2, 192*2-30-40.0, -46*3*2, -50.0), 55 (2, 192*2-30-40.0, -46*3*2, -50.0),
50 (2, 192*2-30-40.0, -46*3*3, -50.0), 56 (2, 192*2-30-40.0, -46*3*3, -50.0),
51 (2, 192*2-30-40.0, -46*3*4, -50.0), 57 (2, 192*2-30-40.0, -46*3*4, -50.0),
52 (2, 192*2-30-40.0, -46*3*5, -50.0), 58 (2, 192*2-30-40.0, -46*3*5, -50.0),
53 (2, 192*2-30-40.0, -46*3*6, -50.0), 59 (2, 192*2-30-40.0, -46*3*6, -50.0),
60 (2, 192*2-30-40.0, -46*3*7, -50.0),
61 (2, 192*2-30-40.0, -46*3*8, -50.0),
54 62
55 (2, 192*2-30-40.0-50.0, -46*3*1-20, -50.0), 63 (2, 192*2-30-40.0-50.0, -46*3*1-20, -50.0),
56 (2, 192*2-30-40.0-50.0, -46*3*2-20, -50.0), 64 (2, 192*2-30-40.0-50.0, -46*3*2-20, -50.0),
57 (2, 192*2-30-40.0-50.0, -46*3*3-20, -50.0), 65 (2, 192*2-30-40.0-50.0, -46*3*3-20, -50.0),
58 (2, 192*2-30-40.0-50.0, -46*3*4-20, -50.0), 66 (2, 192*2-30-40.0-50.0, -46*3*4-20, -50.0),
59 (2, 192*2-30-40.0-50.0, -46*3*5-20, -50.0), 67 (2, 192*2-30-40.0-50.0, -46*3*5-20, -50.0),
60 (2, 192*2-30-40.0-50.0, -46*3*6-20, -50.0)] 68 (2, 192*2-30-40.0-50.0, -46*3*6-20, -50.0),
69 (2, 192*2-30-40.0-50.0, -46*3*7-20, -50.0),
70 (2, 192*2-30-40.0-50.0, -46*3*8-20, -50.0)]
61 71
62 72
63 # Bounding boxes 73 # Bounding boxes
64 anm_wrapper = AnmWrapper([Animations.read(open('stg1bg.anm', 'rb'))]) 74 anm_wrapper = AnmWrapper([Animations.read(open('stg1bg.anm', 'rb'))])
65 for model in models: 75 for model in models:
81 stage.models = models 91 stage.models = models
82 stage.object_instances = instances 92 stage.object_instances = instances
83 stage.script = [(0, 1, (50, 0, 50, 300.0, 800.0)), 93 stage.script = [(0, 1, (50, 0, 50, 300.0, 800.0)),
84 (0, 2, (0.0, 400.0, 0.3)), 94 (0, 2, (0.0, 400.0, 0.3)),
85 (0, 0, (0.0, 0.0, 0.0)), 95 (0, 0, (0.0, 0.0, 0.0)),
86 (1600, 0, (0.0, -600.0, 0.0)), 96 (2100, 0, (0.0, -800.0, 0.0)),
87 (6500, 0, (0.0, -600.0, 0.0))] 97 (3200, 0, (0.0, 0.0, 0.0)),
98 (6500, 0, (0.0, 0.0, 0.0))]
88 99
89 with open('stage1.std', 'wb') as file: 100 with open('stage1.std', 'wb') as file:
90 stage.write(file) 101 stage.write(file)
91 102