[Newbies] Newbie stuck on page 43 of SBE getting syntax error
trying to run SBEGame (Quinto)
smalltalktelevision at gmail.com
Wed Aug 22 18:29:18 UTC 2012
On 12-08-22 2:17 PM, dav0 wrote:
> Hi, Squeak is really cool so far, but I have finally hit a snag I
> can't seem to figure out, and I think it may have something to do with
> the fact that I am attempting to run the SBE on a slightly newer
> version of Squeak maybe?
> I am on page 43 of the SBE book and I get the following syntax error
> when I follow this instruction:
> "In a workspace, type SBEGame new openInWorld and do it ."
> ---------- Syntax Error (Popup window) ------------------
> HandMorph Morphic-Kernel he
> he user wants it and not just aligned with the cliprect"
> (patternForm isForm) ifFalse: [
> "patternForm is a Pattern or Color; just Nothing more expected ->use
> it as a mask for BitBlt"
> ^ aPort fill: aPort clipRect fillColor: patternForm rule: Form over].
> "do it iteratively"
> targetBox _ aPort clipRect.
> patternBox _ patternForm boundingBox.
> savedMap _ aPort colorMap.
> aPort sourceForm: patternForm;
> fillColor: nil;
> combinationRule: Form paint;
> sourceRect: (0 at 0 extent: patternBox extent);
> colorMap: (patternForm colormapIfNeededFor: aPort destForm).
> top _ (targetBox top truncateTo: patternBox height) + offset y.
> left _ (targetBox left truncateTo: patternBox width) + offset x.
> left to: (targetBox right - 1) by: patternBox width do:
> [:x | top to: (targetBox bottom - 1) by: patternBox height do:
> [:y | aPort destOrigin: x at y; copyBits]].
> aPort colorMap: savedMap.
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
When I go to http://www.squeaksource.com/SqueakByExample I see that the
example code for the book is available.
I click on Tools in Squeak and select MonticelloBrowser. I then hit
AddRepository, click HTTP, and then add SqueakByExample after
http://www.squeaksource.com in location:. I accept and close the window.
Click Open. In the new window click SBE-Quinto on the left. Then press
Now open a Workspace. Type:
SBEGame new openInWorld
highlight it and do it. Then you'll see the game.
This was in a 4.4 alpha build number #12186, which is very recent. So,
as far as I cans see, the Quinto game mentioned on pg. 43 of SBE still
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners