Re: [etoys-dev] sixteen items for Squeakland 2012 - item 7: Single step debugger
Ricardo Moran <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.squeakland |
|---|---|
| Message-ID | <CALr=5n2k9wadY5HxSPTb7co__U_oEFgjDCtd_mTgMaP4ypi5LQ@mail.gmail.com> |
On Thu, Feb 2, 2012 at 5:40 PM, Ricardo Moran <[email protected]> wrote: > On Wed, Feb 1, 2012 at 7:03 PM, karl ramberg <[email protected]>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 >> > > _______________________________________________ squeakland mailing list [email protected] http://lists.squeakland.org/mailman/listinfo/squeakland