[Etoys] simplifying basic category

subbukk subbukk at gmail.com
Sun Oct 28 10:34:38 EDT 2007


The current slots/commands in basic category is part turtle geometry and part 
cartesian geometry. I recast the viewer to include only turtle geometry 
primitives in basic to make etoys easier for children who are yet to develop 
intuitive understanding of co-ordinates. Why present two systems when one is 

I would have liked to make "pen down false/true" to "pen down/up" but I am yet 
to figure out a simple way to get Boolean slots to support arbitrary 
strings/symbols instead of just true/false values.

throwing it open for discussions,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: recastbasic.jpg
Type: image/jpeg
Size: 18885 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/etoys/attachments/20071028/570a0fed/attachment.jpg 
-------------- next part --------------
'From etoys2.2 of 3 October 2007 [latest update: #1715] on 28 October 2007 at 6:43:26 pm'!
"Change Set:		recastBasic
Date:			28 October 2007
Author:			kks

Simplified #basic category to use only turtle commands."!

!Morph class methodsFor: 'scripting' stamp: 'kks 10/28/2007 17:35'!
	"Answer viewer additions for the 'basic' category"

			(slot colorSees	'whether the given color sees the given color' Boolean readOnly	Player color:sees:	unused	unused)
			(slot penDown 'whether the pen is currently down' Boolean readWrite Player getPenDown Player setPenDown:)
			(command clearOwnersPenTrails 'clear all pen trails in my containing playfield')
			(command forward: 'Moves the object forward in the direction it is heading' Number)
			(command turn: 'Change the heading of the object by the specified amount' Number)
			(command beep: 'Make the specified sound' Sound)
! !

More information about the Etoys mailing list