Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Updated Tester app
Browse files Browse the repository at this point in the history
  • Loading branch information
craftersmine committed Mar 4, 2019
1 parent 57024f1 commit efbd357
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions craftersmine.EtherEngine.Rendering.Tester/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public sealed class BaseScene : Scene
List<GameObject> myObjs = new List<GameObject>();
Movable movable = new Movable();
ParticleSystem particleSystem;
AudioClip audioclip;

public override void OnStart()
{
Expand Down Expand Up @@ -102,6 +103,8 @@ public override void OnStart()
AddGameObject(movable);
AddGameObject(particleSystem);
//particleSystem.Emit();
audioclip = Program.contentManager.LoadAudioClip("TestAudioClip");
CreateAudioChannel("aud", audioclip);
}

public override void OnUpdate()
Expand Down Expand Up @@ -137,6 +140,8 @@ public override void OnUpdate()
movable.Transform.Rotate(0.5f);
if (Keyboard.IsKeyDown(Key.R))
movable.Transform.RotationAngle = 0.0f;
if (Keyboard.IsKeyDown(Key.C))
GetAudioChannel("aud").Play();
}
}

Expand Down

0 comments on commit efbd357

Please sign in to comment.