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

Ricardo Moran richi.moran at gmail.com
Thu May 27 13:52:43 EDT 2010

Nice looking dice! But you should look at:

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:

^ #(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.


On Thu, May 27, 2010 at 1:58 PM, Hilaire Fernandes <
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
> http://lists.squeakland.org/mailman/listinfo/squeakland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakland.org/pipermail/etoys-dev/attachments/20100527/0556d000/attachment-0001.html

More information about the etoys-dev mailing list