Adjust speed and remove unnecessary window.setFramerateLimit call

This commit is contained in:
Elnu 2022-03-05 13:14:36 -08:00
parent ba88df070a
commit 9cb6f35ec1

View file

@ -148,7 +148,6 @@ class Block {
int main()
{
sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris");
window.setFramerateLimit(8);
Block block;
@ -174,7 +173,7 @@ int main()
window.clear();
// Fast forward
window.setFramerateLimit(sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Down) ? 16 : 8);
window.setFramerateLimit(sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Down) ? 8 : 6);
// Rotation
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Up)) {