Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 273 Bytes
class RandomWander2 < Code
each_frame do
randomize! if @to_x.nil?
if @to_x == me.x && @to_y == me.y
randomize!
end
end
def randomize!
@to_x = rand(500)
@to_y = rand(500)
goto @to_x, @to_y
puts "P2 GOTO #{@to_x}, #{@to_y}"
end
end
Jump to Line
Something went wrong with that request. Please try again.