Trying to grok tile programming in morphic
Ranjan Bagchi
ranjan.bagchi at frotz.com
Mon Dec 15 05:08:17 UTC 2003
Hi --
So I'm trying to avoid coding in squeak and do some tile scripting:
hopefully someone's got a bit of time for some hand-holding.
I went through the counter example
(http://minnow.cc.gatech.edu/squeak/1827). Very impressive, really -- I
like how well the instance-based stuff is implemented.
But here's what I'm trying to do -- I realize I can do it with a lot of
coding, etc, but I'm trying to grok the style where it's more painting
and visual assembly.
* Create a button that
* on mouseup plays a midi song
* displays a sketchmorph. (unhide it, perhaps)
I can get all the pieces up (load a score, load a .jpg, size and edit
them appropriately), but in terms of scripting them to work as I'd like
(which seems pretty basic), I'm failing.
When I look at the MIDIScorePlayer, I can create a tile representing it
(I think), but it won't allow me to drop it into the button script.
Same with the sketchmorph. I can add the MIDIScorePlayer as an instance
variable, but then the script needs to be written out: ^scorePlayer
costume scorePlayer play. Yuck.
So if anyone's got time to let me know the specific steps, I'd be much
obliged.
Thanks!
Ranjan
More information about the Squeak-dev
mailing list
|