1
<!--Dear translator: please NEVER translate the id or anything inside the tags as they are needed in english by the application
2
Thanks a lot in advance.-->
3
1
<chapter id="getting-started">
7
>When you start &kturtle; you will see something like this: <screenshot
5
>Quando você inicia o &kturtle; você irá ver algo semelhante a isto: <screenshot
9
>Here is a screenshot of &kturtle; when you start it for the first time</screeninfo
7
>Aqui está uma imagem do &kturtle; quando o inicia pela primeira vez</screeninfo
12
10
> <imagedata fileref="mainwindow.png" format="PNG"/> </imageobject
15
>&kturtle; Main window</phrase
13
>O &kturtle; recém-iniciado</phrase
19
> In this Getting Started guide we assume that the language of the &turtlelang; commands is English. You can change this language with <menuchoice
17
> Neste guia introdutório, iremos assumir que o idioma dos comandos do &turtlescript; é o inglês. Você poderá alterar o idioma em <menuchoice
19
>Configurações</guimenu
23
>Script Language</guisubmenu
21
>Linguagem dos scripts</guisubmenu
25
>. Be aware that the language you set here for &kturtle; is the one you use to type the &turtlelang; commands, not the language used by &kde; on your computer and used to display the &kturtle; interface and menus.</para>
23
>. Observe que o idioma que você definir para o &kturtle; precisa ser o mesmo idioma que você usa para digitar os comandos do &turtlescript;, não o idioma usado pelo &kde; no seu computador e usado para exibir a interface e os menus do &kturtle;.</para>
27
25
<sect1 id="first-steps">
29
>First steps with &turtlelang;: meet the Turtle!</title>
27
>Primeiros passos no &turtlescript;: apresentamos a tartaruga!</title>
31
>You must have noticed the turtle in the middle of the canvas: you are just about to learn how to control it using commands in the code editor.</para>
29
>Você já deve ter reparado que a tartaruga está no meio da área de desenho: você está agora prestes a aprender como controlá-la, usando os comandos no editor.</para>
33
31
<sect2 id="the-turtle-moves">
35
33
>A tartaruga se move</title>
37
>Let us start by getting the turtle moving. Our turtle can do 3 types of moves, (1) it can go forwards and backwards, (2) it can turn left and right and (3) it can go directly to a position on the screen. Try this for example:</para>
35
>Vamos começar colocando a tartaruga para andar. A nossa tartaruga pode fazer 3 tipos de movimentos: (1) pode mover-se para a frente e para trás, (2) pode virar à esquerda ou à direita e (3) poderá ir diretamente (saltar) para uma posição da tela. Tente isto, por exemplo:</para>
43
Type or copy-paste the code to the code editor and execute it (using <link linkend="file-execute"
41
Digita ou copie e cole o código no editor e execute-o (usando o <link linkend="run-execute"
46
>Executar</guimenuitem
51
>) to see the result.</para>
49
>) para ver o resultado.</para>
54
>When you typed and executed the commands like above in the code editor you might have noticed one or more of the following things:</para>
52
>Quando tiver digitado e executado os comandos acima no editor, você irá reparar em uma ou mais das seguintes coisas:</para>
80
>Maybe you got an error message. This could simply mean two things: you could have made a mistake while copying the commands, or you should still set the correct language for the &turtlelang; commands (you can do that by choosing <menuchoice
78
>Talvez você tenha obtido uma mensagem de erro. Isto poderá simplesmente significar duas coisas: você poderá ter cometido um erro ao copiar os comandos ou você precisa definir o idioma correto para os comandos de &turtlescript; (você pode fazer isto escolhendo <menuchoice
80
>Configurações</guimenu
84
>Script Language</guisubmenu
82
>Linguagem dos scripts</guisubmenu
91
>You will likely understand that <userinput
89
>Você irá da mesma forma perceber que o <userinput
92
90
>forward 100</userinput
93
> commanded the turtle to move forward leaving a line, and that <userinput
91
> instruiu a tartaruga andar em frente, deixando uma linha, e que o <userinput
94
92
>turnleft 90</userinput
95
> commanded the turtle to turn 90 <glossterm linkend="degrees"
93
> instruiu a tartaruga para virar 90 <glossterm linkend="degrees"
100
98
>Por favor, veja as seguintes referências para o manual para uma explicação completa dos novos comandos: <link linkend="forward"
149
Again you can type or copy-paste the code to the code editor or open the <filename
151
> example in the <guimenu
153
> menu and execute it (using <link linkend="file-execute"
147
Mais uma vez, você deverá digitar ou copiar e colar o código para o editor abra o exemplo <filename
151
> e execute-o (usando a opção <link linkend="run-execute"
156
>Executar</guimenuitem
161
>) to see the result. In the next examples you are expected to know the drill.</para>
159
>) para ver o resultado. Nos próximos exemplos, iremos considerar que você já sabe a mecânica do assunto.</para>
164
162
>Você já deve ter notado que este segundo exemplo usa muito mais código. Você deve ter visto também um conjunto de comandos novos. Aqui está uma breve explicação de todos os comandos novos:</para>