No edit summary |
No edit summary |
||
Line 73: | Line 73: | ||
If the line leaves the canvas it should come back on the other side. I tried to use the line | If the line leaves the canvas it should come back on the other side. I tried to use the line | ||
if ( x > width ) { | if ( x > width ) { | ||
x = 300; | |||
y = 300; | |||
} | } | ||
placed in the void draw, to make the line reappear at the given coordinates, but the agent did only drew a short line and then stopped | placed in the void draw, to make the line reappear at the given coordinates, but the agent did only drew a short line and then stopped |