Commit 2e79aff0 authored by danb's avatar danb
Browse files

Last minute changes

parent d3197925
......@@ -181,7 +181,7 @@ int main()
SDL_Event e;
const float max_speed = 0.01f;
const float max_speed = 0.03f;
const float accel = 0.05f;
const float angular_speed = 0.5f;
const float off_track_thresh = 1.1f * .07; //track_width
......@@ -303,7 +303,7 @@ int main()
}
else if ((t - ft) > 2.f)
{
printf("You made %d rounds!\n", rounds);
SDL_Log("You made %d rounds!\n", rounds);
// After two seconds of falling reset the game
pos = 0.f;
pos_orth = 0.f;
......@@ -318,8 +318,6 @@ int main()
uindex = glGetUniformLocation(frag_prog, "t");
glUniform1f(uindex, t);
printf("%dx%d\n", width, height);
// The resolution
uindex = glGetUniformLocation(frag_prog, "r");
glUniform2f(uindex, width, height);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment