1 | <LevelInfo |
---|
2 | name = "Invader Test" |
---|
3 | description = "Invader Test" |
---|
4 | tags = "test" |
---|
5 | screenshot = "emptylevel.png" |
---|
6 | /> |
---|
7 | <!-- include("HUDTemplates3.oxo") --> |
---|
8 | <?lua |
---|
9 | include("stats.oxo") |
---|
10 | include("templates/lodInformation.oxt") |
---|
11 | ?> |
---|
12 | |
---|
13 | <?lua |
---|
14 | include("templates/spaceshipAssff2.oxt") |
---|
15 | include("templates/spaceshipPirate.oxt") |
---|
16 | include("templates/spaceshipInvader.oxt") |
---|
17 | include("templates/enemyInvader.oxt") |
---|
18 | include("overlays/InvaderHUD.oxo") |
---|
19 | ?> |
---|
20 | |
---|
21 | <Level gametype = Invader> |
---|
22 | <templates> |
---|
23 | <Template link=lodtemplate_default /> |
---|
24 | </templates> |
---|
25 | <?lua include("includes/notifications.oxi") ?> |
---|
26 | |
---|
27 | <Scene |
---|
28 | ambientlight = "0.8, 0.8, 0.8" |
---|
29 | skybox = "Orxonox/Starbox" |
---|
30 | > |
---|
31 | |
---|
32 | <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"/> |
---|
33 | <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader /> |
---|
34 | <MovableEntity |
---|
35 | position = "-200,0,0" |
---|
36 | velocity = "975.7, 0, 0" |
---|
37 | > |
---|
38 | <events> |
---|
39 | <activity> |
---|
40 | <EventListener event="start" /> |
---|
41 | </activity> |
---|
42 | </events> |
---|
43 | <attached> |
---|
44 | |
---|
45 | <Model mass="1000" mesh="ast1.mesh" /> |
---|
46 | </attached> |
---|
47 | <camerapositions> |
---|
48 | <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=false mouselook=true /> |
---|
49 | </camerapositions> |
---|
50 | </MovableEntity> |
---|
51 | |
---|
52 | <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 /> |
---|
53 | |
---|
54 | |
---|
55 | <InvaderCenterPoint name=invadercenter /> |
---|
56 | |
---|
57 | <?lua |
---|
58 | for i = 1, 300, 1 do |
---|
59 | j = math.random() |
---|
60 | ?> |
---|
61 | |
---|
62 | <MovableEntity |
---|
63 | position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>" |
---|
64 | collisionType = dynamic |
---|
65 | linearDamping = 0.8 |
---|
66 | angularDamping = 0 |
---|
67 | scale = "<?lua print(j * 150)?>" |
---|
68 | collisiondamage = 0 |
---|
69 | enablecollisiondamage = true |
---|
70 | > |
---|
71 | <attached> |
---|
72 | <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
73 | </attached> |
---|
74 | <collisionShapes> |
---|
75 | <SphereCollisionShape radius="<?lua print(j * 350) ?>" /> |
---|
76 | </collisionShapes> |
---|
77 | </MovableEntity> |
---|
78 | |
---|
79 | <?lua |
---|
80 | end |
---|
81 | ?> |
---|
82 | |
---|
83 | </Scene> |
---|
84 | </Level> |
---|
85 | |
---|