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 Feb 27, 2019
1 parent 051de7e commit 38efaf7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions craftersmine.EtherEngine.Rendering.Tester/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,28 +109,34 @@ public override void OnUpdate()

DPad DPad = Gamepad.GetDPad(Player.First);
Buttons Buttons = Gamepad.GetButtons(Player.First);
if (Keyboard.IsKeyDown(Keys.W) || DPad.Up)
if (Keyboard.IsKeyDown(Key.W) || DPad.Up)
{
movable.Y--;
SceneCamera.MoveCamera(0, 1);
}
if (Keyboard.IsKeyDown(Keys.S) || DPad.Down)
if (Keyboard.IsKeyDown(Key.S) || DPad.Down)
{
movable.Y++;
SceneCamera.MoveCamera(0, -1);
}
if (Keyboard.IsKeyDown(Keys.A) || DPad.Left)
if (Keyboard.IsKeyDown(Key.A) || DPad.Left)
{
movable.X--;
SceneCamera.MoveCamera(-1, 0);
}
if (Keyboard.IsKeyDown(Keys.D) || DPad.Right)
if (Keyboard.IsKeyDown(Key.D) || DPad.Right)
{
movable.X++;
SceneCamera.MoveCamera(1, 0);
}
if (Keyboard.IsKeyDown(Keys.E) || Buttons.A)
if (Keyboard.IsKeyDown(Key.P) || Buttons.A)
particleSystem.Emit();
if (Keyboard.IsKeyDown(Key.Q))
movable.Transform.Rotate(-0.5f);
if (Keyboard.IsKeyDown(Key.E))
movable.Transform.Rotate(0.5f);
if (Keyboard.IsKeyDown(Key.R))
movable.Transform.RotationAngle = 0.0f;
}
}

Expand Down

0 comments on commit 38efaf7

Please sign in to comment.