Removed some agame things; Added VSYNC
This commit is contained in:
@@ -2,14 +2,16 @@
|
||||
#include <window/window.hpp>
|
||||
#include <cmath>
|
||||
#include <game/input.hpp>
|
||||
#include <game/gamemanager.hpp>
|
||||
|
||||
namespace Game::AGame {
|
||||
void Player::start() {
|
||||
//mSound = Object::Sound("../resources/example.wav", Object::Format::WAV);
|
||||
//mSound.play();
|
||||
|
||||
mZIndex = 100;
|
||||
|
||||
Game::GameManager::setSharedData("gameStage", 1);
|
||||
Game::GameManager::setSharedData("gameScore", 0);
|
||||
|
||||
int w, h;
|
||||
SDL_GetWindowSizeInPixels(Window::Window::getSDLWindowBackend(), &w, &h);
|
||||
|
||||
@@ -17,7 +19,6 @@ namespace Game::AGame {
|
||||
mTransform.y -= mTex->getHeight() * mTransform.adjustedScaleY() / 2.f;
|
||||
|
||||
LOG("W: " << w << " H: " << h);
|
||||
|
||||
//mSound.~Sound();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user