forked from microsoft/pxt-arcade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hour-of-code-2020.html
327 lines (282 loc) · 17.2 KB
/
hour-of-code-2020.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<!DOCTYPE html>
<html
lang="en-US"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml"
>
<head>
<meta charset="UTF-8" />
<title>Microsoft MakeCode Arcade Hour of Code 2020</title>
<meta
name="Description"
content="Join us in celebrating this year's Computer Science Education Week by playing, designing and coding your very own retro arcade games!"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=yes"
/>
<link rel="manifest" href="/blb/sim.webmanifest">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Microsoft MakeCode Arcade Hour of Code 2020">
<meta name="apple-mobile-web-app-status-bar-style" content="translucent-black">
<meta name="format-detection" content="telephone=no">
<meta name="application-name" content="Microsoft MakeCode Arcade Hour of Code 2020">
<meta name="msapplication-TileColor" content="#ff7b22">
<meta name="msapplication-TileImage" content="/static/hour-of-code/2020/card.png">
<meta name="msapplication-config" content="none"/>
<meta name="theme-color" content="#ff7b22">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="MSMakeCode" />
<meta name="twitter:title" content="Microsoft MakeCode Arcade Hour of Code 2020" />
<meta name="twitter:description" content="Join us in celebrating this year's Computer Science Education Week by playing, designing and coding your very own retro arcade games!" />
<meta name="twitter:image" content="/static/hour-of-code/2020/card.png" />
<meta property="og:title" content="Microsoft MakeCode Arcade Hour of Code 2020" />
<meta property="og:site_name" content="Microsoft MakeCode Arcade Hour of Code 2020" />
<meta property="og:description" content="Join us in celebrating this year's Computer Science Education Week by playing, designing and coding your very own retro arcade games!" />
<meta property="og:image" content="/static/hour-of-code/2020/card.png" />
<link rel="apple-touch-icon" href="/static/hour-of-code/2020/card.png">
<link rel="icon" type="image/png" href="/static/hour-of-code/2020/card.png">
<link rel="shortcut icon" href="/static/hour-of-code/2020/card.png">
<!-- @include scripthead.html -->
<link rel="stylesheet" href="/static/hour-of-code/2020/styles.css" />
<style>
body {
background-image: url('/static/hour-of-code/2020/pixel-background-secondary.png');
}
#main .action-button {
border-image-source: url('/static/hour-of-code/2020/shadowed-button-frame.png');
}
#main .panel-primary {
border-image-source: url('/static/hour-of-code/2020/shadowed-primary-frame.png');
}
#main .panel-secondary {
border-image-source: url('/static/hour-of-code/2020/shadowed-aside-frame.png');
}
#main header {
background-image: url('/static/hour-of-code/2020/pixel-background-primary.png');
}
</style>
<script>
function handleOnLoad() {
document
.querySelector('#openhome')
.addEventListener('click', function () {
window.pxtTickEvent('hourofcode2020.home', { src: "main" });
});
document
.querySelector("#playbutton")
.addEventListener('click', function () {
window.pxtTickEvent('hourofcode2020.play');
});
document
.querySelector("#designbutton")
.addEventListener('click', function () {
window.pxtTickEvent('hourofcode2020.design');
});
document
.querySelector("#codebutton")
.addEventListener('click', function () {
window.pxtTickEvent('hourofcode2020.code');
});
var langPicker = document.querySelector('#langpicker');
if (langPicker) {
langPicker.remove();
}
}
</script>
</head>
<body id="root" class="root background-color-secondary" onload="handleOnLoad()">
<div id="main" role="presentation">
<nav>
<div class="arcade-logo" id="openhome">
<a href="/">
<img src="/static/legacy-logo.svg" alt="MakeCode Arcade" />
</a>
</div>
<div class="microsoft-logo">
<a
href="https://www.microsoft.com/en-us/makecode"
target="_blank"
>
<img src="/static/Micorsoft_logo_rgb_W-white_D.png" alt="Microsoft" />
</a>
</div>
</nav>
<header class='background-color-primary'>
<div class="container">
<div class="left-content-block">
<h3 class='body-font'>Microsoft MakeCode Arcade</h3>
<h1 class="display-font"><span class='first-line'>Hour</span><span class='small-heading'>of</span><span class='last-line'>Code<em class='trademark'>™</em></span></h1>
<h4 class="display-font">2020</h4>
</div>
<div class="right-content-block">
<img src="/static/hour-of-code/2020/simulator.gif" alt="MakeCode Arcade Simulator" />
</div>
</div>
</header>
<section class='activities container'>
<div class="content-row">
<a href="https://arcade.makecode.com/--skillmap#shark" target="_blank" class="content-column one-third panel-secondary">
<h2 class="display-font panel-primary">Code</h2>
<div class="hero">
<img src="/static/hour-of-code/2020/shark-attack.png" alt="Shark Attack" />
</div>
<div class="text-content-block">
Follow along the step-by-step tutorial to code your
own Shark Attack game, then share with friends to
play!
</div>
<div id="codebutton" class="action-button">
Launch
</div>
</a>
<a href="https://arcade.makecode.com/#tutorial:/tutorials/design-the-clovers" target="_blank" class="content-column one-third panel-secondary">
<h2 class="display-font panel-primary">Design</h2>
<div class="hero">
<img src="/static/hour-of-code/2020/design.png" alt="Design the Clovers" />
</div>
<div class="text-content-block">
Get creative! Draw your own game characters using
this simple game template.
</div>
<div id="designbutton" class="action-button">Launch</div>
</a>
<a href="http://aka.ms/asphodel" target="_blank" class="content-column one-third panel-secondary">
<h2 class="display-font panel-primary">Play</h2>
<div class="hero">
<img src="/static/hour-of-code/2020/asphodel.png" alt="Asphodel follows directions" />
</div>
<div class="text-content-block">
Move the arrows around to help Asphodel navigate to
her trophy. Advance through the levels to win the
game!<br/><br/>
</div>
<div id="playbutton" class="action-button">
Launch
</div>
</a>
</div>
</section>
<section class='intro container'>
<div class="content-block">
<div class="text-content-block">
Join us in celebrating this year's Computer Science
Education Week by playing, designing and coding your
very own retro arcade games!
</div>
<div class="panel-secondary educators-aside">
<div class='content-block'>
<img src='/static/hour-of-code/2020/apple.png' alt='For educators'/>
<div class="text-content-block">
Are you a <b>teacher</b> or <b>parent</b>? Find
additional information about these activities here.<br/><br/>
</div>
</div>
<a class="action-button" href="/hour-of-code/educators-2020"
>For Educators</a
>
</div>
</div>
</section>
<section class='container certificate'>
<div class="content-block">
<h2 class="display-font">Get your Certificate</h2>
<div class="text-content-block">
Done with Microsoft MakeCode Arcade Hour of Code™
activities? Congratulations!! You are a Game Maker!
Print out your certificate and explore some other fun
MakeCode Arcade activities below.
</div>
<a class="action-button" href="https://1drv.ms/b/s!AqsgsTyHBmRBjyzY4tqc7dhNDJTX">Print Your Certificate</a>
</div>
</section>
<section class='container additional'>
<div class="content-block">
<h2 class="display-font">Additional Activities</h2>
<div class="text-content-block">
Looking for more fun MakeCode Arcade games to build? Try
any of these tutorials and share your games for your
family and friends to play!
</div>
<div class="content-row">
<div class="content-column one-third">
<a href="https://arcade.makecode.com/hour-of-code-2021" target="_blank">
<img src="/static/skillmap/backgrounds/forest.png" alt="Hour of Code 2021" />
<div class='action-button'>Hour of Code 2021</div>
</a>
</div>
<div class="content-column one-third">
<a href="https://arcade.makecode.com/--skillmap#beginner" target="_blank">
<img src="/static/skillmap/backgrounds/beginner.png" alt="Beginner Skillmap" />
<div class='action-button'>Beginner Skillmap</div>
</a>
</div>
<div class="content-column one-third">
<a href="https://arcade.makecode.com/--skillmap#space" target="_blank">
<img src="/static/skillmap/backgrounds/space.png" alt="Space Adventure" />
<div class='action-button'>Space Adventure</div>
</a>
</div>
<div class="content-column one-third">
<a href="https://arcade.makecode.com/--skillmap#jungle" target="_blank">
<img src="/static/skillmap/backgrounds/jungle-map.png" alt="Jungle Jump" />
<div class='action-button'>Jungle Jump</div>
</a>
</div>
<div class="content-column one-third">
<a href="https://arcade.makecode.com/--skillmap#rockstar" target="_blank">
<img src="/static/skillmap/backgrounds/rock-map.png" alt="80's Rockstar Maze" />
<div class='action-button'>80's Rockstar Maze</div>
</a>
</div>
<div class="content-column one-third">
<a href="https://arcade.makecode.com/--skillmap#zoo" target="_blank">
<img src="/static/skillmap/backgrounds/zoo.png" alt="Zookeepers Adventure" />
<div class='action-button'>Zookeepers Adventure</div>
</a>
</div>
</div>
</div>
</section>
<section class='container explore'>
<div class="content-block">
<h2 class="display-font">Explore More MakeCode</h2>
<div class='text-content-block'>Whether it's gaming, hacking, creating, or learning,
you can use MakeCode to bring your project to life. Explore everything MakeCode Arcade has to
offer, or check out our other platforms such as MakeCode micro:bit and MakeCode Minecraft.</div>
<div class="content-row">
<div class="content-column one-third">
<a href="https://arcade.makecode.com/" target="_blank">
<img src="/static/hour-of-code/2020/arcade.png" alt="MakeCode Arcade" />
<div class='action-button'>MakeCode Arcade</div>
</a>
</div>
<div class="content-column one-third">
<a href="https://makecode.microbit.org/" target="_blank">
<img src="/static/hour-of-code/2020/micro-bit.png" alt="MakeCode micro:bit" />
<div class='action-button'>MakeCode micro:bit</div>
</a>
</div>
<div class="content-column one-third">
<a href="https://minecraft.makecode.com/setup" target="_blank">
<img src="/static/hour-of-code/2020/minecraft.png" alt="MakeCode Minecraft" />
<div class='action-button'>MakeCode Minecraft</div>
</a>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- @include footer.html -->
<!-- @include tracking.html -->
<!-- @include tickevent.html -->
<!-- begin usabilla live embed code -->
<script type="text/javascript">/*{literal}<![CDATA[*/window.lightningjs||function(c){function g(b,d){d&&(d+=(/\?/.test(d)?"&":"?")+"lv=1");c[b]||function(){var i=window,h=document,j=b,g=h.location.protocol,l="load",k=0;(function(){function b(){a.P(l);a.w=1;c[j]("_load")}c[j]=function(){function m(){m.id=e;return c[j].apply(m,arguments)}var b,e=++k;b=this&&this!=i?this.id||0:0;(a.s=a.s||[]).push([e,b,arguments]);m.then=function(b,c,h){var d=a.fh[e]=a.fh[e]||[],j=a.eh[e]=a.eh[e]||[],f=a.ph[e]=a.ph[e]||[];b&&d.push(b);c&&j.push(c);h&&f.push(h);return m};return m};var a=c[j]._={};a.fh={};a.eh={};a.ph={};a.l=d?d.replace(/^\/\//,(g=="https:"?g:"http:")+"//"):d;a.p={0:+new Date};a.P=function(b){a.p[b]=new Date-a.p[0]};a.w&&b();i.addEventListener?i.addEventListener(l,b,!1):i.attachEvent("on"+l,b);var q=function(){function b(){return["<head></head><",c,' onload="var d=',n,";d.getElementsByTagName('head')[0].",d,"(d.",g,"('script')).",i,"='",a.l,"'\"></",c,">"].join("")}var c="body",e=h[c];if(!e)return setTimeout(q,100);a.P(1);var d="appendChild",g="createElement",i="src",k=h[g]("div"),l=k[d](h[g]("div")),f=h[g]("iframe"),n="document",p;k.style.display="none";e.insertBefore(k,e.firstChild).id=o+"-"+j;f.frameBorder="0";f.id=o+"-frame-"+j;/MSIE[ ]+6/.test(navigator.userAgent)&&(f[i]="javascript:false");f.allowTransparency="true";l[d](f);try{f.contentWindow[n].open()}catch(s){a.domain=h.domain,p="javascript:var d="+n+".open();d.domain='"+h.domain+"';",f[i]=p+"void(0);"}try{var r=f.contentWindow[n];r.write(b());r.close()}catch(t){f[i]=p+'d.write("'+b().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}a.P(2)};a.l&&setTimeout(q,0)})()}();c[b].lv="1";return c[b]}var o="lightningjs",k=window[o]=g(o);k.require=g;k.modules=c}({});
window.usabilla_live = lightningjs.require("usabilla_live", "//w.usabilla.com/04a02d64289a.js");
/*]]>{/literal}*/</script>
<!-- end usabilla live embed code -->
</body>
</html>