Browse Source

fix lint errors

GitOrigin-RevId: 5de396b259
master
Colin McMillen 4 years ago
parent
commit
0a64d17db5
  1. 1
      Shared/Camera.cs
  2. 2
      Shared/Debug.cs
  3. 2
      Shared/Geometry.cs
  4. 6
      Shared/Levels.cs
  5. 2
      Shared/Player.cs
  6. 2
      Shared/World.cs

1
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; }

2
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.

2
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;

6
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 = @"

2
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);

2
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;

Loading…
Cancel
Save