state = 1 statetime = 0 targetx = x targety = -16 facing = choose(1, -1) draw_battery = choose(0, 1) batid = -1 idle_time = random(120)