[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu-devel
Subject:    Re: [kde-edu]: Custom Turtle / Re: Kturtle
From:       Niels Slot <nielsslot () gmail ! com>
Date:       2009-05-28 21:14:56
Message-ID: f5f15dc00905281414h1e78afb4p1f2de2e6a6c891f2 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2009/5/28 RalfGesellensetter <rgx@gmx.de>

> 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?
>
> oo:
> pharao.turnright 90
> crocodile.turnleft 20
>
> name spaces:
> talkto crocodile
> turnleft 20
> forward 200
> talkto pharao
> turnright 90


My code from a few months ago allowed the usage of OO-like commands. You
could do something like:

turtle1 = turtle
turtle1.forward 100
turtle2 = turtle
turtle2.backward 100

This would create two additional turtles, and move them both by 100 steps.

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.


>
>
> 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.
>
> but:
> parallele scripts might get out of sync if there is no action/event
> concept.


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.


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


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).

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.


Niels


>
> _______________________________________________
> kde-edu mailing list
> kde-edu@mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu
>

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">2009/5/28 RalfGesellensetter <span dir="ltr">&lt;<a \
href="mailto:rgx@gmx.de">rgx@gmx.de</a>&gt;</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> &gt; settheme &quot;Egyptian&quot;<br>
&gt; setsprite 1, &quot;Pharaoh&quot;<br>
&gt; setsprite 2, &quot;Crocodile&quot;<br>
&gt; setbackground &quot;Sand&quot;<br>
&gt; ... and make them run into each other :)<br>
<br>
</div>grand idea! just ideal for kids!<br>
wasn&#39;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&#39;t continue this because Cies felt that we shouldn&#39;t do \
OO-like things if we couldn&#39;t do OO completely.  And I can agree with him on \
that. Maybe we should look at the &#39;talkto&#39; 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&#39;t want to introduce something that&#39;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&#39;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&#39;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>



_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-edu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic