Skip to content

Commit

Permalink
slowed down intro
Browse files Browse the repository at this point in the history
  • Loading branch information
lostjared committed Feb 24, 2020
1 parent 50f4b77 commit 1a68008
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mutatris/mutatris3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void idle() {
dt = passed;


if(MX_i::PollController(MX_i::B_2)) rot[0] += 0.1 * dt;
if(MX_i::PollController(MX_i::B_2)) rot[0] += 0.1f * dt;
else if(MX_i::PollController(MX_i::B_3)) rot[0] -= 0.1f * dt;
else if(MX_i::PollController(MX_i::B_4)) rot[1] += 0.1f * dt;
else if(MX_i::PollController(MX_i::B_5)) rot[1] -= 0.1f * dt;
Expand Down Expand Up @@ -461,12 +461,12 @@ void renderIntro() {

if(intro_zPos < -10) {
glRotatef(intro_yRot, 0, 1, 0);
intro_yRot += 0.1f * dt;
intro_yRot += 0.07f * dt;
if(intro_yRot > 360) {
cur_screen = GAME;
} else if(intro_yRot > 180) {
static float xRot = 0.0f;
xRot += 0.1f * dt;
xRot += 0.07f * dt;
glRotatef(xRot, 1, 0, 0);
}
} else intro_zPos -= 0.01f * dt;
Expand Down

0 comments on commit 1a68008

Please sign in to comment.