diff options
Diffstat (limited to 'test/01HelloWorld/main.cpp')
-rw-r--r-- | test/01HelloWorld/main.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/01HelloWorld/main.cpp b/test/01HelloWorld/main.cpp index d187849..fa81918 100644 --- a/test/01HelloWorld/main.cpp +++ b/test/01HelloWorld/main.cpp @@ -11,7 +11,7 @@ void onEvent(jin::input::Event* e) if (e->type == EventType::QUIT) game->stop(); } -static float dt = 0; + void onUpdate() { @@ -19,11 +19,7 @@ void onUpdate() void onDraw() { - dt += 16; - if (dt > 1000) - { - dt = 0; - } + } int main(int argc, char* argv[]) |