[kde-edu]: Custom Turtle / Re: Kturtle
rgx at gmx.de
Thu May 28 22:40:38 CEST 2009
On Donnerstag 28 Mai 2009 17:07:22 Mauricio Piacentini wrote:
> settheme "Egyptian"
> setsprite 1, "Pharaoh"
> setsprite 2, "Crocodile"
> setbackground "Sand"
> ... and make them run into each other :)
grand idea! just ideal for kids!
wasn't aware of these possibilities with multiple sprites.
are sprites addressed in a oo way, then - or rather in name spaces?
paralelle scripts (as known from scratch/smalltalk)
would mean to write one script each per sprite.
this could solve the problem on how to adapt scripts to other themes.
if you are in the forest and rabbits hunt after foxes, you just need to
reassign your scripts to the sprites.
parallele scripts might get out of sync if there is no action/event concept.
till now, most use cases for kturtle focussed on the drawn pattern (squares,
stars, fractals), and at more complex drawings, you will need max speed where
you don't see the sprite at all.
chasing foxes or crocodiles is a different - more gameish - approach that
might call for action and event based input. Maybe not too compatible with
More information about the kde-edu