mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
Step code registration, just an example at the moment
This commit is contained in:
12
build/test.lua
Normal file
12
build/test.lua
Normal 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
|
Reference in New Issue
Block a user