diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db555b5..128cf0f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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. diff --git a/Blocktest/Code/Scenes/GameScene.cs b/Blocktest/Code/Scenes/GameScene.cs index a57a60f..6bfc836 100644 --- a/Blocktest/Code/Scenes/GameScene.cs +++ b/Blocktest/Code/Scenes/GameScene.cs @@ -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; @@ -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("Fonts/OpenSans"); + game.Content.Load("Fonts/OpenSans"); _game = game; _camera = new Camera(Vector2.Zero, new Vector2(512, 256), game.GraphicsDevice); @@ -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(); }