summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-02-14 17:57:23 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-02-14 17:57:23 -0500
commit297c093d398e7d6e5fcc5dc6ba1056ede25abf6f (patch)
tree1e55ab169d6de9a6f11b4d3b6efbe9f1b4d6ab6f /src/main.cpp
parentde5a458cb037bb8e1e80c849c5e6525f9413b43a (diff)
downloadtherapy-297c093d398e7d6e5fcc5dc6ba1056ede25abf6f.tar.gz
therapy-297c093d398e7d6e5fcc5dc6ba1056ede25abf6f.tar.bz2
therapy-297c093d398e7d6e5fcc5dc6ba1056ede25abf6f.zip
Did some lighting and added room name
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index a2743d1..7c1a21f 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -86,6 +86,7 @@ int main()
86 86
87 while (!quit) 87 while (!quit)
88 { 88 {
89 /*
89 double currentTime = glfwGetTime(); 90 double currentTime = glfwGetTime();
90 nbFrames++; 91 nbFrames++;
91 if ( currentTime - lastTime >= 1.0 ){ // If last prinf() was more than 1 sec ago 92 if ( currentTime - lastTime >= 1.0 ){ // If last prinf() was more than 1 sec ago
@@ -93,7 +94,7 @@ int main()
93 printf("%f ms/frame\n", 1000.0/double(nbFrames)); 94 printf("%f ms/frame\n", 1000.0/double(nbFrames));
94 nbFrames = 0; 95 nbFrames = 0;
95 lastTime += 1.0; 96 lastTime += 1.0;
96 } 97 }*/
97 98
98 if (holding_left && player->x_vel >= 0) 99 if (holding_left && player->x_vel >= 0)
99 { 100 {