TomlDataReader, documentation updates, move ParticleSystem to Voile.Systems.Particles.
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
[ParticleEmitterSettings]
|
||||
|
||||
MaxParticles = 1024
|
||||
EmitRadius = 3
|
||||
MaxParticles = 256
|
||||
EmitRadius = 32
|
||||
Explosiveness = 0.0
|
||||
LifeTime = 0.5
|
||||
Direction = { x = 0.0, y = 1.0 }
|
||||
LinearVelocity = 980.0
|
||||
Direction = [0.0, 1.0]
|
||||
LinearVelocity = 200
|
||||
Gravity = [0.0, 980.0]
|
||||
LinearVelocityRandom = 0.5
|
||||
ScaleBegin = 1.0
|
||||
ScaleEnd = 0.0
|
||||
ColorBegin = { r = 0.0, g = 1.0, b = 0.0, a = 1.0 }
|
||||
ColorEnd = { r = 1.0, g = 0.0, b = 0.0, a = 1.0 }
|
||||
ScaleEnd = 2.0
|
||||
ColorBegin = [255, 0, 255, 255]
|
||||
ColorEnd = [0, 0, 0, 0]
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
using Voile;
|
||||
using Voile.Audio;
|
||||
using Voile.Resources;
|
||||
using Voile.SceneGraph;
|
||||
using Voile.Utils;
|
||||
using Voile.Input;
|
||||
using Voile.Systems;
|
||||
using Voile.Systems.Particles;
|
||||
using System.Numerics;
|
||||
|
||||
public class TestGame : Game
|
||||
@@ -74,7 +72,7 @@ public class TestGame : Game
|
||||
|
||||
private void DrawEmitter(ParticleEmitter emitter)
|
||||
{
|
||||
Renderer.BeginBlended(Voile.Rendering.BlendMode.BlendAdd);
|
||||
Renderer.BeginBlended(Voile.Rendering.BlendMode.BlendAlpha);
|
||||
|
||||
for (int i = 0; i < emitter.Particles.Length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user