fix lint errors

GitOrigin-RevId: 5de396b25947e1de5bea55ecc32bacc59e5b336d
This commit is contained in:
Colin McMillen 2020-02-25 19:18:58 -05:00
parent efccefa5b1
commit 0a64d17db5
6 changed files with 7 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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