Removed some agame things; Added VSYNC

This commit is contained in:
2026-03-18 08:44:30 +01:00
parent def737316c
commit e4004bbfe8
16 changed files with 354 additions and 77 deletions

View File

@@ -17,6 +17,11 @@ namespace Game::AGame {
LOG("W: " << w << " H: " << h);
mTransform.x = w / 2.f - (w / 3.f);
mTransform.y = 0.f;
mTransform.scaleX = 1.f;
mTransform.scaleY = 1.f;
mSound.~Sound();
}
@@ -38,4 +43,10 @@ namespace Game::AGame {
//Object::Camera::getInstance().move(1.f, 0.f);
}
void Background::onWindowResized(int newWidth, int newHeight) {
// Re-center the background on window resize
mTransform.x = newWidth / 2.f - (newWidth / 3.f);
mTransform.y = 0.f;
}
}