summaryrefslogtreecommitdiffstats
path: root/games/hello
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-11-16 03:28:37 (EST)
committer P. J. McDermott <pjm@nac.net>2013-11-16 03:28:37 (EST)
commit8275ea8e9446986510d5319afdd215c996a102ca (patch)
tree135c832a08c7557085d0450702bcf3ccaa7c944e /games/hello
parentb0b53ee8fe5a6078dfaaf196dc3c1ad179f92eae (diff)
downloadoverworld-rpg-8275ea8e9446986510d5319afdd215c996a102ca.zip
overworld-rpg-8275ea8e9446986510d5319afdd215c996a102ca.tar.gz
overworld-rpg-8275ea8e9446986510d5319afdd215c996a102ca.tar.bz2
hello: Initialize a viewport.
Diffstat (limited to 'games/hello')
-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