Skip to content

Commit

Permalink
Should fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Oct 6, 2023
1 parent de4c60c commit 00f87c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
matrix:
projectPath:
- Blocktest.csproj
- DedicatedServer.csproj
targetPlatform:
- linux-x64 # Build a macOS standalone (Intel 64-bit).
- win-x86 # Build a Windows 32-bit standalone.
Expand Down
11 changes: 1 addition & 10 deletions Blocktest/Code/Scenes/GameScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public sealed class GameScene : IScene {
private readonly BlocktestGame _game;
private readonly Client _networkingClient;
private readonly SpriteBatch _spriteBatch;
private readonly SpriteFont _spriteFont;
private int _blockSelected = 1; //ID of the block to place

private readonly RenderableTilemap _backgroundTilemapSprites;
Expand All @@ -29,7 +28,7 @@ public sealed class GameScene : IScene {
public GameScene(BlocktestGame game, bool doConnect, string? ip) {
_connect = doConnect;
_spriteBatch = new SpriteBatch(game.GraphicsDevice);
_spriteFont = game.Content.Load<SpriteFont>("Fonts/OpenSans");
game.Content.Load<SpriteFont>("Fonts/OpenSans");
_game = game;

_camera = new Camera(Vector2.Zero, new Vector2(512, 256), game.GraphicsDevice);
Expand Down Expand Up @@ -172,14 +171,6 @@ public void Draw(GameTime gameTime, GraphicsDevice graphicsDevice) {

_frameCounter.Update(deltaTime);

string fps = $"FPS: {_frameCounter.CurrentFramesPerSecond:##0.00}";
_spriteBatch.DrawString(_spriteFont, fps, new Vector2(10, 10), Color.Black);

if (_connect) {
string ping = $"Ping: {_networkingClient.Server?.Ping}ms";
_spriteBatch.DrawString(_spriteFont, ping, new Vector2(10, 30), Color.Black);
}

_spriteBatch.End();
}

Expand Down

0 comments on commit 00f87c5

Please sign in to comment.