[3965] | 1 | |
---|
| 2 | programRoute = true |
---|
[3966] | 3 | height = 80 |
---|
[3965] | 4 | |
---|
| 5 | function tick(timestep) |
---|
| 6 | |
---|
| 7 | if programRoute then |
---|
| 8 | floorguy:runTo( 800.634338, height, -340.454163) |
---|
| 9 | floorguy:runTo( 800.965149, height, -317.040039) |
---|
| 10 | floorguy:runTo( 801.330627, height, -291.156891) |
---|
| 11 | floorguy:runTo( 801.922913, height, -274.193085) |
---|
| 12 | floorguy:runTo( 802.959045, height, -258.950653) |
---|
| 13 | floorguy:runTo( 803.812805, height, -246.390198) |
---|
| 14 | floorguy:runTo( 804.034180, height, -232.661407) |
---|
| 15 | floorguy:runTo( 816.056702, height, 407.114502) |
---|
| 16 | floorguy:runTo( 817.066284, height, 439.783112) |
---|
| 17 | floorguy:runTo( 817.734314, height, 461.401306) |
---|
| 18 | floorguy:runTo( 818.361816, height, 481.702789) |
---|
| 19 | floorguy:runTo( 820.161621, height, 540.826538) |
---|
| 20 | floorguy:runTo( 820.825195, height, 579.028748) |
---|
| 21 | floorguy:runTo( 821.907410, height, 641.302673) |
---|
| 22 | floorguy:runTo( 823.706055, height, 744.863098) |
---|
| 23 | floorguy:runTo( 820.552490, height, 761.699585) |
---|
| 24 | floorguy:runTo( 809.810425, height, 771.055420) |
---|
| 25 | floorguy:runTo( 794.455383, height, 779.180725) |
---|
| 26 | floorguy:runTo( 779.520386, height, 773.730957) |
---|
| 27 | floorguy:runTo( 769.395630, height, 762.138306) |
---|
| 28 | floorguy:runTo( 761.172668, height, 749.739258) |
---|
| 29 | floorguy:runTo( 756.049500, height, 736.094116) |
---|
| 30 | floorguy:runTo( 755.904297, height, 648.224854) |
---|
| 31 | floorguy:runTo( 742.674744, height, -243.343140) |
---|
| 32 | floorguy:runTo( 742.312805, height, -273.083893) |
---|
| 33 | floorguy:runTo( 741.927856, height, -304.735474) |
---|
| 34 | floorguy:runTo( 741.548035, height, -335.971069) |
---|
| 35 | floorguy:runTo( 741.181824, height, -366.028503) |
---|
| 36 | programRoute = false |
---|
| 37 | end |
---|
| 38 | |
---|
| 39 | if floorguy:finalGoalReached() then |
---|
| 40 | programRoute = true |
---|
| 41 | end |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | return false |
---|
| 45 | end |
---|