From de4c60c4722e1e1166ebcfe00c422e0f6f36f1b8 Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Fri, 6 Oct 2023 16:07:00 -0500 Subject: [PATCH] Working camera 2 --- .run/Blocktest (Local Multiplayer).run.xml | 3 +- Blocktest.sln.DotSettings | 6 +- Blocktest/BlocktestGame.cs | 3 +- Blocktest/Code/Block System/BlockSprites.cs | 17 +-- Blocktest/Code/Block System/RenderableTile.cs | 66 ++++++++++ .../Code/Block System/RenderableTilemap.cs | 60 +++++++++ Blocktest/Code/Block System/TilemapSprites.cs | 49 ------- Blocktest/Code/Rendering/Camera.cs | 65 ++++++++++ Blocktest/Code/Rendering/Renderable.cs | 35 +++++ Blocktest/Code/Scenes/GameScene.cs | 119 +++++++++++------ DedicatedServer/Code/WorldHandler.cs | 16 +-- Shared/Code/Block System/BlockShared.cs | 2 +- Shared/Code/Block System/TileShared.cs | 48 +++++++ Shared/Code/Block System/TilemapShared.cs | 122 ++---------------- Shared/Code/Components/Transform.cs | 30 +++++ Shared/Code/Math.cs | 33 ++++- 16 files changed, 450 insertions(+), 224 deletions(-) create mode 100644 Blocktest/Code/Block System/RenderableTile.cs create mode 100644 Blocktest/Code/Block System/RenderableTilemap.cs delete mode 100644 Blocktest/Code/Block System/TilemapSprites.cs create mode 100644 Blocktest/Code/Rendering/Camera.cs create mode 100644 Blocktest/Code/Rendering/Renderable.cs create mode 100644 Shared/Code/Block System/TileShared.cs create mode 100644 Shared/Code/Components/Transform.cs diff --git a/.run/Blocktest (Local Multiplayer).run.xml b/.run/Blocktest (Local Multiplayer).run.xml index f9d1c62..4914f9a 100644 --- a/.run/Blocktest (Local Multiplayer).run.xml +++ b/.run/Blocktest (Local Multiplayer).run.xml @@ -1,5 +1,6 @@ - +