Each of you likes to play a game sometimes, maybe it's worth trying to create one on your own? To start with a simple one, but over time, if you gain experience, you will certainly be able to get involved in a more advanced projects. You have to start the process of game creation with little steps.
Let's start with the Scratch environmentscratch environment Scratch environment.
What is Scratch? It is a programming environment that allows you to create simple applications using sounds, allowing you to draw and choose colors, etc. It is available to everyone, because you can use it completely free of charge and both install it on a computer and work on the network. Scratch should work on every computer regardless of the operating system installed. If you want to share your work with others, it will be possible from any place that has access to the Internet, because projects made using this application can be shared on the Internet. Using Scratch does not require prior knowledge of any programming languageprogramming languageprogramming language. All programs written in Scratch are built using blocks. Blocks have different colors depending on which group of commands they belong to. All commands are printed on blocks, in Polish, English or any other language depending on the language chosen.
After selecting the Create icon on the screen you will see the following image. To see the functions of each element, click on the numbers in the figure below.
RQ5fq2w6zGHVb
Ilustracja interaktywna przedstawia zrzut ekranu ze strony www.scratch.mit.edu. Po lewej stronie na górze znajduje się scena skryptów. Na tej scenie znajduje się postać kota. Jest to duszek wykorzystany w tym środowisku. Po prawej stronie od obszaru sceny skryptów znajduje się blok poleceń, z którego wybieramy klocki funkcyjne. Dalej po prawo znajduje się duży, szary obszar, na którym buduje się program z klocków. Na końcu po prawej stronie jest blok z podstawowymi projektami zaproponowanymi przez producenta środowiska Scratch. Poniżej sceny znajdują są ikony zmiany tła oraz zmiany duszka. Nad obszarem ze sceną skryptu od lewej strony znajdują się przyciski: niebieski kwadrat, służący do włączania tryby pełnoekranowego, ikona globusa, po kliknięciu której można ustawić język pracy w środowisku, zielona flaga stanowiąca przycisk start oraz czerwone kółko pełniące funkcje przycisku stop. Nad blokiem poleceń znajduje się panel zakładek. Na ilustracji widoczne są numery, a na nich podpisy. 1. stage of scripts {audio}, 2. functional blocks {audio}, 3. script area {audio}, 4. preliminary projects for learning the program {audio}, 5. background change buttons {audio}, 6. adding sprites (characters) {audio}, 7. full-screen mode {audio}, 8. language {audio}, 9. start {audio}, 10. stop {audio}, 11. tabs {audio}
Ilustracja interaktywna przedstawia zrzut ekranu ze strony www.scratch.mit.edu. Po lewej stronie na górze znajduje się scena skryptów. Na tej scenie znajduje się postać kota. Jest to duszek wykorzystany w tym środowisku. Po prawej stronie od obszaru sceny skryptów znajduje się blok poleceń, z którego wybieramy klocki funkcyjne. Dalej po prawo znajduje się duży, szary obszar, na którym buduje się program z klocków. Na końcu po prawej stronie jest blok z podstawowymi projektami zaproponowanymi przez producenta środowiska Scratch. Poniżej sceny znajdują są ikony zmiany tła oraz zmiany duszka. Nad obszarem ze sceną skryptu od lewej strony znajdują się przyciski: niebieski kwadrat, służący do włączania tryby pełnoekranowego, ikona globusa, po kliknięciu której można ustawić język pracy w środowisku, zielona flaga stanowiąca przycisk start oraz czerwone kółko pełniące funkcje przycisku stop. Nad blokiem poleceń znajduje się panel zakładek. Na ilustracji widoczne są numery, a na nich podpisy. 1. stage of scripts {audio}, 2. functional blocks {audio}, 3. script area {audio}, 4. preliminary projects for learning the program {audio}, 5. background change buttons {audio}, 6. adding sprites (characters) {audio}, 7. full-screen mode {audio}, 8. language {audio}, 9. start {audio}, 10. stop {audio}, 11. tabs {audio}
Pay attention to the shape of the blocks. They look like a puzzle. They match others.
To create your own design you have to choose: the spritespritesprite (character), the stagestagestage and give the sprite some instructions. Commands from which your program will consist of should be moved from the block area to the program building area. First select the commandcommandcommand you are interested in by clicking on the appropriate block, then drag it to the program building area and release the mouse buttonbuttonbutton. If it turns out that too many sprites are on the stagestagestage, you can remove the unwanted sprite by selecting the icon of scissors on the top of the program, and then clicking on the sprite to be removed.
Check also what Scratch's producers have prepared for you. Choose elements from the initial projects to learn the program. And now it's time to use knowledge in practice.
Make a simple animation, e.g. a butterfly which follows the mouse cursor. To do this, choose a butterfly from the spritespritesprite block. Then from the „Events” tab select the „When clicked (green flag)” buttonbuttonbutton, then from the „Control” tab select „Always” and now from the „Motion” tab select „point in the direction” and then „Move … steps „. Put these commands inside the „Always” commandcommandcommand. Name the butterfly. To do this, click on the letter and that is on the butterfly icon on the left at the bottom of the screen.
Now just click on the green flag and .... well done, you have just completed your first project.
Save your project. To do this, create your account using the log in icon in the upper right corner of the screen. Remember to use the network securely and set strong passwords. By saving your project you can share it with anybody who is connected to the Internet.
The Scratch program allows you to write programs without any programming languageprogramming languageprogramming language. Thanks to the use of functional blocks, creating your own design is not difficult. Projects created in Scratch can be stored on your own computer or on the network.
Exercises
Exercise 1
RDJ0SFS2In29Q
Wersja alternatywna ćwiczenia: Determine which sentences are true. Możliwe odpowiedzi: 1. It is necessary to install the program on the computer while working in the Scratch environment., 2. The commands in Scratch typed in from the keyboard., 3. Project made in Scratch be viewed on another computer., 4. Programming in Scratch require the knowledge of any programming language., 5. Ready-made commands available in Scratch., 6. The blocks available in Scratch always match one another.
Wersja alternatywna ćwiczenia: Determine which sentences are true. Możliwe odpowiedzi: 1. It is necessary to install the program on the computer while working in the Scratch environment., 2. The commands in Scratch typed in from the keyboard., 3. Project made in Scratch be viewed on another computer., 4. Programming in Scratch require the knowledge of any programming language., 5. Ready-made commands available in Scratch., 6. The blocks available in Scratch always match one another.
Determine which sentences are true.
It is necessary to install the program on the computer while working in the Scratch environment.
The commands in Scratch typed in from the keyboard.
Project made in Scratch be viewed on another computer.
Programming in Scratch require the knowledge of any programming language.
Ready-made commands available in Scratch.
The blocks available in Scratch always match one another.
zadanie
Source: GroMar, licencja: CC BY 3.0.
Exercise 2
In the Scratch environment, make a project of a diver in the aquarium with fish, write his or her name, and then create a command in which the letters in his or her name will change their color every now and then.
Exercise 3
Describe in English what the Scratch panel looks like.
Exercise 4
R1W1SXz8FVtch
Wersja alternatywna ćwiczenia: Indicate which pairs of expressions or words are translated correctly. Możliwe odpowiedzi: 1. środowisko scratch - scratch environment , 2. duszek - sprite, 3. funkcja - function, 4. polecenie - programming language, 5. język programowania - command
Wersja alternatywna ćwiczenia: Indicate which pairs of expressions or words are translated correctly. Możliwe odpowiedzi: 1. środowisko scratch - scratch environment , 2. duszek - sprite, 3. funkcja - function, 4. polecenie - programming language, 5. język programowania - command
Indicate which pairs of expressions or words are translated correctly.
środowisko scratch - scratch environment
duszek - sprite
funkcja - function
polecenie - programming language
język programowania - command
zadanie
Source: GroMar, licencja: CC BY 3.0.
RFBdxctcNCPSO1
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.
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.
Match Polish terms with their English equivalents.
sprite
programming language
język programowania
funkcja
function
scratch environment
polecenie
command
środowisko scratch
duszek
Source: Zespół autorski Politechniki Łódzkiej, licencja: CC BY 3.0.