Commit 8f1c307a authored by Paul Tvete's avatar Paul Tvete
Browse files

Upgrade to 30 frames per second

Like all classic games, gameplay is tied to the framerate.
parent 4eefc618
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ void CannonField::shoot()
    shoot_ang  = ang;
    shoot_f    = f;
    shooting   = true;
    timerId = startTimer( 50 );
    timerId = startTimer( 33 );
}

void  CannonField::newTarget()
@@ -228,7 +228,7 @@ QRect CannonField::shotRect() const
{
    const double gravity = 4;

    double time      = timerCount / 4.0;
    double time      = timerCount / 5.0;
    double velocity  = shoot_f/0.7;
    double radians   = shoot_ang*3.14159265/180;