[squeakland] [etoys-dev] sixteen items for Squeakland 2012 - item 7: Single step debugger

Ricardo Moran richi.moran at gmail.com
Thu Feb 2 15:41:38 EST 2012


On Thu, Feb 2, 2012 at 5:40 PM, Ricardo Moran <richi.moran at gmail.com> wrote:

> On Wed, Feb 1, 2012 at 7:03 PM, karl ramberg <karlramberg at gmail.com>wrote:
>
>>
>> I tested one edge case that we have to look at.
>> The World viewer has a value 'batch pentrails'.
>>
>> When that is true, the script just pit the player at the last position
>> in the script.
>>
>> The stepper goes trough each line, so the result differs.
>>
>> So a script:
>>
>> car forward: 50
>> car turn: 90
>> car forward: 50
>> car turn: 90
>> car forward: 50
>> car turn: 90
>> car forward: 50
>> car turn: 90
>>
>> You will get different results for single stepping and other execution
>> of that method.
>>
>
> Good catch! I never used the batch pen trails option, I didn't even know
> about its existence!
>
> I have no clue how to fix it, though. Any suggestion?
>

Maybe, if #bathPenTrails is on, save the player's position before the first
tile, move it always with pen up and only draw after the last tile?


>
> Richo
>
>
>>
>> Karl
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20120202/16e773b0/attachment.html>


More information about the squeakland mailing list