Removed some agame things; Added VSYNC
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user