[etoys-dev] Re: [squeakland] A new Die morph artifact

Ricardo Moran richi.moran at gmail.com
Thu May 27 16:10:26 EDT 2010

Oh, sorry. I didn't know the two projects were related and that you were the
original developer :)
And I also didn't know about the Dice example in the SqueakByExample book
(even though I have a copy of it in my library!)


On Thu, May 27, 2010 at 4:29 PM, Hilaire Fernandes <
hilaire.fernandes at edu.ge.ch> wrote:

> Ricardo Moran a écrit :
>  Nice looking dice! But you should look at:
>> http://map.squeak.org/package/9eaa631a-f0e1-4816-8615-ab8c3ae7615c/autoversion/1
>> .
> Hello Ricardo,
> Hum, I wrote the dice example many years ago (2006) for a Linux magazine
> article, then I complete it yesterday with Etoys tiles. I don't know or I
> forgot about the code you point me but looking at some key methods, I am
> sure it is inspired from my initial example. Even the spelling is wrong as
> it was in my initial example (Dice instead of Die) until Oscar told me when
> writing the SqueakByExample Morph chapter, largely inspired from my article.
> Regarding the bug you mentioned, it is fixed along other bugs related to
> rotated morph.
> Thanks a lot for your feedback.
> Hilaire
>  Also, your DieMorph has a bug (well, it's actually an Etoys bug): try to
>> run a script that uses a slot and it will throw an error. The easy way to
>> fix it is changing #additionsToViewerCategoryDie like this:
>> additionsToViewerCategoryDie
>> ^ #(die (
>> (slot number 'The number of dot printed in the die face' Number readWrite
>> Player *get*DieValue Player *set*DieValue:)
>> (slot dieColor  'The color of the die' Color readWrite Player
>> *get*DieColor Player *set*DieColor:)
>> (slot dotColor  'The color of the dots' Color readWrite Player
>> *get*DotColor Player *set*DotColor:)
>> ))
>> You should also change the Player methods, of course.
>> Cheers
>> Richo
>> On Thu, May 27, 2010 at 1:58 PM, Hilaire Fernandes <
>> hilaire.fernandes at edu.ge.ch <mailto:hilaire.fernandes at edu.ge.ch>> wrote:
>>    I have added a new Die Morph artifact in the LearningArtifacts
>>    repository (http://www.squeaksource.com/LearningArtifacts)
>>    Once load, instantiate one Die with the execution of 'DieMorph new
>>    openInWorld' from a Workspace. It is Etoys scriptable with specific
>>    tiles.
>>    So far the artifacts does not show up in the Object Catalog, I will
>>    fix that. Idea about category titles to use in the Object Catalog is
>>    welcome.
>>    Hilaire
>>    _______________________________________________
>>    squeakland mailing list
>>    squeakland at squeakland.org <mailto:squeakland at squeakland.org>
>>    http://lists.squeakland.org/mailman/listinfo/squeakland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakland.org/pipermail/etoys-dev/attachments/20100527/e75a035d/attachment.html

More information about the etoys-dev mailing list