Initial Commit

This commit is contained in:
2025-01-02 00:15:37 -05:00
commit b9afc57e6e
29 changed files with 1826 additions and 0 deletions

18
src/Game/Entities/Box.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include <Game/Entity/Box.h>
void Box::Render() {
J2D::Begin(nullptr, true);
J2D::FillRect(Colors::Red, Vector2(position), {20, 20});
J2D::End();
}
void Box::Update() {
if (Globals::Window->IsKeyDown(Keys::W))
MoveY(-500);
if (Globals::Window->IsKeyDown(Keys::S))
MoveY(500);
if (Globals::Window->IsKeyDown(Keys::A))
MoveX(-500);
if (Globals::Window->IsKeyDown(Keys::D))
MoveX(500);
}