RFNXVfwQQPS4J

Sprite gets on the bus

Source: licencja: CC 0.

Duszek wsiada do autobusu

You will learn
  • to apply iterative instructions,

  • to apply conditional instructions,

  • to create new variables.

ReIlQIDWlrCMq1
nagranie abstraktu

Imagine a situation in which a bus comes to the bus stopbus stopbus stop and passengers get on it. Create a simple storystorystory about the sprite that gets on the bus. Consider what actionsactionsactions the sprite should perform. Select the appropriate backdrop and modify it according to your idea.

Rqe1tExljVq1k1
nagranie abstraktu

To make sure that your work on writing a script runs smoothly, think the consecutive steps over. Before you start writing a script, think about what the sprite at the bus stopbus stopbus stop should do, and what should be included in the script belonging to the bus‑sprite. It's always worth writing your ideas on a piece of paper or in a text file.

Task 1
RUVDZGFdd9JXN1
nagranie abstraktu

Use the selected backdrop. Place the bus at the starting position. After driving the entire route, the bus will disappear from the view.

Task 2
R1OcMk8copQUw1
nagranie abstraktu

Place the sprite at the bus stop. When the bus comes to the bus stop, it has to stop. The sprite does not get on the bus yet.

RZNGqW2It14mi1
Source: GroMar, licencja: CC BY 3.0.
RAN2TK1NqtllP
Conditional instruction
Source: GroMar, licencja: CC BY 3.0.
Task 3
RguuCM1AVIoxJ1
nagranie abstraktu

The sprite gets on the bus. The bus leaves.

R11degeaHqfDm1
nagranie abstraktu

While watching a slideshow, you can learn one of the possible solutions.

REUwvQeqOAvcf1
Pokaz slajdów – Duszek wsiada do autobusu. Instrukcja obsługi z poziomu klawiatury: 1. Uruchomienie aplikacji - ENTER, 2. Na każdym ze slajdów czytany jest automatycznie tekst alternatywny po polsku, 3. Przy pierwszym uruchomieniu na pierwszym slajdzie, czytanie tekstu po angielsku - TAB, 4. Przejście między slajdami: do następnego slajdu - TAB, do poprzedniego slajdu - TAB + SHIFT, 5. Przejście do czytania napisu po angielsku - strzałka w górę + strzałka w dół (czyta tekst po angielsku widoczny na slajdzie).
Source: GroMar, licencja: CC BY 3.0.
Task 4
R1N3vq5ENHrsb1
nagranie abstraktu

Your sprite can already get on the bus. But not every bus is suitable for him. Create a script in which several buses come, but the sprite will only get on the one that has the right number.

REoGdhUM7NY7u1
nagranie abstraktu

Use of conditional instructions helps to solve a lot of problems.

Exercises

Exercise 1
RDPUSOD6UIPWx
Wersja alternatywna ćwiczenia: Determine which sentences are true. Możliwe odpowiedzi: 1. The sprite recognizes other sprite by means of the sensor touching ..., 2. Spirits can send each other messages., 3. Blocks starting with a word “if” are conditional statements., 4. Comments added to the script interfere with its operation.
zadanie
Source: Gromar.
Exercise 2

Modify your script so that other vehicles also take part in traffic.

Exercise 3

Describe in English how the spirits can send information to each other.

Exercise 4
R1KSVVuqrLUf6
Wersja alternatywna ćwiczenia: Indicate which pairs of expressions or words are translated correctly. Możliwe odpowiedzi: 1. instrukcja warunkowa - conditional instruction, 2. warunek - condition, 3. przystanek autobusowy - bus stop, 4. czujnik - sensor , 5. działanie - story
zadanie
Source: GroMar, licencja: CC BY 3.0.
RifQDsmTWwjrv1
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

actions
actions

działanie

RJaHvkqqyKbuI1
wymowa w języku angielskim: actions
bus stop
bus stop

przystanek autobusowy

R1UbsIfIEwC3b1
wymowa w języku angielskim: bus stop
condition
condition

warunek

R1JJKBVtilp4d1
wymowa w języku angielskim: condition
conditional instruction
conditional instruction

instrukcja warunkowa

R1nanrowUk0fG1
wymowa w języku angielskim: conditional instruction
sensor
sensor

czujnik

Rs90kNu7wp3Hx1
wymowa w języku angielskim: sensor
story
story

opowiadanie

R1EfOBOSUzu9X1
wymowa w języku angielskim: story

Keywords

bus stopbus stopbus stop

conditionconditioncondition

conditional instructionconditional instructionconditional instruction

sensorsensorsensor

storystorystory