Refactor & More.
Changed the entity system to utilize mix-ins. Added instanced sprites. Texture support.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user