fix lint errors
GitOrigin-RevId: 5de396b25947e1de5bea55ecc32bacc59e5b336d
This commit is contained in:
parent
efccefa5b1
commit
0a64d17db5
@ -7,7 +7,6 @@ namespace SemiColinGames {
|
|||||||
class Camera {
|
class Camera {
|
||||||
// Screen size in pixels is 1920x1080 divided by 4.
|
// Screen size in pixels is 1920x1080 divided by 4.
|
||||||
private Rectangle bbox = new Rectangle(0, 0, 480, 270);
|
private Rectangle bbox = new Rectangle(0, 0, 480, 270);
|
||||||
|
|
||||||
public int Width { get => bbox.Width; }
|
public int Width { get => bbox.Width; }
|
||||||
public int Height { get => bbox.Height; }
|
public int Height { get => bbox.Height; }
|
||||||
public int Left { get => bbox.Left; }
|
public int Left { get => bbox.Left; }
|
||||||
|
@ -100,7 +100,7 @@ namespace SemiColinGames {
|
|||||||
if (!Enabled) {
|
if (!Enabled) {
|
||||||
return;
|
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
|
// https://docs.microsoft.com/en-us/windows/uwp/design/devices/designing-for-tv#tv-safe-area
|
||||||
// Can test this on actual Xbox via:
|
// Can test this on actual Xbox via:
|
||||||
// Settings > Launch Settings > Display & Sound > Resolution > 720p.
|
// Settings > Launch Settings > Display & Sound > Resolution > 720p.
|
||||||
|
@ -72,7 +72,7 @@ namespace SemiColinGames {
|
|||||||
public readonly Hit? Hit;
|
public readonly Hit? Hit;
|
||||||
public readonly Vector2 Position;
|
public readonly Vector2 Position;
|
||||||
public readonly float Time;
|
public readonly float Time;
|
||||||
|
|
||||||
public Sweep(Hit? hit, Vector2 position, float time) {
|
public Sweep(Hit? hit, Vector2 position, float time) {
|
||||||
Hit = hit;
|
Hit = hit;
|
||||||
Position = position;
|
Position = position;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
4 | |
|
4 | |
|
||||||
3 | |
|
3 | |
|
||||||
2 | |
|
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 [.................................
|
0 [.................................
|
||||||
1 [.................................
|
1 [.................................
|
||||||
2 [.................................
|
2 [.................................
|
||||||
@ -46,7 +46,7 @@ w wr wqw t wew ww dfffxfffxfffb v twq r wtwv
|
|||||||
|
|
||||||
public const string ONE_ONE = @"
|
public const string ONE_ONE = @"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ namespace SemiColinGames {
|
|||||||
private const int spriteCenterYOffset = 1;
|
private const int spriteCenterYOffset = 1;
|
||||||
|
|
||||||
// Details of the actual Player model.
|
// Details of the actual Player model.
|
||||||
|
|
||||||
// Position is tracked at the Player's center. The Player's bounding box is a rectangle
|
// 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.
|
// centered at that point and extending out by halfSize.X and halfSize.Y.
|
||||||
private Point position = new Point(64, 16 * 12);
|
private Point position = new Point(64, 16 * 12);
|
||||||
|
@ -63,7 +63,7 @@ namespace SemiColinGames {
|
|||||||
TextureSource = new Rectangle(x * size, y * size, size, size);
|
TextureSource = new Rectangle(x * size, y * size, size, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Tile {
|
class Tile {
|
||||||
public Tile(Terrain terrain, Rectangle position) {
|
public Tile(Terrain terrain, Rectangle position) {
|
||||||
Terrain = terrain;
|
Terrain = terrain;
|
||||||
|
Loading…
Reference in New Issue
Block a user