Refactor & More.

Changed the entity system to utilize mix-ins.

Added instanced sprites.

Texture support.
This commit is contained in:
2025-01-03 19:28:58 -05:00
parent c9daae8d25
commit 6664925621
39 changed files with 503 additions and 310 deletions

View File

@@ -1,4 +1,6 @@
#include <Game/Entity/Box.h>
#include <Game/entity/Box.h>
#include <Engine/Globals.h>
#include <JGL/JGL.h>
void Game::Box::Render() {
J2D::FillRect(Colors::Red, Vector2(position), {20, 20});
@@ -13,4 +15,4 @@ void Game::Box::Update() {
MoveX(-500);
if (Globals::Window->IsKeyDown(Keys::D))
MoveX(500);
}
}