pxt-arcade 1.12.14 → 1.12.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1044 @@
1
+ # Collect the Clovers
2
+
3
+ ### ~button /#tutorial:/tutorials/collect-the-clovers
4
+
5
+ Try this tutorial!
6
+
7
+ ### ~
8
+
9
+ ## {Introduction @unplugged}
10
+
11
+ Create a garden game to collect 4-leaf clovers and avoid the bees!
12
+
13
+ ![Collect the Clovers game in action](/static/tutorials/collect-the-clovers/collect-clovers-sim.gif)
14
+
15
+ ## {Step 1 - Set the Background image}
16
+
17
+ From the ``||scene:Scene||`` Toolbox drawer, drag a ``||scene:set background image||``
18
+ block onto the Workspace and drop into the ``||loops:on start||`` block. In the
19
+ ``||scene:set background image||`` block, click on the grey oval to open the image
20
+ editor and draw a garden scene with flowers, trees, and anything else you want in
21
+ the background of your game.
22
+
23
+ ```blocks
24
+ scene.setBackgroundImage(img`
25
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
26
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
27
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
28
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
29
+ 9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
30
+ 9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
31
+ 9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
32
+ 9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
33
+ 9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
34
+ 9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
35
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
36
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
37
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
38
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
39
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
40
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
41
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
42
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
43
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
44
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
45
+ 9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
46
+ 9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
47
+ 9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
48
+ 9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
49
+ 9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
50
+ 9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
51
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
52
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
53
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
54
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
55
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
56
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
57
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
58
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
59
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
60
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
61
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
62
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
63
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
64
+ 9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
65
+ 9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
66
+ 9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
67
+ 9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
68
+ 9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
69
+ 9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
70
+ 9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
71
+ 9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
72
+ 9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
73
+ 9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
74
+ 9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
75
+ 99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
76
+ 9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
77
+ 999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
78
+ 9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
79
+ 9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
80
+ 777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
81
+ 9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
82
+ 99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
83
+ 99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
84
+ 9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
85
+ 9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
86
+ 9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
87
+ 99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
88
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
89
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
90
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
91
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
92
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
93
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
94
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
95
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
96
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
97
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
98
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
99
+ 9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
100
+ 9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
101
+ 99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
102
+ 99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
103
+ 99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
104
+ 99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
105
+ 9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
106
+ 9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
107
+ 9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
108
+ 9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
109
+ 99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
110
+ 99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
111
+ 99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
112
+ 99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
113
+ 97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
114
+ 77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
115
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
116
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
117
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
118
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
119
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
120
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
121
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
122
+ 7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
123
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
124
+ 7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
125
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
126
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
127
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
128
+ 7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
129
+ 777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
130
+ 777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
131
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
132
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
133
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
134
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
135
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
136
+ 777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
137
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
138
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
139
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
140
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
141
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
142
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
143
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
144
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
145
+ `)
146
+ ```
147
+
148
+ ## {Step 2 - Create the Player Character}
149
+
150
+ From the ``||sprites:Sprites||`` Toolbox drawer, drag a ``||variables:set mySprite||``
151
+ block and drop it after the ``||scene:set background image||`` block. Click on the
152
+ grey oval to open the sprite image editor and draw an image for your player, or just select one from the **Gallery**.
153
+
154
+ ```blocks
155
+ scene.setBackgroundImage(img`
156
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
157
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
158
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
159
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
160
+ 9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
161
+ 9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
162
+ 9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
163
+ 9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
164
+ 9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
165
+ 9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
166
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
167
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
168
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
169
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
170
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
171
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
172
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
173
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
174
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
175
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
176
+ 9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
177
+ 9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
178
+ 9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
179
+ 9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
180
+ 9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
181
+ 9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
182
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
183
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
184
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
185
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
186
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
187
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
188
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
189
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
190
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
191
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
192
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
193
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
194
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
195
+ 9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
196
+ 9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
197
+ 9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
198
+ 9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
199
+ 9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
200
+ 9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
201
+ 9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
202
+ 9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
203
+ 9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
204
+ 9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
205
+ 9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
206
+ 99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
207
+ 9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
208
+ 999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
209
+ 9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
210
+ 9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
211
+ 777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
212
+ 9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
213
+ 99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
214
+ 99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
215
+ 9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
216
+ 9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
217
+ 9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
218
+ 99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
219
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
220
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
221
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
222
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
223
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
224
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
225
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
226
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
227
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
228
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
229
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
230
+ 9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
231
+ 9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
232
+ 99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
233
+ 99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
234
+ 99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
235
+ 99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
236
+ 9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
237
+ 9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
238
+ 9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
239
+ 9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
240
+ 99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
241
+ 99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
242
+ 99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
243
+ 99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
244
+ 97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
245
+ 77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
246
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
247
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
248
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
249
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
250
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
251
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
252
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
253
+ 7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
254
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
255
+ 7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
256
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
257
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
258
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
259
+ 7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
260
+ 777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
261
+ 777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
262
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
263
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
264
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
265
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
266
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
267
+ 777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
268
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
269
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
270
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
271
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
272
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
273
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
274
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
275
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
276
+ `)
277
+ let mySprite = sprites.create(img`
278
+ . . . . . f f 4 4 f f . . . . .
279
+ . . . . f 5 4 5 5 4 5 f . . . .
280
+ . . . f e 4 5 5 5 5 4 e f . . .
281
+ . . f b 3 e 4 4 4 4 e 3 b f . .
282
+ . . f 3 3 3 3 3 3 3 3 3 3 f . .
283
+ . f 3 3 e b 3 e e 3 b e 3 3 f .
284
+ . f 3 3 f f e e e e f f 3 3 f .
285
+ . f b b f b f e e f b f b b f .
286
+ . f b b e 1 f 4 4 f 1 e b b f .
287
+ f f b b f 4 4 4 4 4 4 f b b f f
288
+ f b b f f f e e e e f f f b b f
289
+ . f e e f b d d d d b f e e f .
290
+ . . e 4 c d d d d d d c 4 e . .
291
+ . . e f b d b d b d b b f e . .
292
+ . . . f f 1 d 1 d 1 d f f . . .
293
+ . . . . . f f b b f f . . . . .
294
+ `, SpriteKind.Player)
295
+ ```
296
+
297
+ ## {Step 3 - Move the Player Character}
298
+
299
+ Let’s add code to be able to move our player around the screen. From the ``||contorller:Controller||``
300
+ Toolbox drawer, drag a ``||controller:move mySprite||`` block and drop after the
301
+ ``||variables:set mySprite||`` block.
302
+
303
+ ```blocks
304
+ scene.setBackgroundImage(img`
305
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
306
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
307
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
308
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
309
+ 9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
310
+ 9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
311
+ 9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
312
+ 9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
313
+ 9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
314
+ 9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
315
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
316
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
317
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
318
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
319
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
320
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
321
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
322
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
323
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
324
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
325
+ 9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
326
+ 9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
327
+ 9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
328
+ 9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
329
+ 9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
330
+ 9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
331
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
332
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
333
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
334
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
335
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
336
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
337
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
338
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
339
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
340
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
341
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
342
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
343
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
344
+ 9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
345
+ 9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
346
+ 9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
347
+ 9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
348
+ 9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
349
+ 9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
350
+ 9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
351
+ 9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
352
+ 9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
353
+ 9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
354
+ 9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
355
+ 99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
356
+ 9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
357
+ 999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
358
+ 9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
359
+ 9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
360
+ 777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
361
+ 9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
362
+ 99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
363
+ 99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
364
+ 9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
365
+ 9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
366
+ 9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
367
+ 99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
368
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
369
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
370
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
371
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
372
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
373
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
374
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
375
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
376
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
377
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
378
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
379
+ 9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
380
+ 9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
381
+ 99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
382
+ 99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
383
+ 99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
384
+ 99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
385
+ 9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
386
+ 9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
387
+ 9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
388
+ 9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
389
+ 99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
390
+ 99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
391
+ 99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
392
+ 99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
393
+ 97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
394
+ 77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
395
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
396
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
397
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
398
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
399
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
400
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
401
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
402
+ 7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
403
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
404
+ 7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
405
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
406
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
407
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
408
+ 7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
409
+ 777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
410
+ 777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
411
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
412
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
413
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
414
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
415
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
416
+ 777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
417
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
418
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
419
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
420
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
421
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
422
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
423
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
424
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
425
+ `)
426
+ let mySprite = sprites.create(img`
427
+ . . . . . f f 4 4 f f . . . . .
428
+ . . . . f 5 4 5 5 4 5 f . . . .
429
+ . . . f e 4 5 5 5 5 4 e f . . .
430
+ . . f b 3 e 4 4 4 4 e 3 b f . .
431
+ . . f 3 3 3 3 3 3 3 3 3 3 f . .
432
+ . f 3 3 e b 3 e e 3 b e 3 3 f .
433
+ . f 3 3 f f e e e e f f 3 3 f .
434
+ . f b b f b f e e f b f b b f .
435
+ . f b b e 1 f 4 4 f 1 e b b f .
436
+ f f b b f 4 4 4 4 4 4 f b b f f
437
+ f b b f f f e e e e f f f b b f
438
+ . f e e f b d d d d b f e e f .
439
+ . . e 4 c d d d d d d c 4 e . .
440
+ . . e f b d b d b d b b f e . .
441
+ . . . f f 1 d 1 d 1 d f f . . .
442
+ . . . . . f f b b f f . . . . .
443
+ `, SpriteKind.Player)
444
+ controller.moveSprite(mySprite)
445
+ ```
446
+
447
+ ## {Step 4 - Keep the Player in the screen}
448
+
449
+ Notice that we can actually move our player off the screen. Let’s prevent that. From the
450
+ ``||sprites:Sprites||`` Toolbox drawer, drag a
451
+ ``||sprites:set mySprite stay in screen||`` block and drop after the ``||controller:move mySprite||``
452
+ block.
453
+
454
+ ```blocks
455
+ scene.setBackgroundImage(img`
456
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
457
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
458
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
459
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
460
+ 9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
461
+ 9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
462
+ 9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
463
+ 9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
464
+ 9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
465
+ 9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
466
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
467
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
468
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
469
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
470
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
471
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
472
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
473
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
474
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
475
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
476
+ 9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
477
+ 9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
478
+ 9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
479
+ 9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
480
+ 9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
481
+ 9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
482
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
483
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
484
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
485
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
486
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
487
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
488
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
489
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
490
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
491
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
492
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
493
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
494
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
495
+ 9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
496
+ 9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
497
+ 9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
498
+ 9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
499
+ 9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
500
+ 9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
501
+ 9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
502
+ 9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
503
+ 9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
504
+ 9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
505
+ 9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
506
+ 99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
507
+ 9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
508
+ 999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
509
+ 9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
510
+ 9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
511
+ 777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
512
+ 9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
513
+ 99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
514
+ 99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
515
+ 9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
516
+ 9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
517
+ 9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
518
+ 99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
519
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
520
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
521
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
522
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
523
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
524
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
525
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
526
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
527
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
528
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
529
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
530
+ 9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
531
+ 9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
532
+ 99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
533
+ 99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
534
+ 99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
535
+ 99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
536
+ 9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
537
+ 9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
538
+ 9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
539
+ 9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
540
+ 99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
541
+ 99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
542
+ 99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
543
+ 99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
544
+ 97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
545
+ 77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
546
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
547
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
548
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
549
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
550
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
551
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
552
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
553
+ 7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
554
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
555
+ 7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
556
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
557
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
558
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
559
+ 7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
560
+ 777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
561
+ 777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
562
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
563
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
564
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
565
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
566
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
567
+ 777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
568
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
569
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
570
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
571
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
572
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
573
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
574
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
575
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
576
+ `)
577
+ let mySprite = sprites.create(img`
578
+ . . . . . f f 4 4 f f . . . . .
579
+ . . . . f 5 4 5 5 4 5 f . . . .
580
+ . . . f e 4 5 5 5 5 4 e f . . .
581
+ . . f b 3 e 4 4 4 4 e 3 b f . .
582
+ . . f 3 3 3 3 3 3 3 3 3 3 f . .
583
+ . f 3 3 e b 3 e e 3 b e 3 3 f .
584
+ . f 3 3 f f e e e e f f 3 3 f .
585
+ . f b b f b f e e f b f b b f .
586
+ . f b b e 1 f 4 4 f 1 e b b f .
587
+ f f b b f 4 4 4 4 4 4 f b b f f
588
+ f b b f f f e e e e f f f b b f
589
+ . f e e f b d d d d b f e e f .
590
+ . . e 4 c d d d d d d c 4 e . .
591
+ . . e f b d b d b d b b f e . .
592
+ . . . f f 1 d 1 d 1 d f f . . .
593
+ . . . . . f f b b f f . . . . .
594
+ `, SpriteKind.Player)
595
+ controller.moveSprite(mySprite)
596
+ mySprite.setStayInScreen(true)
597
+ ```
598
+
599
+ ## {Step 5 - Initialize the Score and number of Player Lives}
600
+
601
+ Let’s set the score to **0** and give our player **3** lives when the game starts. From the
602
+ ``||info:Info||`` Toolbox drawer, drag both a ``||info:set score||`` block and a ``||info:set life||``
603
+ block, and drop them in after the ``||sprites:set mySprite stay in screen||`` block.
604
+
605
+ ```blocks
606
+ scene.setBackgroundImage(img`
607
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
608
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
609
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
610
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
611
+ 9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
612
+ 9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
613
+ 9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
614
+ 9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
615
+ 9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
616
+ 9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
617
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
618
+ 9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
619
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
620
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
621
+ 9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
622
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
623
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
624
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
625
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
626
+ 9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
627
+ 9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
628
+ 9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
629
+ 9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
630
+ 9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
631
+ 9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
632
+ 9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
633
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
634
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
635
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
636
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
637
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
638
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
639
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
640
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
641
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
642
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
643
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
644
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
645
+ 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
646
+ 9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
647
+ 9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
648
+ 9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
649
+ 9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
650
+ 9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
651
+ 9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
652
+ 9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
653
+ 9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
654
+ 9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
655
+ 9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
656
+ 9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
657
+ 99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
658
+ 9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
659
+ 999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
660
+ 9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
661
+ 9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
662
+ 777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
663
+ 9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
664
+ 99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
665
+ 99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
666
+ 9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
667
+ 9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
668
+ 9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
669
+ 99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
670
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
671
+ 999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
672
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
673
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
674
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
675
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
676
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
677
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
678
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
679
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
680
+ 9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
681
+ 9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
682
+ 9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
683
+ 99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
684
+ 99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
685
+ 99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
686
+ 99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
687
+ 9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
688
+ 9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
689
+ 9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
690
+ 9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
691
+ 99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
692
+ 99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
693
+ 99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
694
+ 99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
695
+ 97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
696
+ 77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
697
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
698
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
699
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
700
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
701
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
702
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
703
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
704
+ 7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
705
+ 7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
706
+ 7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
707
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
708
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
709
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
710
+ 7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
711
+ 777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
712
+ 777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
713
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
714
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
715
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
716
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
717
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
718
+ 777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
719
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
720
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
721
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
722
+ 77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
723
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
724
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
725
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
726
+ 7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
727
+ `)
728
+ let mySprite = sprites.create(img`
729
+ . . . . . f f 4 4 f f . . . . .
730
+ . . . . f 5 4 5 5 4 5 f . . . .
731
+ . . . f e 4 5 5 5 5 4 e f . . .
732
+ . . f b 3 e 4 4 4 4 e 3 b f . .
733
+ . . f 3 3 3 3 3 3 3 3 3 3 f . .
734
+ . f 3 3 e b 3 e e 3 b e 3 3 f .
735
+ . f 3 3 f f e e e e f f 3 3 f .
736
+ . f b b f b f e e f b f b b f .
737
+ . f b b e 1 f 4 4 f 1 e b b f .
738
+ f f b b f 4 4 4 4 4 4 f b b f f
739
+ f b b f f f e e e e f f f b b f
740
+ . f e e f b d d d d b f e e f .
741
+ . . e 4 c d d d d d d c 4 e . .
742
+ . . e f b d b d b d b b f e . .
743
+ . . . f f 1 d 1 d 1 d f f . . .
744
+ . . . . . f f b b f f . . . . .
745
+ `, SpriteKind.Player)
746
+ controller.moveSprite(mySprite)
747
+ mySprite.setStayInScreen(true)
748
+ info.setScore(0)
749
+ info.setLife(3)
750
+ ```
751
+
752
+ ## {Step 6 - Game Update}
753
+
754
+ Every 5 seconds, we want a clover and a bee to appear in our game. From the ``||game:Game||``
755
+ Toolbox drawer, drag an ``||game:on game update on every||`` block onto the Workspace
756
+ (you can place this anywhere). Click on the ``500 ms`` update interval and change it to 5 seconds
757
+ (or 5000 milliseconds).
758
+
759
+ ```blocks
760
+ game.onUpdateInterval(5000, function () {
761
+
762
+ })
763
+ ```
764
+
765
+ ## {Step 7 - Add a Clover Projectile}
766
+
767
+ A Projectile is a Sprite that moves on its own. From the ``||sprites:Sprites||`` Toolbox drawer, drag a
768
+ ``||variables(sprites):set projectile to||`` ``||sprites:projectile from side||`` block and drop into the
769
+ ``||game:on game update on every||`` block. Click on the grey oval to open the sprite
770
+ image editor and draw an image of a 4-leaf Clover.
771
+
772
+ ```blocks
773
+ let projectile: Sprite = null
774
+ game.onUpdateInterval(5000, function () {
775
+ projectile = sprites.createProjectileFromSide(img`
776
+ f f f f f f . . . . f f f f f f
777
+ f 7 7 7 7 f f . . f f 7 7 7 7 f
778
+ f 7 7 7 7 7 f . . f 7 7 7 7 7 f
779
+ f 7 7 7 7 7 f f f f 7 7 7 7 7 f
780
+ f f 7 7 7 7 7 f 7 7 7 7 7 7 f f
781
+ . f f f 7 7 7 7 7 7 7 7 f f f .
782
+ . . . f f 7 7 7 7 7 f f . . . .
783
+ . f f f f 7 7 7 7 7 f f f f f .
784
+ f f 7 7 7 7 7 7 7 7 7 7 7 7 f f
785
+ f 7 7 7 7 7 f f 7 7 7 7 7 7 7 f
786
+ f 7 7 7 7 f f f f 7 7 7 7 7 7 f
787
+ f 7 7 7 f . f 7 f f 7 7 7 7 7 f
788
+ f 7 7 f f . f 7 . f 7 7 7 7 f .
789
+ f f f f . . f 7 7 f f 7 7 f f .
790
+ . . . . . . . f 7 7 . f f f . .
791
+ . . . . . . . f 7 f . . . . . .
792
+ `, 50, 50)
793
+ })
794
+ ```
795
+
796
+ ## {Step 8 - Add Random Movements}
797
+
798
+ Notice how our Clovers are always coming from the top right in a diagonal direction. Let’s add some random
799
+ movements by setting the **X** and **Y** velocity values. From the ``||math:Math||`` Toolbox drawer, drag out 2
800
+ ``||math:pick random||`` blocks onto the workspace. Drop one into the **vx** value and drop the other into
801
+ the **vy** value of the ``||variables(sprites):set projectile to||`` ``||sprites:projectile from side||`` block. In each of the
802
+ ``||math:pick random||`` blocks, change the minimum and maximum values to `-50` and `50`.
803
+
804
+ ```blocks
805
+ let projectile: Sprite = null
806
+ game.onUpdateInterval(5000, function () {
807
+ projectile = sprites.createProjectileFromSide(img`
808
+ f f f f f f . . . . f f f f f f
809
+ f 7 7 7 7 f f . . f f 7 7 7 7 f
810
+ f 7 7 7 7 7 f . . f 7 7 7 7 7 f
811
+ f 7 7 7 7 7 f f f f 7 7 7 7 7 f
812
+ f f 7 7 7 7 7 f 7 7 7 7 7 7 f f
813
+ . f f f 7 7 7 7 7 7 7 7 f f f .
814
+ . . . f f 7 7 7 7 7 f f . . . .
815
+ . f f f f 7 7 7 7 7 f f f f f .
816
+ f f 7 7 7 7 7 7 7 7 7 7 7 7 f f
817
+ f 7 7 7 7 7 f f 7 7 7 7 7 7 7 f
818
+ f 7 7 7 7 f f f f 7 7 7 7 7 7 f
819
+ f 7 7 7 f . f 7 f f 7 7 7 7 7 f
820
+ f 7 7 f f . f 7 . f 7 7 7 7 f .
821
+ f f f f . . f 7 7 f f 7 7 f f .
822
+ . . . . . . . f 7 7 . f f f . .
823
+ . . . . . . . f 7 f . . . . . .
824
+ `, randint(-50, 50), randint(-50, 50))
825
+ })
826
+ ```
827
+
828
+ ## {Step 9 - Add Bee Projectile @fullscreen}
829
+
830
+ Now let’s add a Bee projectile. Right-click on the ``||variables(sprites):set projectile to||`` ``||sprites:projectile from side||``
831
+ clover block that we just created and select **Duplicate**. Drop the copied block after the existing clover
832
+ projectile block, click on the ``||variables(noclick):projectile||`` variable name drop-down, and select **New variable**. Name this
833
+ variable **"bee"**. Then click on the grey oval to open the sprite image editor and draw an image of a bee.
834
+
835
+ ![Create the bee projectile](/static/tutorials/collect-the-clovers/bee-projectile.png)
836
+
837
+ ```blocks
838
+ let projectile: Sprite = null
839
+ let bee: Sprite = null
840
+ game.onUpdateInterval(5000, function () {
841
+ projectile = sprites.createProjectileFromSide(img`
842
+ f f f f f f . . . . f f f f f f
843
+ f 7 7 7 7 f f . . f f 7 7 7 7 f
844
+ f 7 7 7 7 7 f . . f 7 7 7 7 7 f
845
+ f 7 7 7 7 7 f f f f 7 7 7 7 7 f
846
+ f f 7 7 7 7 7 f 7 7 7 7 7 7 f f
847
+ . f f f 7 7 7 7 7 7 7 7 f f f .
848
+ . . . f f 7 7 7 7 7 f f . . . .
849
+ . f f f f 7 7 7 7 7 f f f f f .
850
+ f f 7 7 7 7 7 7 7 7 7 7 7 7 f f
851
+ f 7 7 7 7 7 f f 7 7 7 7 7 7 7 f
852
+ f 7 7 7 7 f f f f 7 7 7 7 7 7 f
853
+ f 7 7 7 f . f 7 f f 7 7 7 7 7 f
854
+ f 7 7 f f . f 7 . f 7 7 7 7 f .
855
+ f f f f . . f 7 7 f f 7 7 f f .
856
+ . . . . . . . f 7 7 . f f f . .
857
+ . . . . . . . f 7 f . . . . . .
858
+ `, randint(-50, 50), randint(-50, 50))
859
+ bee = sprites.createProjectileFromSide(img`
860
+ . . . . . . . f f f f f f . . .
861
+ f . . . . f f f 1 1 1 1 f f . .
862
+ . f . . . f 1 1 1 1 1 1 1 f f .
863
+ . f . . . f 1 1 f 1 f 1 1 1 f .
864
+ f f f . . f 1 1 f 1 f 1 1 1 f .
865
+ 2 f f f f f f f f f f f f f f .
866
+ f f f f f f 5 f 5 f 5 f 5 f f f
867
+ f f f f 5 f 5 f 5 f 5 f 5 f f f
868
+ . . f f 5 f 5 f 5 f 5 f 5 f f 2
869
+ . . . f f f 5 f 5 f 5 f 5 5 f 2
870
+ . . . f f f f f 5 f 5 f 5 5 f f
871
+ . . . f 1 f 1 f f f f f f f f f
872
+ . . . f 1 f 1 f 1 f 1 1 1 f . .
873
+ . . f f 1 f 1 f 1 1 1 1 f . . .
874
+ . . f 1 1 1 1 1 1 1 f f . . . .
875
+ . . f f f f f f f f f . . . . .
876
+ `, randint(-50, 50), randint(-50, 50))
877
+ })
878
+ ```
879
+
880
+ ## {Step 10 - Set the Bee to Enemy}
881
+
882
+ To make the Bee an enemy sprite, we need to set its kind. From the ``||sprites:Sprites||`` Toolbox drawer,
883
+ under the **Overlaps** category, drag a ``||sprites:set sprite kind||`` block and drop after the
884
+ ``||variables:set bee to||`` ``||sprites:projectile||`` block. Click on the ``||variables(noclick):mySprite||`` variable
885
+ drop-down menu and select the **bee** variable. Click on the ``||sprites:Player||`` kind drop-down menu and select
886
+ ``||sprites:Enemy||`` sprite kind.
887
+
888
+ ```blocks
889
+ let projectile: Sprite = null
890
+ let bee: Sprite = null
891
+ game.onUpdateInterval(5000, function () {
892
+ projectile = sprites.createProjectileFromSide(img`
893
+ f f f f f f . . . . f f f f f f
894
+ f 7 7 7 7 f f . . f f 7 7 7 7 f
895
+ f 7 7 7 7 7 f . . f 7 7 7 7 7 f
896
+ f 7 7 7 7 7 f f f f 7 7 7 7 7 f
897
+ f f 7 7 7 7 7 f 7 7 7 7 7 7 f f
898
+ . f f f 7 7 7 7 7 7 7 7 f f f .
899
+ . . . f f 7 7 7 7 7 f f . . . .
900
+ . f f f f 7 7 7 7 7 f f f f f .
901
+ f f 7 7 7 7 7 7 7 7 7 7 7 7 f f
902
+ f 7 7 7 7 7 f f 7 7 7 7 7 7 7 f
903
+ f 7 7 7 7 f f f f 7 7 7 7 7 7 f
904
+ f 7 7 7 f . f 7 f f 7 7 7 7 7 f
905
+ f 7 7 f f . f 7 . f 7 7 7 7 f .
906
+ f f f f . . f 7 7 f f 7 7 f f .
907
+ . . . . . . . f 7 7 . f f f . .
908
+ . . . . . . . f 7 f . . . . . .
909
+ `, randint(-50, 50), randint(-50, 50))
910
+ bee = sprites.createProjectileFromSide(img`
911
+ . . . . . . . f f f f f f . . .
912
+ f . . . . f f f 1 1 1 1 f f . .
913
+ . f . . . f 1 1 1 1 1 1 1 f f .
914
+ . f . . . f 1 1 f 1 f 1 1 1 f .
915
+ f f f . . f 1 1 f 1 f 1 1 1 f .
916
+ 2 f f f f f f f f f f f f f f .
917
+ f f f f f f 5 f 5 f 5 f 5 f f f
918
+ f f f f 5 f 5 f 5 f 5 f 5 f f f
919
+ . . f f 5 f 5 f 5 f 5 f 5 f f 2
920
+ . . . f f f 5 f 5 f 5 f 5 5 f 2
921
+ . . . f f f f f 5 f 5 f 5 5 f f
922
+ . . . f 1 f 1 f f f f f f f f f
923
+ . . . f 1 f 1 f 1 f 1 1 1 f . .
924
+ . . f f 1 f 1 f 1 1 1 1 f . . .
925
+ . . f 1 1 1 1 1 1 1 f f . . . .
926
+ . . f f f f f f f f f . . . . .
927
+ `, randint(-50, 50), randint(-50, 50))
928
+ bee.setKind(SpriteKind.Enemy)
929
+ })
930
+ ```
931
+
932
+ ## {Step 11 - Add Overlaps behavior}
933
+
934
+ Now let’s add code that will increment our score when the ``||sprites:Player||`` collects a clover.
935
+ From the ``||sprites:Sprites||`` Toolbox drawer, in the **Overlaps** section, drag an
936
+ ``||sprites:on sprite overlaps||`` block and drop on the Workspace (you can place this anywhere).
937
+ Click on the last ``||sprites:Player||`` kind drop-down menu and select ``||sprites:Projectile||`` sprite kind.
938
+
939
+ ```blocks
940
+ sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
941
+
942
+ })
943
+ ```
944
+
945
+ ## {Step 12 - Destroy Clover}
946
+
947
+ From the ``||sprites:Sprites||`` Toolbox drawer, drag a ``||sprites:destroy sprite||`` block and drop in the ``||sprites:on sprite overlaps||`` block.
948
+ In the ``||sprites:on sprite overlaps||`` block, drag the ``||sprites:otherSprite||`` local variable (representing the specific overlapping clover) into the ``||sprites:destroy sprite||`` block replacing ``||sprites:mySprite||``.
949
+
950
+ ```blocks
951
+ sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
952
+ otherSprite.destroy()
953
+ })
954
+ ```
955
+
956
+ ## {Step 13 - Add Effect @fullscreen}
957
+
958
+ In the ``||sprites:destroy sprite||`` block, click on the Plus **(+)** icon to expand.
959
+ Click on the ``spray effect`` drop-down menu and select an effect that you want to display when your ``||sprites:Player||`` collects a Clover.
960
+ Click on the ``500 ms`` drop-down menu and select ``100 ms`` for the duration of your effect.
961
+
962
+ ![Choose a destroy effect](/static/tutorials/collect-the-clovers/destroy-effect.png)
963
+
964
+ ```blocks
965
+ sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
966
+ otherSprite.destroy(effects.confetti, 100)
967
+ })
968
+ ```
969
+
970
+ ## {Step 14 - Play a Sound}
971
+
972
+ From the ``||music:Music||`` Toolbox drawer, drag a ``||music:play sound||`` block, and drop after
973
+ the ``||sprites:destroy sprite||`` block.
974
+
975
+ ```blocks
976
+ sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
977
+ otherSprite.destroy(effects.confetti, 100)
978
+ music.baDing.play()
979
+ })
980
+ ```
981
+
982
+ ## {Step 15 - Change Score}
983
+
984
+ From the ``||info:Info||`` Toolbox drawer, drag a ``||info:change score||`` block and drop after
985
+ the ``||music:play sound||`` block.
986
+
987
+ ```blocks
988
+ sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
989
+ otherSprite.destroy(effects.confetti, 100)
990
+ music.baDing.play()
991
+ info.changeScoreBy(1)
992
+ })
993
+ ```
994
+
995
+ ## {Step 16 - Add Overlaps behavior for Bee @fullscreen}
996
+
997
+ Now let’s add behavior for when our ``||sprites:Player||`` runs into a bee.
998
+ Right-click on the the ``||sprites:on sprite overlaps||`` block that we were just working on,
999
+ and select **Duplicate** to make a copy of this chunk of code. Don’t worry if it looks disabled, we’ll fix that.
1000
+ In the copied ``||sprites:on sprite overlaps||`` block, click on the ``||sprites:Projectile||`` kind drop-down
1001
+ menu and select ``||sprites:Enemy||`` for the kind.
1002
+
1003
+ ![Duplicate the overlap event for the enemy](/static/tutorials/collect-the-clovers/overlaps-enemy.png)
1004
+
1005
+ ```blocks
1006
+ sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSprite) {
1007
+ otherSprite.destroy(effects.confetti, 100)
1008
+ music.baDing.play()
1009
+ info.changeScoreBy(1)
1010
+ })
1011
+ ```
1012
+
1013
+ ## {Step 17 - Change effects and sounds}
1014
+
1015
+ In the ``||sprites:destroy||`` enemy block, select a different effect when your player runs into a bee.
1016
+ In the ``||music:play sound||`` block, select a different sound when your player runs into a bee.
1017
+
1018
+ ```blocks
1019
+ sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSprite) {
1020
+ otherSprite.destroy(effects.disintegrate, 100)
1021
+ music.pewPew.play()
1022
+ info.changeScoreBy(1)
1023
+ })
1024
+ ```
1025
+
1026
+ ## {Step 18 - Lose a life}
1027
+
1028
+ Instead of adding a score, let’s change the code to lose a life when our player runs into a bee.
1029
+ Delete the ``||info:change score||`` block.
1030
+ From the ``||info:Info||`` Toolbox drawer, drag a ``||info:change life||`` block and drop after
1031
+ the ``||music:play sound||`` block.
1032
+
1033
+ ```blocks
1034
+ sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSprite) {
1035
+ otherSprite.destroy(effects.disintegrate, 100)
1036
+ music.pewPew.play()
1037
+ info.changeLifeBy(-1)
1038
+ })
1039
+ ```
1040
+
1041
+ ## {Step 19 - Play your Game!}
1042
+
1043
+ That’s it! Now try playing your game in the full screen simulator. You can also try downloading
1044
+ your game to a hardware device, or Share your game with others!