Commit 9903803
committed
🧪 lab: Add lab 5 - games (#449)
This lab is the transition from the foundation to the abstraction course.
It introduces the concept of events. We also show to program simple games
as this is something students have been asking for.
We've moved the unused bounce sample from the "if statement" lab.
The challenges are:
- 👋 Welcome
- 🎪 Events
- 🪙 Coin Toss
- 🎨 Paint
- 🎲 Guess
- 🟢 On animate
- 🏓 Bounce
- 👾 Game
Preparatory tweaks
- playsite: Improve `key` event handler
- editor: Revert auto-correct and auto-capitalize
- make: Rework conformance target
This merges the following commits:
* make: Rework conformance target
* Revert "frontend: Update editor textarea attributes"
* playsite: Improve `key` event handler
* labsite: Center single images in notes
* lab: Add lab 5 - games
Makefile | 7 +-
frontend/lab/css/overrides.css | 1 +
frontend/lab/samples/games/animate.evy | 7 +
frontend/lab/samples/games/animate.htmlf | 28 ++++
frontend/lab/samples/games/animate.md | 37 +++++
frontend/lab/samples/games/bounce.evy | 10 ++
frontend/lab/samples/games/bounce.htmlf | 48 ++++++
frontend/lab/samples/games/bounce.md | 60 +++++++
frontend/lab/samples/games/coin.evy | 10 ++
frontend/lab/samples/games/coin.htmlf | 45 ++++++
frontend/lab/samples/games/coin.md | 52 ++++++
frontend/lab/samples/games/events.evy | 7 +
frontend/lab/samples/games/events.htmlf | 40 +++++
frontend/lab/samples/games/events.md | 46 ++++++
frontend/lab/samples/games/game.evy | 13 ++
frontend/lab/samples/games/game.htmlf | 152 ++++++++++++++++++
frontend/lab/samples/games/game.md | 146 +++++++++++++++++
frontend/lab/samples/games/guess.evy | 13 ++
frontend/lab/samples/games/guess.htmlf | 61 +++++++
frontend/lab/samples/games/guess.md | 71 ++++++++
frontend/lab/samples/games/img/drawing.gif | Bin 0 -> 14410 bytes
frontend/lab/samples/games/paint.evy | 7 +
frontend/lab/samples/games/paint.htmlf | 71 ++++++++
frontend/lab/samples/games/paint.md | 76 +++++++++
frontend/lab/samples/games/welcome-games.evy | 65 ++++++++
.../lab/samples/games/welcome-games.htmlf | 12 ++
frontend/lab/samples/games/welcome-games.md | 13 ++
frontend/lab/samples/ifs/bounce-show.evy | 18 ---
frontend/lab/samples/ifs/bounce-show.htmlf | 10 --
frontend/lab/samples/ifs/bounce-show.md | 12 --
frontend/lab/samples/ifs/bounce.evy | 1 -
frontend/lab/samples/ifs/bounce.htmlf | 37 -----
frontend/lab/samples/ifs/bounce.md | 40 -----
frontend/lab/samples/samples.json | 25 +--
frontend/module/editor.js | 4 +-
frontend/play/index.js | 2 +-
36 files changed, 1113 insertions(+), 134 deletions(-)
Pull-request: #449File tree
36 files changed
+1113
-134
lines changed- frontend
- lab
- css
- samples
- games
- img
- ifs
- module
- play
36 files changed
+1113
-134
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 148 | + | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments