Changeset 11541 for code/branches/Asteroid_HS17/data/levels
- Timestamp:
- Nov 6, 2017, 4:06:54 PM (7 years ago)
- Location:
- code/branches/Asteroid_HS17/data/levels
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Asteroid_HS17/data/levels/Asteroid.oxw
r11490 r11541 1 1 <LevelInfo 2 name = " emptyLevel"2 name = "AsteroidsTest" 3 3 description = "A level with absolutely nothing in it." 4 4 tags = "test" … … 14 14 15 15 <?lua 16 include("templates/spaceship Escort.oxt")16 include("templates/spaceship.oxt") 17 17 include("templates/endurancetest_template.oxt") 18 18 ?> … … 30 30 31 31 <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"/> 32 <SpawnPoint team=0 position=" -200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort/>32 <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipAsteroids /> 33 33 34 <ModularSpaceShip velocity= "20,0,0" position="0,0,200" lookat= "0,0,0" health="1000" maxhealth="1000" initialhealth="1000">35 <templates>36 <Template link=endurance />37 </templates>38 </ModularSpaceShip>39 34 40 35 </Scene> -
code/branches/Asteroid_HS17/data/levels/Asteroids.oxw
r11528 r11541 2 2 name = "Asteroids" 3 3 description = "Try to prevent asteroids from colliding into your spaceshuttle. Be prepared to dodge all asteroids or destroy them." 4 tags = " asteroids,minigame"4 tags = "minigame" 5 5 screenshot = "emptylevel.png" 6 6 /> … … 15 15 include("templates/spaceshipAssff2.oxt") 16 16 include("templates/spaceshipPirate.oxt") 17 include("templates/spaceshipInvader.oxt") 18 include("templates/enemyInvader.oxt") 17 include("templates/spaceshipAsteroids.oxt") 19 18 include("overlays/InvaderHUD.oxo") 20 19 ?> 21 20 21 <Template name=asteroidsshipcamera defaults=0> 22 <AsteroidsShip> 23 <camerapositions> 24 <CameraPosition position="55,75,200" absolute=true /> 25 <!--CameraPosition position="0,50,160" drag=true mouselook=true /> 26 <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /--> 27 </camerapositions> 28 </AsteroidsShip> 29 </Template> 30 31 <Template name=asteroidsship> 32 <AsteroidsShip camerapositiontemplate=asteroidsshipcamera> 33 </AsteroidsShip> 34 </Template> 35 22 36 <Level 23 plugins = invader24 gametype = Invader37 plugins = asteroids 38 gametype = Asteroids 25 39 > 26 40 <templates> … … 38 52 <!-- <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"/> --> 39 53 <Light type=directional position="1100, 11000, -7000" lookat="0, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> 40 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass= InvaderShip pawndesign=spaceshipinvader/>54 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=AsteroidsShip pawndesign=asteroidsship /> 41 55 42 56 <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 /> 43 57 44 58 45 < InvaderCenterPoint name=invadercenter />59 <AsteroidsCenterPoint name=asteroidscenter /> 46 60 47 <?lua48 for i = 1, 300, 1 do49 j = math.random()50 ?>51 52 <MovableEntity53 position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>"54 collisionType = dynamic55 linearDamping = 0.856 angularDamping = 057 scale = "<?lua print(j * 150)?>"58 collisiondamage = 059 enablecollisiondamage = true60 >61 <attached>62 <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />63 </attached>64 <collisionShapes>65 <SphereCollisionShape radius="<?lua print(j * 350) ?>" />66 </collisionShapes>67 </MovableEntity>68 69 <?lua70 end71 ?>72 61 73 62 </Scene>
Note: See TracChangeset
for help on using the changeset viewer.