RFNXVfwQQPS4J

Constellation

Source: licencja: CC 0.

Gwiazdozbiór

You will learn
  • how to create scripts using simple algorithms,

  • to create own blocks,

  • to modify blocks to expand their functions,

  • to use random numbers in algorithms.

RtzHbR7NgJJ201
wymowa w języku angielskim: ...

On a piece of paper, draw a few stars with a pencil. Draw each star in such a way so as to draw it without lifting the pencil up. Describe the consecutive moves you made.

Your task is to build a script in which the invisibleinvisibleinvisible sprite will draw stars.

Task 1
RA4QGJm9pSpSz
wymowa w języku angielskim: ...

Write the star's drawing algorithm. Use the stars you have drawn before.  
Think about the angle of the lines.

R1FuSp2MxIHrJ
Ilustracja interaktywna przedstawia trzy różne. Dla każdej z gwiazd podany jest również kąt, pod którym należy zakrzywić prostą rysując w programie Scratch daną gwiazdę. Pierwsza gwiazda jest pięcioramienna, zaznaczony kąt to 144 stopni. Druga gwiazda jest ośmioramienna, zaznaczony kąt to 135 stopni. Trzecia gwiazda jest sześcioramienna, zaznaczony kąt to 60 stopni. Na ilustracji widoczne są numery, a na nich podpisy. 1. five-points star {audio}, 2. eight-points star {audio}, 3. six-arms star {audio}
Various types of stars
Source: GroMar, licencja: CC BY 3.0.
Task 2
Rkd3LbG5EopP31
nagranie abstraktu

Write a script in which the sprite draws a five‑pointed starfive‑pointed starfive‑pointed star on a white background. The star should start in the middlemiddlemiddle of the stage. Commands containing the star's algorithm should be placed in the newly created block.

Task 3
R1A4hKOk1UMWq1
wymowa w języku angielskim: ...

Modify the script drawing a star so that its initial location is random and 5 stars appear after running the script.

Task 4
R1TcST61MWEzR1
wymowa w języku angielskim: ...

Add a random selectionrandom selectionrandom selection of the arm lengthlengthlength of the star to the script. Choose a matching backdrop.

RZie3aonX6d1i
How to add an option to own block
Source: GroMar, licencja: CC BY 3.0.

Exercises

R15j3HeO0eORl
Exercise 1
Wersja alternatywna ćwiczenia: Which sentence is true? Możliwe odpowiedzi: 1. By creating a new block, you can add a parameter to it., 2. Text, numeric or logical parameters can be added to the blocks., 3. You can change the colour of the pen, but not its thickness., 4. Before restarting the line drawing script, clean the screen.
Exercise 2

Create an algorithm and a corresponding script drawing stars whose arms are in the form of straight lines coming from one point. Number of arms is optional.

Exercise 3

Explain in English how to create own blocks and add variables in the Scratch programming language.

Exercise 4
R19dNXHmrqCQf
Wersja alternatywna ćwiczenia: Indicate which pairs of expressions or words are translated correctly. Możliwe odpowiedzi: 1. losowe dobieranie - random selection, 2. współrzędne startowe - start coordinates, 3. długość - length, 4. gwiazda pięcioramienna - five-pointed star, 5. środek - invisible, 6. niewidoczny - command
zadanie
Source: GroMar, licencja: CC BY 3.0.
RtgkzRo7GZFLq1
Interaktywna gra, polegająca na łączeniu wyrazów w pary w ciągu jednej minuty. Czas zaczyna upływać wraz z rozpoczęciem gry. Jeden ruch to odkrywanie najpierw jednej potem drugiej karty z wyrazem. Każdy wyraz jest odczytywany. Kolejny ruch to odkrywanie trzeciej i czwartej karty. W ten sposób odsłuchasz wszystkie wyrazy. Nawigacja z poziomu klawiatury za pomocą strzałek, odsłuchiwanie wyrazów enterem lub spacją. Znajdź wszystkie pary wyrazów.
Source: Zespół autorski Politechniki Łódzkiej, licencja: CC BY 3.0.

Glossary

command
command

polecenie

RjncVhVx1BA7L1
wymowa w języku angielskim: command
five‑pointed star
five‑pointed star

gwiazda pięcioramienna

RLqw2uV96Q6RI1
wymowa w języku angielskim: five‑pointed star
invisible
invisible

niewidoczny

Ro4ItGwROvaPT1
wymowa w języku angielskim: invisible
length
length

długość

R1GW5ykbvFiSO1
wymowa w języku angielskim: length
middle
middle

środek

RWP3AMTZkygWJ1
wymowa w języku angielskim: middle
random selection
random selection

losowy wybór

RxBZitU9ZuuQr1
wymowa w języku angielskim: random selection
start coordinates
start coordinates

współrzędne startowe

RD1QkkuZawn9u1
wymowa w języku angielskim: start coordinates

Keywords

five‑pointed starfive‑pointed starfive‑pointed star

lengthlengthlength

random selectionrandom selectionrandom selection

start coordinatesstart coordinatesstart coordinates