Update globalstep.lua
This commit is contained in:
parent
8b81961a39
commit
4042180743
@ -66,6 +66,8 @@ minetest.register_globalstep(function(dtime)
|
|||||||
|
|
||||||
local remove_tail = true
|
local remove_tail = true
|
||||||
|
|
||||||
|
local died --used to determine whether to elim player
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- if players are alive, move the worms (add to the length, subtract from the tail)
|
-- if players are alive, move the worms (add to the length, subtract from the tail)
|
||||||
@ -81,7 +83,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
|
|
||||||
local look_dir = wormball.get_look_dir(arena,player) --in globals file; returns a string, one of: px, nx, pz, nz for the approximation of player look direction
|
local look_dir = wormball.get_look_dir(arena,player) --in globals file; returns a string, one of: px, nx, pz, nz for the approximation of player look direction
|
||||||
|
|
||||||
local died = false --used to determine whether to elim player
|
died = false --used to determine whether to elim player
|
||||||
|
|
||||||
--get player direction from current input, first check up or down, then look direction
|
--get player direction from current input, first check up or down, then look direction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user