Closed richelbilderbeek closed 5 years ago
Is your feature request related to a problem? Please describe.
Currently, this is a member function of game:
game
void game::move_tiles(sf::RenderWindow& window, sfml_camera& camera)
All that is needed is the position of the mouse:
if (contains(m_tiles.at(i), sf::Mouse::getPosition(window).x + camera.x, sf::Mouse::getPosition(window).y + camera.y)) {
Describe the solution you'd like
Rewrite the function to only use the coordinats of the mouse:
void game::move_tiles(const double mouse_x, const double mouse_y)
Sure, the call to that function must be changed.
Describe alternatives you've considered
None.
Additional context
Is your feature request related to a problem? Please describe.
Currently, this is a member function of
game
:All that is needed is the position of the mouse:
Describe the solution you'd like
Rewrite the function to only use the coordinats of the mouse:
Sure, the call to that function must be changed.
Describe alternatives you've considered
None.
Additional context
None.