Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
id="layer1"
transform="translate(-286.05811,81.477047)">
<image
id="layer1"
transform="translate(-286.05811,81.477047)">
<image
- sodipodi:absref="/home/xymus/projects/nit/contrib/action_nitro/art/../assets/particles/explosion00.png"
- xlink:href="../assets/particles/explosion00.png"
+ sodipodi:absref="icon_background.png"
+ xlink:href="icon_background.png"
width="479.1073"
height="439.72864"
id="image3062"
width="479.1073"
height="439.72864"
id="image3062"
# Particle effects
# Explosion particles
# Particle effects
# Explosion particles
- var explosions = new ParticleSystem(20, explosion_program,
+ var explosions = new ParticleSystem(100, explosion_program,
new Texture("particles/explosion00.png"))
# Blood explosion particles
new Texture("particles/explosion00.png"))
# Blood explosion particles
- var blood = new ParticleSystem(20, explosion_program,
+ var blood = new ParticleSystem(100, explosion_program,
new Texture("particles/blood07.png"))
# Smoke for the background
new Texture("particles/blood07.png"))
# Smoke for the background
+ blood.texture.as(RootTexture).premultiply_alpha = false
+ explosions.texture.as(RootTexture).premultiply_alpha = false
+
super
show_splash_screen new Texture("textures/splash.jpg")
super
show_splash_screen new Texture("textures/splash.jpg")
ui_camera.reset_height 1080.0
# Register particle systems
ui_camera.reset_height 1080.0
# Register particle systems
- particle_systems.add explosions
- particle_systems.add blood
particle_systems.add smoke
particle_systems.add clouds
particle_systems.add smoke
particle_systems.add clouds
+ particle_systems.add blood
+ particle_systems.add explosions
# Stars background
sprites.add stars
# Stars background
sprites.add stars
# Show death animation (explosion)
fun death_animation
do
# Show death animation (explosion)
fun death_animation
do
app.blood.add(
new Point3d[Float](center.x & force, center.y & force, center.z & force),
app.blood.add(
new Point3d[Float](center.x & force, center.y & force, center.z & force),
- (2048.0 & 4096.0) * force, 0.3 & 0.1)
+ (4096.0 & 2048.0) * force, 0.3 & 0.1)
- app.explosions.add(center, 8192.0 * force, 0.3)
- for i in (4.0*force).to_i.times do
+ var range = 0.5 * force
+ app.explosions.add(center, 4096.0 * force, 0.3)
+ for i in (2.0*force).to_i.times do
- new Point3d[Float](center.x & force, center.y & force/2.0, center.z & force),
- (4096.0 & 2048.0) * force, 0.3 & 0.3, 0.5.rand)
+ new Point3d[Float](center.x & range, center.y & range, center.z & range),
+ (2048.0 & 1024.0) * force, 0.3 & 0.3, 0.5.rand)
gl_PointSize = scale / gl_Position.z * (pt+0.1);
if (pt < 0.1)
gl_PointSize = scale / gl_Position.z * (pt+0.1);
if (pt < 0.1)
- v_color.a = 1.0 - pt*0.9;
+ v_color *= 1.0 - pt*0.9;