This commit is contained in:
2025-01-02 13:56:33 -05:00
parent 30bdd66086
commit 18072f3b66
20 changed files with 109 additions and 75 deletions

View File

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