summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/hello/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/games/hello/init.lua b/games/hello/init.lua
index e813b61..de7e35b 100644
--- a/games/hello/init.lua
+++ b/games/hello/init.lua
@@ -1,3 +1,8 @@
+require "posix"
+
function on_init()
print("Hello, world!");
+ init_viewport(320, 240);
+ posix.sleep(2);
+ print("Goodbye, world!");
end