float velocity_y = 0.01f;
float modificator = 0.1f;
void update(/*float deltaTime*/) {
if (velocity_y == 0) return;
ball_sprite.move({ 0, velocity_y });
velocity_y+=modificator;
std::cout << velocity_y << std::endl;
//collision with the border
if (ball_sprite.getPosition().y >= 700) {
modificator *= 2;
velocity_y *= -1;
}
}