[ENH] Stepping Morph and Dia Morph

Torsten.Bergmann at phaidros.com Torsten.Bergmann at phaidros.com
Thu Oct 21 13:16:58 UTC 1999


------_=_NextPart_000_01BF1BC6.90116530
Content-Type: text/plain;
	charset="iso-8859-1"


This little change set includes two new morphs.

SteppingMorph
=============
SteppingMorph is morph with common facilities for morphic
stepping. You can start/stop the stepping and set the step time by menu.
If the morph is not running you can also test it step by step via menu.
(It's easy if you keep the menu-morph open)

Subclasses should override #nextStep do perform stepping actions.
Maybe someone can reorganize the class BackgroundMorph to be a subclass
of this morph or to have the same capabilities.
(At this time the stepping time of BackgroundMorph is hardcoded)

DiaMorph
========
This little morphs hides and displays his submorphs in a sequence.
It should demonstrate how to use the SteppingMorph.
Maybe this morph is also usefull for creating cyclic sprite animations
for squeak games.
You have to embedd two or more submorphs to get the visual
effect. Try to change the step time by selecting "change step time"
from the morphs menu. 
See DiaMorph(class) for examples.
 

Bye
Torsten


------_=_NextPart_000_01BF1BC6.90116530
Content-Type: text/plain; name="Stepping Morphs.21Oct315pm.cs"
 ; x-mac-type="65417070"
 ; x-mac-creator="43534F6D"
Content-Disposition: attachment; filename="Stepping Morphs.21Oct315pm.cs"
Content-Transfer-Encoding: imap_stub

0,396,2,5367,0,

------_=_NextPart_000_01BF1BC6.90116530--





More information about the Squeak-dev mailing list