Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/Asteroids2D.oxw @ 12288

Last change on this file since 12288 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
RevLine 
[11593]1<LevelInfo
2 name = "Asteroids2D"
[11669]3 description = "Try to prevent asteroids from colliding into your spaceship. Be prepared to dodge all asteroids or destroy them."
[11593]4 tags = "minigame"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("templates/lodInformation.oxt")
11?>
12
13<?lua
[11608]14  include("templates/spaceshipAssff2.oxt")
15  include("templates/spaceshipPirate.oxt")
[11593]16  include("templates/spaceshipAsteroids2D.oxt")
[11608]17  include("templates/enemyInvader.oxt")
18  include("overlays/Asteroids2DHUD.oxo")
[11637]19  include("templates/asteroidsAsteroids2D.oxt")
[11593]20?>
21
22<Level
[11608]23  plugins = asteroids2D
[11593]24  gametype = Asteroids2D
25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <Scene
[11608]32    ambientlight = "1.0, 1.0, 1.0"
33    skybox       = "Orxonox/Starbox"
34    negativeWorldRange = "-100000, -100000, -100000"
35    positiveWorldRange = " 100000,  100000,  100000"
[11593]36  >
[11608]37
38  <WorldAmbientSound
39    source="Earth.ogg"
40    looping="true"
41    playOnLoad="true"
42  />
43
[11593]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"/> -->
[11608]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 />
[11593]47
[11614]48    <!--<Model mesh="axes.mesh" scale=10 position="0,0,0" /> -->
49
50
[11616]51    <!--<?lua
[11614]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
[11616]76    ?>-->
[11614]77
[11608]78    <Asteroids2DCenterPoint name=asteroids2Dcenter />
[11593]79 
80   
81  </Scene>
[11608]82</Level>
Note: See TracBrowser for help on using the repository browser.