diff --git a/src/Engine.cpp b/src/Engine.cpp index d5a12be..ecf77f6 100644 --- a/src/Engine.cpp +++ b/src/Engine.cpp @@ -39,7 +39,7 @@ bool Engine::intersect(const std::shared_ptr &p_entity) const sf::Vector2f &doodlerPosition = m_p_doodler->getPosition(); const sf::Vector2f &platformSize = p_entity->getSize(); const sf::Vector2f &platformPosition = p_entity->getPosition(); - const sf::Vector2f &offset = sf::Vector2f({doodlerSize.x * 0.25f, 0}); + const sf::Vector2f &offset = sf::Vector2f({doodlerSize.x * 0.35f, 0}); sf::FloatRect rhs(platformPosition - platformSize * 0.5f, platformSize); sf::FloatRect lhs; diff --git a/src/Platform.cpp b/src/Platform.cpp index 01d8b8f..61e819f 100644 --- a/src/Platform.cpp +++ b/src/Platform.cpp @@ -25,7 +25,6 @@ void Platform::setRandomBonusSprites() } if (rand() % 3 > 0) { - m_size = PLATFORM_SPRING_SPRITE_SIZE; m_type = EType::PLATFORM_BONUS_SPRING; m_p_sprite = std::make_unique(Sprite({ Assets::PLATFORM_SPRING.length, @@ -35,7 +34,6 @@ void Platform::setRandomBonusSprites() })); } else { - m_size = PLATFORM_TRAMPOLINE_SPRITE_SIZE; m_type = EType::PLATFORM_BONUS_TRAMPOLINE; m_p_sprite = std::make_unique(Sprite({ Assets::PLATFORM_TRAMPOLINE.length,