mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 14:41:49 +01:00
Rework Tile detection system
This commit is contained in:
@@ -47,8 +47,6 @@ void Game::Update(float elapsedSec) {
|
||||
void Game::Draw() const {
|
||||
utils::ClearBackground(Color4f(0.0f, 0.0f, 0.3f, 1.0f));
|
||||
m_WorldLevel.Draw();
|
||||
TextureManager::GetInstance()->GetTexture("dingus.png")->Draw(Point2f{0,0}, {}, true);
|
||||
TextureManager::GetInstance()->GetTexture("dingus.png")->Draw(Point2f{0,300}, {}, false);
|
||||
}
|
||||
|
||||
void Game::ProcessKeyDownEvent(const SDL_KeyboardEvent& e) {
|
||||
@@ -76,7 +74,7 @@ void Game::ProcessMouseUpEvent(const SDL_MouseButtonEvent& e) {
|
||||
//case SDL_BUTTON_LEFT:
|
||||
// std::cout << " left button " << std::endl;
|
||||
// break;
|
||||
//case SDL_BUTTON_RIGHT:
|
||||
//case SDL_BUTTON_RIGHT:k
|
||||
// std::cout << " right button " << std::endl;
|
||||
// break;
|
||||
//case SDL_BUTTON_MIDDLE:
|
||||
|
||||
Reference in New Issue
Block a user