From feb5302c3988e9289796021216da7ec9b488775c Mon Sep 17 00:00:00 2001 From: JoshuaNavarro Date: Sat, 20 Jul 2019 15:15:41 -0700 Subject: [PATCH] Some little comments. --- .../SeasideScrambleMinigame/SSCPlayer.cs | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/GeneralMods/Revitalize/Framework/Minigame/SeasideScrambleMinigame/SSCPlayer.cs b/GeneralMods/Revitalize/Framework/Minigame/SeasideScrambleMinigame/SSCPlayer.cs index 8726d5f7..5cc172d2 100644 --- a/GeneralMods/Revitalize/Framework/Minigame/SeasideScrambleMinigame/SSCPlayer.cs +++ b/GeneralMods/Revitalize/Framework/Minigame/SeasideScrambleMinigame/SSCPlayer.cs @@ -231,10 +231,12 @@ namespace Revitalize.Framework.Minigame.SeasideScrambleMinigame this.showMouseCursor = true; } } - ModCore.log("Mouse dir:"+this.getMouseDirection()); } - + /// + /// Sets the mouse's position. + /// + /// public void setMousePosition(Vector2 position) { this.mouseCursor.position = position; @@ -322,6 +324,10 @@ namespace Revitalize.Framework.Minigame.SeasideScrambleMinigame return dir; } + /// + /// Gets the mouse's relative position away from the player. + /// + /// private Vector2 getRelativeMouseFromPlayer() { Vector2 pos = this.mouseCursor.position - SeasideScramble.GlobalToLocal(this.position); @@ -367,18 +373,19 @@ namespace Revitalize.Framework.Minigame.SeasideScrambleMinigame } } + /// + /// What happens when the player left clicks. + /// + /// + /// public void receiveLeftClick(int x, int y) { if (SeasideScramble.self.getGamepadState(PlayerIndex.One).IsButtonDown(Buttons.A)) { - //Do stuf besides shooting. + //Do stuff besides shooting. return; } - Vector2 clickPos = new Vector2(x, y); - Vector2 direction = this.getMouseDirection(); - - ModCore.log("Player click: " + direction); this.shoot(direction); }