Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Boxhead_FS19/data/levels/Asteroids2D.oxw @ 12334

Last change on this file since 12334 was 11783, checked in by landauf, 7 years ago

merged Presentation_HS17_merge back to trunk

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1<LevelInfo
2 name = "Asteroids2D"
3 description = "Try to prevent asteroids from colliding into your spaceship. Be prepared to dodge all asteroids or destroy them."
4 tags = "minigame"
5 screenshot = "emptylevel.png"
6/>
7
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/spaceshipAsteroids2D.oxt")
17  include("templates/enemyInvader.oxt")
18  include("overlays/Asteroids2DHUD.oxo")
19  include("templates/asteroidsAsteroids2D.oxt")
20?>
21
22<Level
23  plugins = asteroids2D
24  gametype = Asteroids2D
25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <Scene
32    ambientlight = "1.0, 1.0, 1.0"
33    skybox       = "Orxonox/Starbox"
34    negativeWorldRange = "-100000, -100000, -100000"
35    positiveWorldRange = " 100000,  100000,  100000"
36  >
37
38  <WorldAmbientSound
39    source="Earth.ogg"
40    looping="true"
41    playOnLoad="true"
42  />
43
44    <!-- <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"/> -->
45    <Light type=directional position="-100, 10000, -700" lookat="0.2, -1, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
46    <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass= Asteroids2DShip pawndesign=spaceshipasteroids2d />
47
48    <!--<Model mesh="axes.mesh" scale=10 position="0,0,0" /> -->
49
50
51    <!--<?lua
52      for i = 1, 250, 1
53      do
54      j = math.random()
55    ?>
56
57    <MovableEntity
58      position = "<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>"
59      collisionType = dynamic
60      linearDamping = 0.8
61      angularDamping = 0
62      scale = "<?lua print(j * 150)?>"
63      collisiondamage = 1
64      enablecollisiondamage = true
65    >
66      <attached>
67        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
68      </attached>
69      <collisionShapes>
70        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
71      </collisionShapes>
72    </MovableEntity>
73
74    <?lua
75      end
76    ?>-->
77
78    <Asteroids2DCenterPoint name=asteroids2Dcenter />
79 
80   
81  </Scene>
82</Level>
Note: See TracBrowser for help on using the repository browser.