aboutsummaryrefslogtreecommitdiff
path: root/test/01HelloWorld/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/01HelloWorld/main.cpp')
-rw-r--r--test/01HelloWorld/main.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/01HelloWorld/main.cpp b/test/01HelloWorld/main.cpp
index 77d5096..6d76c8a 100644
--- a/test/01HelloWorld/main.cpp
+++ b/test/01HelloWorld/main.cpp
@@ -11,15 +11,20 @@ void onEvent(jin::input::Event* e)
if (e->type == EventType::QUIT)
game->stop();
}
-
-void onUpdate(float dt)
+static float dt = 0;
+void onUpdate()
{
}
void onDraw()
{
-
+ dt += 16;
+ if (dt > 1000)
+ {
+ std::cout << "a";
+ dt = 0;
+ }
}
int main(int argc, char* argv[])