[kde-edu]: Custom Turtle / Re: Kturtle

RalfGesellensetter 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?

pharao.turnright 90
crocodile.turnleft 20

name spaces:
talkto crocodile
turnleft 20
forward 200
talkto pharao
turnright 90

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 
logo concepts?

More information about the kde-edu mailing list