#include #include #include void Game::Box::Render() { J2D::FillRect(Colors::Red, Vector2(position), {20, 20}); } void Game::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); }