Added DirectionalParticles and fixed the ElapsedNormalized of Timer.
This commit is contained in:
parent
01998d78dc
commit
6cb1fea19a
4 changed files with 25 additions and 4 deletions
|
|
@ -36,8 +36,13 @@ namespace SM_TEST
|
|||
|
||||
window.SetScene(scene = new Scene());
|
||||
|
||||
DrawText text = new DrawText(font, "Hi, HI");
|
||||
scene.Objects.Add(text);
|
||||
DrawParticles particles = new DrawParticles(TimeSpan.FromSeconds(5))
|
||||
{
|
||||
Direction = new Vector2(0, 1),
|
||||
DirectionRadius = 10
|
||||
};
|
||||
particles.Trigger();
|
||||
scene.Objects.Add(particles);
|
||||
|
||||
window.UpdateFrame += WindowOnUpdateFrame;
|
||||
window.RenderFrame += Window_RenderFrame;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue