First attempt at Map collision*

*Unfinished
This commit is contained in:
Riyyi
2015-03-22 02:27:29 +01:00
parent 9b6b33845d
commit 0aff9f62bb
9 changed files with 133 additions and 22 deletions
+1
View File
@@ -34,6 +34,7 @@ void MainGame::Update(sf::RenderWindow* window) {
this->player->Update(window, inputManager, timeElapsed);
this->entityManager->Update();
this->map->CheckCollision(window, this->player);
this->camera->Update(window, this->map, sf::Vector2f(this->player->getPosition().x, this->player->getPosition().y));
if(inputManager.IsPressed(InputManager::LoadMap)) {