diff options
author | P. 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) |
commit | 8275ea8e9446986510d5319afdd215c996a102ca (patch) | |
tree | 135c832a08c7557085d0450702bcf3ccaa7c944e | |
parent | b0b53ee8fe5a6078dfaaf196dc3c1ad179f92eae (diff) | |
download | overworld-rpg-8275ea8e9446986510d5319afdd215c996a102ca.zip overworld-rpg-8275ea8e9446986510d5319afdd215c996a102ca.tar.gz overworld-rpg-8275ea8e9446986510d5319afdd215c996a102ca.tar.bz2 |
hello: Initialize a viewport.
-rw-r--r-- | games/hello/init.lua | 5 |
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 |