1 | <LevelInfo |
---|
2 | name = "OrxoKart" |
---|
3 | description = "Level for Minigame OrxoKart" |
---|
4 | tags = "minigame" |
---|
5 | screenshot = "emptylevel.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("stats.oxo") |
---|
10 | include("HUDTemplates3.oxo") |
---|
11 | include("templates/lodInformation.oxt") |
---|
12 | ?> |
---|
13 | |
---|
14 | <?lua |
---|
15 | --include("templates/spaceshipPirate.oxt") |
---|
16 | include("templates/OrxoKartKart.oxt") |
---|
17 | include("overlays/OrxoKartHUD.oxo") |
---|
18 | ?> |
---|
19 | |
---|
20 | <?lua |
---|
21 | MAZE_NUM_CELLS = 10 |
---|
22 | MAZE_CELL_SIZE = 100 |
---|
23 | MAZE_CELL_HEIGHT = 30 |
---|
24 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
25 | --number of tiles |
---|
26 | N = 11 |
---|
27 | --scaling factor |
---|
28 | S = 80 |
---|
29 | |
---|
30 | MAP_ORIGIN = "0,0,0" |
---|
31 | ?> |
---|
32 | |
---|
33 | <Level |
---|
34 | plugins = orxokart |
---|
35 | gametype = OrxoKart |
---|
36 | > |
---|
37 | <templates> |
---|
38 | <Template link=lodtemplate_default /> |
---|
39 | </templates> |
---|
40 | <?lua include("includes/notifications.oxi") ?> |
---|
41 | |
---|
42 | <Scene |
---|
43 | ambientlight = "0.8, 0.8, 0.8" |
---|
44 | skybox = "Orxonox/Starbox" |
---|
45 | gravity = "0, -200, 0" |
---|
46 | > |
---|
47 | |
---|
48 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
49 | <attached> |
---|
50 | <!-- Walls and flags (physics and design)--> |
---|
51 | <!-- |
---|
52 | <HoverOrigin |
---|
53 | --> |
---|
54 | <OrxoKartOrigin |
---|
55 | |
---|
56 | numCells="<?lua print(N)?>" |
---|
57 | cellSize="<?lua print(S)?>" |
---|
58 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
59 | /> |
---|
60 | |
---|
61 | |
---|
62 | <!-- floor design --> |
---|
63 | <!-- |
---|
64 | <Model |
---|
65 | position="<?lua print((N-1)*S/2)?>,0,<?lua print((N-1)*S/2)?>" |
---|
66 | |
---|
67 | scale3D="<?lua print(S)?>,8,<?lua print(S)?>" |
---|
68 | mesh="teststrecke.mesh" |
---|
69 | /> |
---|
70 | --> |
---|
71 | |
---|
72 | </attached> |
---|
73 | <collisionShapes> |
---|
74 | <!-- roof physics --> |
---|
75 | <!-- |
---|
76 | <BoxCollisionShape |
---|
77 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
78 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
79 | /> |
---|
80 | --> |
---|
81 | <!-- floor physics --> |
---|
82 | |
---|
83 | |
---|
84 | |
---|
85 | |
---|
86 | |
---|
87 | |
---|
88 | |
---|
89 | |
---|
90 | <!-- |
---|
91 | <BoxCollisionShape |
---|
92 | position="<?lua print((N-1)*S/2)?>,-1,<?lua print((N-1)*S/2)?>" |
---|
93 | halfExtents="<?lua print(S*N/2)?>,1,<?lua print(S*N/2)?>" |
---|
94 | /> |
---|
95 | |
---|
96 | --> |
---|
97 | </collisionShapes> |
---|
98 | |
---|
99 | </StaticEntity> |
---|
100 | |
---|
101 | <Light |
---|
102 | type=directional |
---|
103 | position="-50,500,-50" |
---|
104 | direction="0.577, -0.577, 0.577" |
---|
105 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
106 | specular="1.0, 0.9, 0.9, 1.0" |
---|
107 | /> |
---|
108 | |
---|
109 | <SpawnPoint |
---|
110 | team=0 |
---|
111 | position="<?lua print(S*0)?>,40,<?lua print(8*S)?>" |
---|
112 | lookat="0,40,0" |
---|
113 | spawnclass=OrxoKartKart |
---|
114 | pawndesign=OrxoKartKart |
---|
115 | /> |
---|
116 | |
---|
117 | </Scene> |
---|
118 | </Level> |
---|
119 | |
---|