public void Test() { // Create some input actions to move around the ground with var inputActions = new List <InputAction> { new InputAction("Left", Buttons.LeftThumbstickLeft, Keys.A), new InputAction("Right", Buttons.LeftThumbstickLeft, Keys.D), new InputAction("Forward", Buttons.LeftThumbstickLeft, Keys.W), new InputAction("Backward", Buttons.LeftThumbstickLeft, Keys.S), }; // Add these input actions to our Input Handler InputHandler.Commands.AddRange(inputActions); Camera = new FPSCamera(this); Camera.Position = new Vector3(-1000, 200, 1000); Camera.FarPlane = 12000f; Components.Add(Camera); Stadium = new Model(this, "Stadium1", Camera); Components.Add(Stadium); Run(); }
public void Test() { // Create our Camera Camera = new BasicCamera(this); Camera.Position = new Vector3(0, 3, 25); Camera.Target = new Vector3(0, 5, 0); Components.Add(Camera); Catapult = new Model(this, "Catapult1_rev2", Camera); Catapult.DiffuseColor = new Color(50, 50, 50, 255); Components.Add(Catapult); InputHandler.AddCommand(new InputAction("Left", Buttons.LeftStick, Keys.Left)); InputHandler.AddCommand(new InputAction("Right", Buttons.RightStick, Keys.Right)); InputHandler.AddCommand(new InputAction("Fire", Buttons.A, Keys.Space)); Run(); }