This commit is contained in:
Kai Vogelgesang 2020-07-08 12:37:20 +02:00
parent 343e393780
commit 4f07fa660b

View File

@ -243,6 +243,12 @@ end
-- main loop
while true do
print("---------------")
print("State: " .. T.state.current_state)
print("Pos: " .. T.state.x .. "," .. T.state.z .. "(" .. T.getorientation() .. ")")
T.state.current_state = state_machine[T.state.current_state]()
write("Enter to step ")
repeat e, d = os.pullEvent() until e == "key" and d == 257
print("(OK)")
end