Step code registration, just an example at the moment

This commit is contained in:
Simon Robertshaw
2011-05-30 20:11:34 +01:00
parent d5f1a4cfd0
commit b0659e3dd1
3 changed files with 25 additions and 1 deletions

12
build/test.lua Normal file
View File

@@ -0,0 +1,12 @@
tpt.register_step("do_step")
numberthing = 0
increment = 2
function do_step()
numberthing = numberthing + increment;
if numberthing >= 400 then
increment = -2
elseif numberthing < 4 then
increment = 2
end
tpt.drawtext(numberthing, 50, "Oh my god, this is amazing", 255, 255, 255, 255)
end