418
edits
No edit summary |
No edit summary |
||
Line 70: | Line 70: | ||
- sometimes the second case applies but this is barely visible, as the agent just moves back the same line | - sometimes the second case applies but this is barely visible, as the agent just moves back the same line | ||
If the line leaves the canvas it should come back on the other side. I tried to use the line | |||
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 |
edits