summaryrefslogtreecommitdiff
path: root/build/test.lua
blob: a41bdd772f9e1fbef97686c67d98b30c1d941c1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
	tpt.drawtext(mousex, mousey, "Oh my god, this is amazing", 255, 255, 255, 255)
	tpt.reset_velocity(10, 10, 20, 20)
	tpt.reset_gravity_field(10, 10, 20, 20)
	tpt.set_pressure(10, 10, 20, 20)
	tpt.set_gravity(75, 45, 1, 1, 8)
	return false
end