1 | <!-- TODO: Update the level's image--> |
---|
2 | |
---|
3 | <!-- See TowerDefenseReadme.txt for Information on this file --> |
---|
4 | |
---|
5 | <LevelInfo |
---|
6 | name = "Tower Defense" |
---|
7 | description = "Defend your Spacestation from incoming waves." |
---|
8 | tags = "minigame" |
---|
9 | screenshot = "emptylevel.png" |
---|
10 | /> |
---|
11 | |
---|
12 | <?lua |
---|
13 | include("stats.oxo") |
---|
14 | include("HUDTemplates3.oxo") |
---|
15 | include("towerdefenseHUD.oxo") |
---|
16 | include("templates/lodInformation.oxt") |
---|
17 | ?> |
---|
18 | |
---|
19 | <?lua |
---|
20 | include("templates/spaceshipAssff.oxt") |
---|
21 | include("templates/spaceshipPirate.oxt") |
---|
22 | include("templates/towerdefensetower.oxt") |
---|
23 | include("templates/enemytowerdefense.oxt") |
---|
24 | include("templates/standardTurret.oxt") |
---|
25 | ?> |
---|
26 | |
---|
27 | |
---|
28 | <Template name=selectercameras defaults=0> |
---|
29 | <TowerDefenseSelecter> |
---|
30 | <camerapositions> |
---|
31 | <CameraPosition position="0,0,1400" lookat="0,0,0" absolute=true /> |
---|
32 | </camerapositions> |
---|
33 | </TowerDefenseSelecter> |
---|
34 | </Template> |
---|
35 | |
---|
36 | <Template name=selectertemplate> |
---|
37 | <TowerDefenseSelecter team=0 camerapositiontemplate=selectercameras> |
---|
38 | <attached> |
---|
39 | <Model pitch=90 position="0,0,-30" mesh="TD_Selection.mesh" scale=30 /> |
---|
40 | </attached> |
---|
41 | </TowerDefenseSelecter> |
---|
42 | </Template> |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | <Level gametype = "TowerDefense"> |
---|
48 | <templates> |
---|
49 | <Template link=lodtemplate_default /> |
---|
50 | </templates> |
---|
51 | |
---|
52 | <?lua include("includes/notifications.oxi") ?> |
---|
53 | |
---|
54 | <Scene |
---|
55 | ambientlight = "0.8, 0.8, 0.8" |
---|
56 | skybox = "Orxonox/Starbox" |
---|
57 | > |
---|
58 | |
---|
59 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> |
---|
60 | |
---|
61 | <!-- Spawns the camera, attached to a crate --> |
---|
62 | <SpawnPoint team=0 position="0,0,0"/> |
---|
63 | |
---|
64 | <!-- PlayField --> |
---|
65 | <TowerDefenseCenterpoint |
---|
66 | name=towerdefensecenter |
---|
67 | |
---|
68 | selecterTemplate=selectertemplate |
---|
69 | |
---|
70 | width=16 |
---|
71 | height=16 |
---|
72 | tileScale=100 |
---|
73 | position="0,0,0" |
---|
74 | direction="0,0,0" |
---|
75 | collisionType=dynamic |
---|
76 | mass=100000 |
---|
77 | > |
---|
78 | <attached> |
---|
79 | <Model position="-50,-50,0" mesh="Playfield_ME.mesh" scale=80 /> |
---|
80 | <Model position="500,700,100" mesh="sphere.mesh" scale=80 /> |
---|
81 | </attached> |
---|
82 | <camerapositions> |
---|
83 | <CameraPosition position="0,0,1500" lookat="0,0,0" absolute=true/> |
---|
84 | </camerapositions> |
---|
85 | </TowerDefenseCenterpoint> |
---|
86 | |
---|
87 | </Scene> |
---|
88 | </Level> |
---|
89 | |
---|