[Orxonox-commit 1170] r5891 - in code/branches/core5/data: levels particle
landauf at orxonox.net
landauf at orxonox.net
Tue Oct 6 05:38:45 CEST 2009
Author: landauf
Date: 2009-10-06 05:38:45 +0200 (Tue, 06 Oct 2009)
New Revision: 5891
Added:
code/branches/core5/data/particle/sparks2.particle
Modified:
code/branches/core5/data/levels/presentation_pong.oxw
Log:
Added fancy particle effects in the pong level, based on the named events fired by the Pong gametype. Also added a new particle effect with colorful sparks.
Modified: code/branches/core5/data/levels/presentation_pong.oxw
===================================================================
--- code/branches/core5/data/levels/presentation_pong.oxw 2009-10-06 03:29:39 UTC (rev 5890)
+++ code/branches/core5/data/levels/presentation_pong.oxw 2009-10-06 03:38:45 UTC (rev 5891)
@@ -31,7 +31,11 @@
<!--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>
@@ -61,18 +65,31 @@
<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_R position=" 100,0, 60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect position=" 50,0, 60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect position=" 0,0, 60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect position=" -50,0, 60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect_L position="-100,0, 60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect_R position=" 100,0,-60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect position=" 50,0,-60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect position=" 0,0,-60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect position=" -50,0,-60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
- <ParticleSpawner name=scoreeffect_L position="-100,0,-60" source="Orxonox/BigExplosion1part1" lifetime=3.0 autostart=0 />
--->
+
+ <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 />
+
+ <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 />
+
+<?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>
@@ -80,14 +97,36 @@
<EventDispatcher>
<targets>
- <EventTarget name=scoreeffect />
+ <EventTarget target=scoreeffect_right />
+ <EventTarget target=scoreeffect_center />
</targets>
<events>
<spawn>
- <EventListener event=pongcenter />
+ <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")
Added: code/branches/core5/data/particle/sparks2.particle
===================================================================
--- code/branches/core5/data/particle/sparks2.particle (rev 0)
+++ code/branches/core5/data/particle/sparks2.particle 2009-10-06 03:38:45 UTC (rev 5891)
@@ -0,0 +1,51 @@
+
+particle_system Orxonox/sparks2
+{
+ quota 1000
+ material PE/Flare
+ particle_width 15
+ particle_height 40
+ cull_each true
+ renderer billboard
+ sorted false
+ local_space false
+ iteration_interval 0
+ nonvisible_update_timeout 0
+ billboard_type oriented_self
+ billboard_origin center
+ billboard_rotation_type texcoord
+ common_up_vector 0 1 0
+ point_rendering false
+ accurate_facing false
+
+ emitter Point
+ {
+ angle 180
+ colour 0.1 0.1 0.1 1
+ colour_range_start 0.1 0.1 0.1 1
+ colour_range_end 1 1 1 1
+ direction 0 0 -1
+ emission_rate 5000
+ position 0 0 0
+ velocity 10
+ velocity_min 15
+ velocity_max 150
+ time_to_live 0.5
+ time_to_live_min 0.5
+ time_to_live_max 0.5
+ duration 0
+ duration_min 0
+ duration_max 0
+ repeat_delay 0
+ repeat_delay_min 0
+ repeat_delay_max 0
+ }
+
+ affector ColourFader
+ {
+ red -2.0
+ green -2.0
+ blue -2.0
+ alpha 0
+ }
+}
Property changes on: code/branches/core5/data/particle/sparks2.particle
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the Orxonox-commit
mailing list