mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-31 00:05:02 -07:00
Testing
This commit is contained in:
@@ -105,6 +105,8 @@ namespace LunaLightXMG
|
||||
player = new Player(initPlayerPosition);
|
||||
playerInput = new PlayerInput();
|
||||
playerInput.HasControl = true;
|
||||
// Misc.
|
||||
prevKeyState = Keyboard.GetState();
|
||||
player.LoadContent(Content);
|
||||
|
||||
// Init number of platforms / enemies
|
||||
@@ -126,8 +128,7 @@ namespace LunaLightXMG
|
||||
// Get utilities
|
||||
utilities = new Utilities();
|
||||
|
||||
// Misc.
|
||||
prevKeyState = Keyboard.GetState();
|
||||
|
||||
}
|
||||
|
||||
private void LoadPlatforms()
|
||||
@@ -162,7 +163,7 @@ namespace LunaLightXMG
|
||||
ResetGame();
|
||||
|
||||
// Update player
|
||||
playerInput.Update(keyboardState);
|
||||
playerInput.Update();
|
||||
player.Update(gameTime, playerInput, platforms);
|
||||
|
||||
// Update Enemies
|
||||
@@ -276,6 +277,7 @@ namespace LunaLightXMG
|
||||
spriteBatch.DrawString(debugFont, $"Camera Position: {camera2D.Position}", new Vector2(10, 90), Color.White);
|
||||
spriteBatch.DrawString(debugFont, $"Camera Rotation: {camera2D.Rotation}", new Vector2(10, 110), Color.White);
|
||||
spriteBatch.DrawString(debugFont, $"Render Target Zoom: {renderHandler.ZoomLevel}", new Vector2(10, 130), Color.White);
|
||||
spriteBatch.DrawString(debugFont, $"Key Pressed: {Keyboard.GetState().GetPressedKeys()}", new Vector2(10, 150), Color.White);
|
||||
|
||||
spriteBatch.DrawString(debugFont, $"Camera Rotation Control - Rotate left: K, Rotate right: L", new Vector2(10, 190), Color.White);
|
||||
spriteBatch.DrawString(debugFont, $"Render Target Zoom Control - Zoom in: U, Zoom normal: I, Zoom out: O", new Vector2(10, 210), Color.White);
|
||||
|
||||
Reference in New Issue
Block a user