Grapher with lines fixed

mznznlt - Custom level - from Android
PlayEdit3 players liked this.Log in to like this level.

moving the read(0) lone below the loop that shifts values seemed to get rid of the error, and x=0 before a loop helps as well, you were drawing the graph more and more to the right after each lua tick, which quickly got it out of the screen. Hope it helps

Views: 466 Downloads: 83 Unique objects: 2 Total objects: 3


Discuss this level

Log in to comment on this level.
  • mznznlt: @principiafreak300: it just saves a line in init(), and code looks tidier
  • mznznlt: @principiafreak300: doesnt matter if you do x=0 in the init function and safter the loop, or before the loop, the result is the same. The loop on each run of the step() will start with x=0
  • principiafreak300: X=0 after the loop is also important

LEVEL ID: 20141