1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Scripting WIP

This commit is contained in:
Perttu Ahola 2011-11-12 03:21:40 +02:00
parent f145d498a6
commit ea8d6d7abd
7 changed files with 118 additions and 76 deletions

View file

@ -140,7 +140,7 @@ local TNT = {
physical = true,
weight = 5,
boundingbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
visual = "box",
visual = "cube",
textures = {"tnt_top.png","tnt_bottom.png","tnt_side.png","tnt_side.png","tnt_side.png","tnt_side.png"},
-- Initial value for our timer
timer = 0,
@ -148,11 +148,6 @@ local TNT = {
state_variables = {"timer"},
}
-- Called after object is created
function TNT:on_create()
print("TNT:on_create()")
end
-- Called periodically
function TNT:on_step(dtime)
--print("TNT:on_step()")