From 0a64d17db5f9f1b3e409261c1af37cea7db4b597 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 25 Feb 2020 19:18:58 -0500 Subject: [PATCH] fix lint errors GitOrigin-RevId: 5de396b25947e1de5bea55ecc32bacc59e5b336d --- Shared/Camera.cs | 1 - Shared/Debug.cs | 2 +- Shared/Geometry.cs | 2 +- Shared/Levels.cs | 6 +++--- Shared/Player.cs | 2 +- Shared/World.cs | 2 +- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Shared/Camera.cs b/Shared/Camera.cs index f81a943..7c41c24 100644 --- a/Shared/Camera.cs +++ b/Shared/Camera.cs @@ -7,7 +7,6 @@ namespace SemiColinGames { class Camera { // Screen size in pixels is 1920x1080 divided by 4. private Rectangle bbox = new Rectangle(0, 0, 480, 270); - public int Width { get => bbox.Width; } public int Height { get => bbox.Height; } public int Left { get => bbox.Left; } diff --git a/Shared/Debug.cs b/Shared/Debug.cs index 560583c..e382b87 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -100,7 +100,7 @@ namespace SemiColinGames { if (!Enabled) { return; } - // UI should start at least 48px from the left edge of the screen, and 27 from the top, as per: + // UI should start at least 48px from the left edge of the screen and 27 from the top, as per: // https://docs.microsoft.com/en-us/windows/uwp/design/devices/designing-for-tv#tv-safe-area // Can test this on actual Xbox via: // Settings > Launch Settings > Display & Sound > Resolution > 720p. diff --git a/Shared/Geometry.cs b/Shared/Geometry.cs index 22a2cfe..242e0d9 100644 --- a/Shared/Geometry.cs +++ b/Shared/Geometry.cs @@ -72,7 +72,7 @@ namespace SemiColinGames { public readonly Hit? Hit; public readonly Vector2 Position; public readonly float Time; - + public Sweep(Hit? hit, Vector2 position, float time) { Hit = hit; Position = position; diff --git a/Shared/Levels.cs b/Shared/Levels.cs index 1e4ba1d..b0f92d0 100644 --- a/Shared/Levels.cs +++ b/Shared/Levels.cs @@ -18,7 +18,7 @@ 4 | | 3 | | 2 | | -w wr wqw t wew ww dfffxfffxfffb v twq r wtwv +w wr wqw t wew ww dfffxfffxfffb v twq r wtwv =================> <=============> <================================================================================================ ..................~`~`~`...............^^^^................................................................................................. ..................======...................................................................................................................."; @@ -34,7 +34,7 @@ w wr wqw t wew ww dfffxfffxfffb v twq r wtwv ......................................... ......................................... ......................................... -......................................... +......................................... 0 [................................. 1 [................................. 2 [................................. @@ -46,7 +46,7 @@ w wr wqw t wew ww dfffxfffxfffb v twq r wtwv public const string ONE_ONE = @" - + diff --git a/Shared/Player.cs b/Shared/Player.cs index 45bcf7b..ba54753 100644 --- a/Shared/Player.cs +++ b/Shared/Player.cs @@ -19,7 +19,7 @@ namespace SemiColinGames { private const int spriteCenterYOffset = 1; // Details of the actual Player model. - + // Position is tracked at the Player's center. The Player's bounding box is a rectangle // centered at that point and extending out by halfSize.X and halfSize.Y. private Point position = new Point(64, 16 * 12); diff --git a/Shared/World.cs b/Shared/World.cs index c5bc187..836c054 100644 --- a/Shared/World.cs +++ b/Shared/World.cs @@ -63,7 +63,7 @@ namespace SemiColinGames { TextureSource = new Rectangle(x * size, y * size, size, size); } } - + class Tile { public Tile(Terrain terrain, Rectangle position) { Terrain = terrain;