Debug
This commit is contained in:
parent
86fbf428b2
commit
6ca1ac6f7b
@ -111,19 +111,22 @@ local state_machine = {
|
|||||||
local x, z = calculate_tree_position(T.state.current_row, T.state.current_tree)
|
local x, z = calculate_tree_position(T.state.current_row, T.state.current_tree)
|
||||||
local o
|
local o
|
||||||
|
|
||||||
if T.state.current_tree > 12 then
|
if T.state.current_tree < 3 or T.state.current_tree > 12 then
|
||||||
breakpoint()
|
breakpoint()
|
||||||
end
|
end
|
||||||
|
|
||||||
if T.state.current_row ~= 1 and T.state.current_tree == 1 then
|
if T.state.current_row ~= 1 and T.state.current_tree == 1 then
|
||||||
|
print("new row")
|
||||||
-- we just turned towards a new row and are approaching in positive x direction
|
-- we just turned towards a new row and are approaching in positive x direction
|
||||||
x = x - 1
|
x = x - 1
|
||||||
o = "+x"
|
o = "+x"
|
||||||
elseif T.state.current_row % 2 == 0 then
|
elseif T.state.current_row % 2 == 0 then
|
||||||
|
print("even row")
|
||||||
-- we are in an even row and approaching in positive z direction
|
-- we are in an even row and approaching in positive z direction
|
||||||
z = z - 1
|
z = z - 1
|
||||||
o = "+z"
|
o = "+z"
|
||||||
else
|
else
|
||||||
|
print("odd row")
|
||||||
-- we are approaching in negative z direction
|
-- we are approaching in negative z direction
|
||||||
z = z + 1
|
z = z + 1
|
||||||
o = "-z"
|
o = "-z"
|
||||||
|
Loading…
Reference in New Issue
Block a user