-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
24 changed files
with
583 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
hero_image: images/banner.png | ||
listed: true | ||
ingredient: false | ||
copyedit: false | ||
title: Bitwa na śnieżki | ||
description: Stwórz grę, w której będziesz rzucać śnieżkami w cel | ||
version: 4 | ||
last_tested: 2018-04-11 | ||
steps: | ||
- title: Wprowadzenie | ||
- title: Lepienie śnieżek | ||
- title: Rzucanie śnieżką | ||
completion: | ||
- engaged | ||
- title: Realistyczny ruch | ||
- title: Cel | ||
completion: | ||
- internal | ||
- title: 'Wyzwanie: udoskonal swoją grę!' | ||
challenge: true | ||
- title: Co dalej? |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cel śnieżki | ||
|
||
normalny | ||
|
||
moc | ||
|
||
rzucać | ||
|
||
śnieżka | ||
|
||
Masz mnie! | ||
|
||
nowy strzał |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- no-print --- | ||
|
||
To jest **Scratch 3** wersja projektu. Istnieje również [wersja tego projektu dla Scratch 2](https://projects.raspberrypi.org/pl-PL/projects/snowball-fight-scratch2). | ||
|
||
--- /no-print --- | ||
|
||
## Wprowadzenie | ||
|
||
W tym projekcie stworzysz grę, w której będziesz rzucać śnieżkami w cel. | ||
|
||
### Co stworzysz | ||
|
||
--- no-print --- | ||
|
||
Użyj kursora myszy, aby ustawić kąt śnieżki i przytrzymaj przycisk myszy, aby wybrać moc kuli śnieżnej. | ||
|
||
<div class="scratch-preview"> | ||
<iframe allowtransparency="true" width="485" height="402" src="https://scratch.mit.edu/projects/embed/302159331/?autostart=true" frameborder="0" scrolling="no"></iframe> | ||
<img src="images/snow-final.png"> | ||
</div> | ||
|
||
--- /no-print --- | ||
|
||
--- print-only --- | ||
|
||
![skończony projekt](images/snow-final.png) | ||
|
||
--- /print-only --- | ||
|
||
--- collapse --- | ||
--- | ||
title: Czego będziesz potrzebować | ||
--- | ||
|
||
### Sprzęt | ||
|
||
+ Komputer, na którym można uruchomić Scratch | ||
|
||
### Oprogramowanie | ||
|
||
+ Scratch 3 ([online](https://rpf.io/scratchon){:target="_blank"} lub [offline](https://rpf.io/scratchoff){:target="_blank"}) | ||
|
||
### Pliki do pobrania | ||
|
||
Projekt początkowy można znaleźć [tutaj](https://rpf.io/p/pl-PL/snowball-fight-go){:target="_blank"}. | ||
|
||
--- /collapse --- | ||
|
||
--- collapse --- | ||
--- | ||
title: Czego się nauczysz | ||
--- | ||
|
||
- Jak animować ikony | ||
- Jak reagować na kliknięcia myszą | ||
- jak korzystać z transmisji | ||
|
||
--- /collapse --- | ||
|
||
--- collapse --- | ||
--- | ||
title: Dodatkowe informacje dla nauczycieli | ||
--- | ||
|
||
--- no-print --- | ||
|
||
Jeśli chcesz wydrukować ten projekt, użyj [wersji do druku](https://projects.raspberrypi.org/pl-PL/projects/snowball-fight/print){:target="_blank"}. | ||
|
||
--- /no-print --- | ||
|
||
Możesz znaleźć [ukończoną wersję projektu tutaj](https://rpf.io/p/pl-PL/snowball-fight-get){:target="_blank"}. | ||
|
||
--- /collapse --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
## Lepienie śnieżek | ||
|
||
Zróbmy śnieżną kulę, którą możesz rzucać po całej scenie. | ||
|
||
--- task --- | ||
|
||
Otwórz projekt startowy Scratch. | ||
|
||
**Online**: otwórz [projekt początkowy](https://rpf.io/snowball-fight-on){:target="_blank"}. | ||
|
||
Jeśli masz konto Scratch, możesz wykonać kopię klikając **Remiks**. | ||
|
||
**Offline**: otwórz [startowy projekt](https://rpf.io/p/pl-PL/snowball-fight-go){:target="_blank"} w edytorze offline. | ||
|
||
Jeśli musisz pobrać i zainstalować edytor Scratcha, znajdziesz go na stronie [rpf.io/scratchoff](https://rpf.io/scratchoff){:target="_blank"}. | ||
|
||
W projekcie startowym powinno być widoczne puste tło i ikona "śnieżka". | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Ikona "Śnieżka" zawiera 2 kostiumy, normalny kostium i taki, który pokazuje kierunek, w który skierowana jest śnieżka. | ||
|
||
![kostiumy śnieżki](images/snow-costume.png) | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Po pierwsze, pozwólmy graczowi zmienić kąt śnieżki. Dodaj ten kod do ikon ze śnieżkami: | ||
|
||
![ikona śnieżki](images/snowball-sprite.png) | ||
|
||
```blocks3 | ||
when flag clicked | ||
wait (0.5) seconds | ||
go to x:(-200) y:(-130) | ||
point in direction (90) | ||
switch costume to (cel śnieżki v) | ||
repeat until <mouse down?> | ||
point towards (wskaźnik myszy v) | ||
end | ||
``` | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Przetestuj swój projekt, klikając zieloną flagę. Zobacz, że śnieżka podąża za myszą, dopóki nie naciśniesz przycisku myszy. | ||
|
||
![ikona Śnieżka celująca śnieżną kulą we wskazane myszką miejsce](images/snow-mouse.png) | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Pozwólmy również graczowi zdecydować o tym, jak potężna powinna być rzucona śnieżka. Utwórz nową zmienną o nazwie `moc`{:class="block3variables"}. | ||
|
||
[[[generic-scratch3-add-variable]]] | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Przeciągnij twój nowy wyświetlacz zmiennych na dół sceny, w pobliżu śnieżki. Kliknij prawym przyciskiem myszy na ekranie zmiennej i kliknij przycisk 'suwak'. | ||
|
||
![zmienna zmieniona na suwak](images/snow-slider.png) | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Dodaj kod, aby ustawić nową zmienną `moc`{:class="block3variables"} na 0 po kliknięciu flagi. | ||
|
||
![ikona śnieżki](images/snowball-sprite.png) | ||
|
||
```blocks3 | ||
when flag clicked | ||
+ set [moc v] to (0) | ||
``` | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Teraz, gdy masz zmienną `moc`{:class="block3variables"}, możesz później zwiększyć moc śnieżki _po_ wybraniu kierunku za pomocą tego kodu: | ||
|
||
![ikona śnieżki](images/snowball-sprite.png) | ||
|
||
```blocks3 | ||
repeat until <mouse down?> | ||
point towards (wskaźnik myszy v) | ||
end | ||
+repeat until < not <mouse down?> > | ||
point towards (wskaźnik myszy v) | ||
change [moc v] by (1) | ||
wait (0.1) seconds | ||
end | ||
``` | ||
|
||
Ten kod oznacza, że musisz _przytrzymać przycisk myszy_ po wybraniu kierunku, aby wybrać siłę śnieżki. | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Przetestuj swoją śnieżkę, aby zobaczyć, czy możesz wybrać jej kąt i moc. | ||
|
||
![zmienna moc na 35 obok celu śnieżki](images/snow-test.png) | ||
|
||
--- /task --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
## Rzucanie śnieżką | ||
|
||
--- task --- | ||
|
||
Dodaj blok na _końcu_ swojego kodu śnieżki, by `nadać komunikat`{:class="block3control"}, że rzucasz śnieżką: | ||
|
||
![ikona śnieżki](images/snowball-sprite.png) | ||
|
||
```blocks3 | ||
when flag clicked | ||
set [moc v] to (0) | ||
wait (0.5) seconds | ||
go to x:(-200) y:(-130) | ||
point in direction (90) | ||
switch costume to (cel śnieżki v) | ||
repeat until <mouse down?> | ||
point towards (wskaźnik myszy v) | ||
end | ||
repeat until < not <mouse down?> > | ||
point towards (wskaźnik myszy v) | ||
change [moc v] by (1) | ||
wait (0.1) seconds | ||
end | ||
+ broadcast (rzucać v) and wait | ||
``` | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Dodaj ten kod do śnieżki, aby poruszać się, aż do krawędzi sceny: | ||
|
||
![ikona śnieżki](images/snowball-sprite.png) | ||
|
||
```blocks3 | ||
when I receive [rzucać v] | ||
switch costume to (śnieżka v) | ||
repeat until < touching [krawędź v]? > | ||
move (moc) steps | ||
end | ||
hide | ||
``` | ||
|
||
Kod wykorzystuje zmienną `moc`{:class="block3variables"} aby decydować o tym, jak szybko się poruszać. | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Teraz, gdy ukrywasz śnieżkę, gdy dotknie krawędzi, dodaj kod aby `pokazac`{:class="block3looks"} śnieżkę po kliknięciu flagi, _zaraz po tym_ jak śnieżka przełączy się na kostium `cel śnieżki`{:class="block3looks"}. | ||
|
||
![ikona śnieżki](images/snowball-sprite.png) | ||
|
||
```blocks3 | ||
when flag clicked | ||
set [moc v] to (0) | ||
wait (0.5) seconds | ||
go to x:(-200) y:(-130) | ||
point in direction (90) | ||
switch costume to (cel śnieżki v) | ||
+show | ||
repeat until <mouse down?> | ||
point towards (wskaźnik myszy v) | ||
end | ||
repeat until < not <mouse down?> > | ||
point towards (wskaźnik myszy v) | ||
change [moc v] by (1) | ||
wait (0.1) seconds | ||
end | ||
broadcast (rzucać v) and wait | ||
``` | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Przetestuj swoją śnieżkę kilka razy. Czy porusza się pod różnymi kątami i z różnymi prędkościami? | ||
|
||
--- /task --- | ||
|
||
--- task --- | ||
|
||
Jeśli chcesz być w stanie rzucić śnieżką wiele razy, po prostu dodaj `zawsze`{:class="block3control"} wokół twojej śnieżki `kiedy kliknięnto flagę`{:class="block3events"} Kod. | ||
|
||
![ikona śnieżki](images/snowball-sprite.png) | ||
|
||
```blocks3 | ||
when flag clicked | ||
+forever | ||
set [moc v] to (0) | ||
wait (0.5) seconds | ||
go to x:(-200) y:(-130) | ||
point in direction (90) | ||
switch costume to (cel śnieżki v) | ||
show | ||
repeat until <mouse down?> | ||
point towards (wskaźnik myszy v) | ||
end | ||
repeat until < not <mouse down?> > | ||
point towards (wskaźnik myszy v) | ||
change [moc v] by (1) | ||
wait (0.1) seconds | ||
end | ||
broadcast (rzucać v) and wait | ||
end | ||
``` | ||
|
||
--- /task --- |
Oops, something went wrong.