<br><br><div class="gmail_quote">2009/5/28 RalfGesellensetter <span dir="ltr"><<a href="mailto:rgx@gmx.de">rgx@gmx.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Donnerstag 28 Mai 2009 17:07:22 Mauricio Piacentini wrote:<br>
> settheme "Egyptian"<br>
> setsprite 1, "Pharaoh"<br>
> setsprite 2, "Crocodile"<br>
> setbackground "Sand"<br>
> ... and make them run into each other :)<br>
<br>
</div>grand idea! just ideal for kids!<br>
wasn't aware of these possibilities with multiple sprites.<br>
<br>
are sprites addressed in a oo way, then - or rather in name spaces?<br>
<br>
oo:<br>
pharao.turnright 90<br>
crocodile.turnleft 20<br>
<br>
name spaces:<br>
talkto crocodile<br>
turnleft 20<br>
forward 200<br>
talkto pharao<br>
turnright 90</blockquote><div><br>My code from a few months ago allowed the usage of OO-like commands. You could do something like:<br><br>turtle1 = turtle<br>turtle1.forward 100<br>turtle2 = turtle<br>turtle2.backward 100<br>
<br>This would create two additional turtles, and move them both by 100 steps. <br><br>We didn't continue this because Cies felt that we shouldn't do OO-like things if we couldn't do OO completely. And I can agree with him on that. Maybe we should look at the 'talkto' syntax.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
paralelle scripts (as known from scratch/smalltalk)<br>
would mean to write one script each per sprite.<br>
<br>
this could solve the problem on how to adapt scripts to other themes.<br>
if you are in the forest and rabbits hunt after foxes, you just need to<br>
reassign your scripts to the sprites.<br>
<br>
but:<br>
parallele scripts might get out of sync if there is no action/event concept.</blockquote><div><br>Parallel scripts seem to complicated to me. KTurtle is meant as a start before learning a real programming language like Java, Ruby or Python. I don't want to introduce something that's not going to be in the first few lessons of the real programming language.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
till now, most use cases for kturtle focussed on the drawn pattern (squares,<br>
stars, fractals), and at more complex drawings, you will need max speed where<br>
you don't see the sprite at all.<br>
<br>
chasing foxes or crocodiles is a different - more gameish - approach that<br>
might call for action and event based input. Maybe not too compatible with<br>
logo concepts?</blockquote><div><br>In the Logo variant I used as a child I could actually do action based things. I could for example have a turtle running around the screen, controlled with the arrow keys (this was in the last chapter of the book though).<br>
<br>I'm not sure we want to be able to do such things in KTurtle. Having an animation of two turtles chasing each other is fine. But if where adding interaction and stuff, then we might have to reconsider what KTurtle is meant for.<br>
<br><br>Niels<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
kde-edu mailing list<br>
<a href="mailto:kde-edu@mail.kde.org">kde-edu@mail.kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-edu" target="_blank">https://mail.kde.org/mailman/listinfo/kde-edu</a><br>
</div></div></blockquote></div><br>