[Orxonox-commit 7663] r12256 - code/branches/OrxoBlox_FS19/data/levels
jeromela at orxonox.net
jeromela at orxonox.net
Thu Mar 28 15:39:56 CET 2019
Author: jeromela
Date: 2019-03-28 15:39:56 +0100 (Thu, 28 Mar 2019)
New Revision: 12256
Modified:
code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw
code/branches/OrxoBlox_FS19/data/levels/pong.oxw
code/branches/OrxoBlox_FS19/data/levels/tetris.oxw
Log:
Level Hintergrund von pong uebernommen
Modified: code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw
===================================================================
--- code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw 2019-03-28 14:36:36 UTC (rev 12255)
+++ code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw 2019-03-28 14:39:56 UTC (rev 12256)
@@ -1,3 +1,5 @@
+<! ------ Background & Layout for the Level------ />
+
<LevelInfo
name = "Orxoblox"
description = "A clone version of the BBTAN game."
@@ -6,113 +8,238 @@
/>
<?lua
+ include("HUDTemplates3.oxo")
include("stats.oxo")
- include("HUDTemplates3.oxo")
+ include("pongHUD.oxo")
include("templates/lodInformation.oxt")
?>
-<?lua
- include("templates/spaceshipEscort.oxt")
-?>
+<Template name=pongbatcameras defaults=0>
+ <PongBat>
+ <camerapositions>
+ <CameraPosition position="0,150,0" pitch=-90 absolute=true />
+ <CameraPosition position="0,50,160" drag=true mouselook=true />
+ <CameraPosition position="0,40,125" drag=true mouselook=true />
+ <CameraPosition position="0,30, 90" drag=true mouselook=true />
+ </camerapositions>
+ </PongBat>
+</Template>
+<Template name=pongbat>
+ <PongBat camerapositiontemplate=pongbatcameras>
+ <attached>
+ <Model position="0,0,3" mesh="cube.mesh" scale3D="14,2,2" />
+ <!--Model roll=180 mesh="pongbat.mesh" scale=0.045 /-->
+ </attached>
+ </PongBat>
+</Template>
+
+<Template name=pongball>
+ <PongBall
+ defScoreSound = "sounds/PlayerWinScore_cut.ogg"
+ defBatSound = "sounds/Button.ogg"
+ defBoundarySound = "sounds/Button.ogg">
+ <attached>
+ <Model mesh="sphere.mesh" scale=2 />
+ <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /-->
+ <Backlight scale=0.2 colour="1.0, 1.0, 0.5" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
+ <Light type=point diffuse="1.0, 1.0, 0.5" specular="1.0, 1.0, 0.5" attenuation="1200, 1.0, 0.0035, 0.00005" />
+ <ParticleSpawner name=hiteffect position="0,0,0" source="Orxonox/sparks2" lifetime=0.01 autostart=0 mainstate=spawn />
+ </attached>
+ <eventlisteners>
+ <EventTarget target=hiteffect />
+ </eventlisteners>
+ </PongBall>
+</Template>
+
+
+
<Level>
- <templates>
+ plugins = "orxoblox"
+ gametype = "Orxoblox"
+
+
+ <templates>
<Template link=lodtemplate_default />
</templates>
<?lua include("includes/notifications.oxi") ?>
+ <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/>
+ <PongBot />
+
<Scene
- ambientlight = "0.8, 0.8, 0.8"
- skybox = "Orxonox/Starbox"
+ ambientlight = "0.5, 0.5, 0.5"
+ skybox = "Orxonox/skyBoxBasic"
>
+ <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" />
- <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"/>
- <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
-
+ <SpawnPoint position="991.729, -110.11, 435.404" orientation="0.534038, 0.563456, 0.212168, 0.593553" />
+ <MovableEntity rotationrate=5 rotationaxis="0,0,1">
+ <attached>
+ <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25>
+ <attached>
+ <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
+ <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
+ <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
+ <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
- <SpaceShip position="1000,-75,1" lookat="0,0,0">
- <templates>
- <Template link=spaceshipswallow />
- </templates>
- <controller>
- <WaypointController team=10 accuracy=200>
- <waypoints>
- <Model mesh="cube.mesh" scale=0 position="1000,-75,0" />
- <Model mesh="cube.mesh" scale=0 position="650,-75,650" />
- <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" />
- <Model mesh="cube.mesh" scale=0 position="-700,-75,650" />
- <Model mesh="cube.mesh" scale=0 position="-1000,-75,0" />
- <Model mesh="cube.mesh" scale=0 position="-700,-75,-650" />
- <Model mesh="cube.mesh" scale=0 position="-55,-75,-1000" />
- <Model mesh="cube.mesh" scale=0 position="650,-75,-650" />
- </waypoints>
- </WaypointController>
- </controller>
- </SpaceShip>
+ <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
+ <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
+
+<!-- TODO: Create a Pong Score Sound and include it here.
+This WorldSound works, but doesn't make sense, since it is played together with ambient/moodDependedDirectory/Ganymede.ogg -->
+ <!--WorldSound name="scoreSound" position="0,0,0" source="sounds/PongScore_cut.ogg" >
+ <events>
+ <play>
+ <EventListener event=pongcenter />
+ </play>
+ </events>
+ </WorldSound-->
+
+ <?lua
+ for i = 1, 15, 1 do
+ ?>
+ <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> />
+ <?lua end ?>
+
+ </attached>
+ </PongCenterpoint>
+ </attached>
+ </MovableEntity>
+
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=scoreeffect_right />
+ <EventTarget target=scoreeffect_center />
+ </targets>
+ <events>
+ <spawn>
+ <EventFilter>
+ <names>
+ <EventName name=right />
+ </names>
+ <EventListener event=pongcenter />
+ </EventFilter>
+ </spawn>
+ </events>
+ </EventDispatcher>
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=scoreeffect_left />
+ <EventTarget target=scoreeffect_center />
+ </targets>
+ <events>
+ <spawn>
+ <EventFilter>
+ <names>
+ <EventName name=left />
+ </names>
+ <EventListener event=pongcenter />
+ </EventFilter>
+ </spawn>
+ </events>
+ </EventDispatcher>
+
+ <?lua
+ dofile("includes/CuboidSpaceStation.lua")
+ ?>
+
+ <StaticEntity pitch=15>
+ <attached>
+ <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
+ <attached>
+ <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
+ <attached>
+ <?lua
+ createSpaceStationPar(0,2,1,2,1,4,1,50)
+ ?>
+ </attached>
+ </StaticEntity>
+ </attached>
+ </MovableEntity>
+ </attached>
+ </StaticEntity>
+
+ <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
+ <attached>
+ <Model scale=10 mesh="Carrier.mesh" />
+ <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
+ <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
+ </attached>
+ </StaticEntity>
+
+ <StaticEntity pitch=70>
+ <attached>
+ <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
+ <attached>
+ <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
+ <attached>
+ <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
+ <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
+ <attached>
+ <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
+ </attached>
+ </MovableEntity>
+ <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
+ <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
+ <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
+ <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
+ </attached>
+ </StaticEntity>
+ </attached>
+ </MovableEntity>
+ </attached>
+ </StaticEntity>
+
+ <?lua
+ for i = 1, 10, 1 do
+ ?>
+ <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+
+ <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+
+ <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
+ </attached>
+ </MovableEntity>
+ <?lua end ?>
- <SpaceShip position="-500,-500,-400" lookat="0,0,0">
- <templates>
- <Template link=spaceshippirate />
- </templates>
- <controller>
- <WaypointController team=10>
- <waypoints>
- <Model mesh="cube.mesh" scale=0 position="-1000,-200,0" />
- <Model mesh="cube.mesh" scale=0 position="-700,-150,650" />
- <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" />
- <Model mesh="cube.mesh" scale=0 position="650,100,650" />
- <Model mesh="cube.mesh" scale=0 position="1000,150,0" />
- <Model mesh="cube.mesh" scale=0 position="650,100,-650" />
- <Model mesh="cube.mesh" scale=0 position="-55,0,-1000" />
- <Model mesh="cube.mesh" scale=0 position="-700,-100,-650" />
- </waypoints>
- </WaypointController>
- </controller>
- </SpaceShip>
-
- <SpaceShip position="-700,200,651" lookat="1,0,0">
- <templates>
- <Template link=spaceshipghost />
- </templates>
- <controller>
- <WaypointController team=10 accuracy=300>
- <waypoints>
- <Model mesh="cube.mesh" scale=0 position="-700,200,650" />
- <Model mesh="cube.mesh" scale=0 position="-55,100,1000" />
- <Model mesh="cube.mesh" scale=0 position="650,0,650" />
- <Model mesh="cube.mesh" scale=0 position="1000,-100,0" />
- <Model mesh="cube.mesh" scale=0 position="650,0,-650" />
- <Model mesh="cube.mesh" scale=0 position="-55,100,-1000" />
- <Model mesh="cube.mesh" scale=0 position="-700,200,-650" />
- <Model mesh="cube.mesh" scale=0 position="-1000,300,0" />
- </waypoints>
- </WaypointController>
- </controller>
- </SpaceShip>
-
- <SpaceShip position="1000,-75,0" lookat="0,0,0">
- <templates>
- <Template link=spaceshipHtwo />
- </templates>
- <controller>
- <WaypointController team=10>
- <waypoints>
- <Model mesh="cube.mesh" scale=0 position="400,240,400" />
- <Model mesh="cube.mesh" scale=0 position="-55,240,700" />
- <Model mesh="cube.mesh" scale=0 position="-500,240,400" />
- <Model mesh="cube.mesh" scale=0 position="-700,240,0" />
- <Model mesh="cube.mesh" scale=0 position="-500,240,-400" />
- <Model mesh="cube.mesh" scale=0 position="-55,240,-700" />
- <Model mesh="cube.mesh" scale=0 position="400,240,-400" />
- <Model mesh="cube.mesh" scale=0 position="700,240,0" />
- </waypoints>
- </WaypointController>
- </controller>
- </SpaceShip>
-
-
</Scene>
</Level>
Modified: code/branches/OrxoBlox_FS19/data/levels/pong.oxw
===================================================================
--- code/branches/OrxoBlox_FS19/data/levels/pong.oxw 2019-03-28 14:36:36 UTC (rev 12255)
+++ code/branches/OrxoBlox_FS19/data/levels/pong.oxw 2019-03-28 14:39:56 UTC (rev 12256)
@@ -50,7 +50,6 @@
</PongBall>
</Template>
-
<Level
plugins = "pong"
gametype = "Pong"
Modified: code/branches/OrxoBlox_FS19/data/levels/tetris.oxw
===================================================================
--- code/branches/OrxoBlox_FS19/data/levels/tetris.oxw 2019-03-28 14:36:36 UTC (rev 12255)
+++ code/branches/OrxoBlox_FS19/data/levels/tetris.oxw 2019-03-28 14:39:56 UTC (rev 12256)
@@ -124,68 +124,11 @@
</WaypointController>
</controller>
</SpaceShip>
+
+
+
- <SpaceShip position="-500,-500,-400" lookat="0,0,0">
- <templates>
- <Template link=spaceshippirate />
- </templates>
- <controller>
- <WaypointController team=10>
- <waypoints>
- <Model mesh="cube.mesh" scale=0 position="-1000,-200,0" />
- <Model mesh="cube.mesh" scale=0 position="-700,-150,650" />
- <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" />
- <Model mesh="cube.mesh" scale=0 position="650,100,650" />
- <Model mesh="cube.mesh" scale=0 position="1000,150,0" />
- <Model mesh="cube.mesh" scale=0 position="650,100,-650" />
- <Model mesh="cube.mesh" scale=0 position="-55,0,-1000" />
- <Model mesh="cube.mesh" scale=0 position="-700,-100,-650" />
- </waypoints>
- </WaypointController>
- </controller>
- </SpaceShip>
- <SpaceShip position="-700,200,651" lookat="1,0,0">
- <templates>
- <Template link=spaceshipghost />
- </templates>
- <controller>
- <WaypointController team=10 accuracy=300>
- <waypoints>
- <Model mesh="cube.mesh" scale=0 position="-700,200,650" />
- <Model mesh="cube.mesh" scale=0 position="-55,100,1000" />
- <Model mesh="cube.mesh" scale=0 position="650,0,650" />
- <Model mesh="cube.mesh" scale=0 position="1000,-100,0" />
- <Model mesh="cube.mesh" scale=0 position="650,0,-650" />
- <Model mesh="cube.mesh" scale=0 position="-55,100,-1000" />
- <Model mesh="cube.mesh" scale=0 position="-700,200,-650" />
- <Model mesh="cube.mesh" scale=0 position="-1000,300,0" />
- </waypoints>
- </WaypointController>
- </controller>
- </SpaceShip>
- <SpaceShip position="1000,-75,0" lookat="0,0,0">
- <templates>
- <Template link=spaceshipHtwo />
- </templates>
- <controller>
- <WaypointController team=10>
- <waypoints>
- <Model mesh="cube.mesh" scale=0 position="400,240,400" />
- <Model mesh="cube.mesh" scale=0 position="-55,240,700" />
- <Model mesh="cube.mesh" scale=0 position="-500,240,400" />
- <Model mesh="cube.mesh" scale=0 position="-700,240,0" />
- <Model mesh="cube.mesh" scale=0 position="-500,240,-400" />
- <Model mesh="cube.mesh" scale=0 position="-55,240,-700" />
- <Model mesh="cube.mesh" scale=0 position="400,240,-400" />
- <Model mesh="cube.mesh" scale=0 position="700,240,0" />
- </waypoints>
- </WaypointController>
- </controller>
- </SpaceShip>
-
-
-
</Scene>
</Level>
More information about the Orxonox-commit
mailing list