Press the Start button to start the timer. Then use the arrow keys to collect as much treasure as you can before the timer runs out!
The showcase player uses a modified version of Processing.js in combination with jsweet to let students program their apps in Java code while still allowing for browser support.
Content created by students is scaled to fit the showcase frame while maintaining aspect ratio and cursor position. This is why some projects may appear blurry in fullscreen, or why some small details may not be visible on a small screen
<iframe width='500px' height='400px' src='https://nest.ktbyte.cn/nest#385381' allowfullscreen></iframe>
<xml xmlns="https://developers.google.com/blockly/xml"><block type="global_variables" id="Y5|i%9[/}|s;4o@2q4^i" x="160" y="51"><next><block type="variable_declaration" id="c.L_]r-zcW!oGVtZ]aUy"><field name="var_type">Sprite</field><field name="var_name">ship</field><value name="value"><block type="sprite_newSprite" id="TXUZj2Js1sWIW=dcq8a}"><value name="p0"><block type="value" id="}PsM0$koXFFlQSUoZ7-s"><field name="TEXT">"https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/e9afff51-c2d3-458c-9d1a-27113fcc2aa1/d66f9md-cc73ca2e-366d-4d4b-9dca-f8d126f054a1.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOiIsImlzcyI6InVybjphcHA6Iiwib2JqIjpbW3sicGF0aCI6IlwvZlwvZTlhZmZmNTEtYzJkMy00NThjLTlkMWEtMjcxMTNmY2MyYWExXC9kNjZmOW1kLWNjNzNjYTJlLTM2NmQtNGQ0Yi05ZGNhLWY4ZDEyNmYwNTRhMS5wbmcifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6ZmlsZS5kb3dubG9hZCJdfQ._V365UqkZVwl5QRr0HDsDFZcL2QkaUfDRqbsXgtCnCw"</field></block></value><value name="p1"><block type="value" id="No7AkEGK{Z%c4X@h8Gk)"><field name="TEXT">320</field></block></value><value name="p2"><block type="value" id="?($Ao^nCe+79nPUc$I,b"><field name="TEXT">240</field></block></value><value name="p3"><block type="value" id="%nrncCW_R.1OYUY+r|01"><field name="TEXT">80</field></block></value><value name="p4"><block type="value" id="4O(ch|V~SS`(9v7wDSNp"><field name="TEXT">80</field></block></value></block></value><next><block type="variable_declaration" id="_Ao63djxuy^uzjLupDnk"><field name="var_type">Sprite</field><field name="var_name">treasure</field><value name="value"><block type="sprite_newSprite" id="oBd%wG}bV^A2b5:Qpx#2"><value name="p0"><block type="value" id="Vx@aXQpH#4V]LOfX59JK"><field name="TEXT">"http://clipart-library.com/images/8cGEy5dki.gif"</field></block></value><value name="p1"><block type="value" id="U9T}L_X(v;Yf^$$pXA}*"><field name="TEXT">320</field></block></value><value name="p2"><block type="value" id="cJbgMPcg4^OLHghGvi:K"><field name="TEXT">240</field></block></value><value name="p3"><block type="value" id="Gv|fk^:p#Js:,sjCLPI`"><field name="TEXT">50</field></block></value><value name="p4"><block type="value" id="8MSc(:|VGuI3*tLtZmo;"><field name="TEXT">50</field></block></value></block></value><next><block type="variable_declaration" id=":TdE{Uz%*d!)}6.6VTj8"><field name="var_type">Sprite</field><field name="var_name">button</field><value name="value"><block type="sprite_newSpriteNoImg" id="D[~}n`vj5ZluFGeP;6~d"><value name="p0"><block type="value" id="1O6ma|X$cK`KiNRQz,u."><field name="TEXT">320</field></block></value><value name="p1"><block type="value" id="`e?xT/fvK%F+Jf#^Ni|w"><field name="TEXT">50</field></block></value><value name="p2"><block type="value" id="$[3_{{N#s*mv21%x!Qne"><field name="TEXT">100</field></block></value><value name="p3"><block type="value" id=".ayqrTOZsYT_HGWWyfCY"><field name="TEXT">50</field></block></value></block></value><next><block type="variable_declaration" id="lI{,;`o{#`813|40:~s?"><field name="var_type">PImage</field><field name="var_name">bg</field><value name="value"><block type="pimage_loadImage" id="V*/CZ?hxYW#@0J;*oo4B"><value name="p0"><block type="value" id="0mD*eXi#oStWf2S#Ejwm"><field name="TEXT">"https://i.ytimg.com/vi/tROrKQrBsJs/maxresdefault.jpg"</field></block></value></block></value><next><block type="variable_declaration" id="*N00TYN@d);,M3(qu^n0"><field name="var_type">Integer</field><field name="var_name">score</field><value name="value"><block type="value" id="#T5w~~:T`)hxutAIYKVh"><field name="TEXT">0</field></block></value><next><block type="variable_declaration" id="iH{{,Nx-?ks2o?IFr:Z{"><field name="var_type">Integer</field><field name="var_name">startTime</field><value name="value"><block type="value" id="hKwVmabV@,@=n4]Bd/bn"><field name="TEXT">30</field></block></value><next><block type="variable_declaration" id="s6%3-k%rq(fY|wuKlaT,"><field name="var_type">Integer</field><field name="var_name">timer</field><value name="value"><block type="value" id="C5%,[D,Aalglxi$5K.ud"><field name="TEXT">0</field></block></value><next><block type="variable_declaration" id=")opyp9JGh$~HmAP,zRVo"><field name="var_type">Integer</field><field name="var_name">speed</field><value name="value"><block type="value" id="Nq^9d^dC8Myo@PP}@uV_"><field name="TEXT">5</field></block></value><next><block type="variable_declaration" id="1|{JDh8I2Uq$,F){lkP9"><field name="var_type">Boolean</field><field name="var_name">start</field><value name="value"><block type="value" id="`/O^_2?=:{*|XHS00IHh"><field name="TEXT">false</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type="global_function_setup" id="wr^65_.*wDlc)hJu/^|g" x="617" y="296"><statement name="statements"><block type="sprite_moveToPoint" id="wThtDLRXiz[xb1ZYIeo;"><field name="var_name">treasure</field><value name="p0"><block type="math_random" id="@C)|~)B?/-$25^B)72V+"><value name="p0"><block type="value" id="txIf_C0[1|^Y_{vmfE{M"><field name="TEXT">0</field></block></value><value name="p1"><block type="value" id="Nq#n`)YOc$l{1!c@JR!M"><field name="TEXT">width</field></block></value></block></value><value name="p1"><block type="math_random" id="3$(P182Kb;yAk`cqMyi9"><value name="p0"><block type="value" id="@PZ4pOzNyrD#nqi%]8Cx"><field name="TEXT">0</field></block></value><value name="p1"><block type="value" id="cqq|/Ni.h){}!tc2kc1T"><field name="TEXT">height</field></block></value></block></value><next><block type="sprite_setColor" id="_ScpQc%o7|wW(:)zf|A8"><field name="var_name">button</field><value name="p0"><block type="value" id="SP3JIY%;WUYP|cXA``J$"><field name="TEXT">0</field></block></value><value name="p1"><block type="value" id="~m,[fLW4SQVj+8Ucn5f("><field name="TEXT">255</field></block></value><value name="p2"><block type="value" id="/(%3]mbZ3A$K])-EfsjB"><field name="TEXT">0</field></block></value><next><block type="command_fill" id="}Rw%miSx_WT}[W3y`E7:"><value name="p0"><block type="value" id="`@D*~rZTQEPD=~,/ThS+"><field name="TEXT">0</field></block></value><value name="p1"><block type="value" id="=/I;@`LoW,l)WRtIs@`J"><field name="TEXT">0</field></block></value><value name="p2"><block type="value" id="JplQTGOyi2P|l:T//*Vo"><field name="TEXT">0</field></block></value></block></next></block></next></block></statement></block><block type="global_function_draw" id="6luCbyV@ak7MIUeT}8EP" x="146" y="516"><statement name="statements"><block type="pimage_image" id="S*O2xI%PE-1-B~Niw9Oz"><value name="p0"><block type="value" id="J[J_3,rmP}[gZ5uk{X1L"><field name="TEXT">bg</field></block></value><value name="p1"><block type="value" id="Lq[O:SU[XU*Hr1!=LhNf"><field name="TEXT">320</field></block></value><value name="p2"><block type="value" id="HbzL00D)K}(kbxH1(_}y"><field name="TEXT">240</field></block></value><value name="p3"><block type="value" id="yW5Dd:v+Eyn[rC}-aBK_"><field name="TEXT">width</field></block></value><value name="p4"><block type="value" id="qql;SthT5U1LIn:8umRA"><field name="TEXT">height</field></block></value><next><block type="sprite_display" id="X?7j%x|:MAN}(F6.p]Z["><field name="var_name">ship</field><next><block type="sprite_display" id="RGpiokQ4N@T0pHZ/Vv@v"><field name="var_name">treasure</field><next><block type="sprite_display" id="MGfhu!_hfCg+/@GPjZG2"><field name="var_name">button</field><next><block type="command_text" id="YBI_X?IhMq}z$`Qd5DU^"><value name="p0"><block type="value" id="A4O2+!}lqiLdkLXix^za"><field name="TEXT">"Start"</field></block></value><value name="p1"><block type="value" id="z#-O/XCe/,hdByxS;:Q:"><field name="TEXT">320</field></block></value><value name="p2"><block type="value" id="[b:hKki9xMfkVvuht}kR"><field name="TEXT">50</field></block></value><next><block type="command_text" id="Q6GnVczMkk(V6EUh],/l"><value name="p0"><block type="value" id="{e;Qq7c%Nf%xh7LgThz+"><field name="TEXT">"Score: "+score</field></block></value><value name="p1"><block type="value" id="}ZnQcok|U]EC`kUqRi3T"><field name="TEXT">80</field></block></value><value name="p2"><block type="value" id="8#HY}7,x)**RH4QCBE}c"><field name="TEXT">50</field></block></value><next><block type="command_text" id="ZdNDSqk!aW(F~4fuuQ=|"><value name="p0"><block type="value" id="L(C~fnD.7v*[^Iw/*C??"><field name="TEXT">"Time: "+ (startTime-timer/60)</field></block></value><value name="p1"><block type="value" id="Ov?R*;KjPf/Y`%v:/L[["><field name="TEXT">550</field></block></value><value name="p2"><block type="value" id="EiW+9_ZZ1c3~O`0OU=kS"><field name="TEXT">50</field></block></value><next><block type="conditionals_if" id="SE0~}LA4x#Wozp_RQxmn"><value name="IF0"><block type="conditionals_compare" id="K).fwd[:GEqXJY#~;O``"><field name="OP">EQ</field><value name="A"><block type="value" id="0-%y~_fvuDM``iQd%yQ2"><field name="TEXT">start</field></block></value><value name="B"><block type="value" id="jD/,vEU?]@HLWL8Ei3]b"><field name="TEXT">true</field></block></value></block></value><statement name="DO0"><block type="variable_set_value" id="nlB%MGjCr*mbGxG~pn?7"><field name="var_name">timer</field><value name="value"><block type="value" id="H^QtxAExoVEr2)K2{HB3"><field name="TEXT">timer + 1</field></block></value><next><block type="conditionals_if" id="Q@^@D:9nst_7fsAaO%GD"><value name="IF0"><block type="conditionals_compare" id="%8NErkU^kF225O%zldoG"><field name="OP">GTE</field><value name="A"><block type="value" id="7me$e6;YU}Qvg.y1|GBy"><field name="TEXT">timer</field></block></value><value name="B"><block type="value" id="`NtDuOd{5/6dxmMXKdgU"><field name="TEXT">startTime*60</field></block></value></block></value><statement name="DO0"><block type="variable_set_value" id="|1d$+~}23g:HRQD=0kjp"><field name="var_name">start</field><value name="value"><block type="value" id="lG%Tx:%q6~Ex5qUH#Nyi"><field name="TEXT">false</field></block></value></block></statement><next><block type="conditionals_if" id=";7|/hKqYQ0bkiMQHMx^J"><value name="IF0"><block type="sprite_touchingSprite" id="ncX6dczHvi-C:!?X,vX+"><field name="var_name">ship</field><value name="p0"><block type="value" id="Kk|`LCGh6NLdwu(;$q7n"><field name="TEXT">treasure</field></block></value></block></value><statement name="DO0"><block type="variable_set_value" id="/meh#~+KyfLADq;I}Ss8"><field name="var_name">score</field><value name="value"><block type="value" id="(8jn$M8tv;1X,nQJDk4A"><field name="TEXT">score + 1</field></block></value><next><block type="sprite_moveToPoint" id="bBWxH:CnE#N`-+J=X/.~"><field name="var_name">treasure</field><value name="p0"><block type="math_random" id="S~]+!]0%Nn0sD2U@btF}"><value name="p0"><block type="value" id="#69He=DXZP_:3hJvKW/x"><field name="TEXT">0</field></block></value><value name="p1"><block type="value" id="zfT.gS;Sas68[KK!#h~^"><field name="TEXT">width</field></block></value></block></value><value name="p1"><block type="math_random" id="h9FJi40=xvud?j4~u[jX"><value name="p0"><block type="value" id="Ip~YG]tq4pg^E=AdtgM)"><field name="TEXT">0</field></block></value><value name="p1"><block type="value" id="in3c11Hz]eL2H/-~MwJ9"><field name="TEXT">height</field></block></value></block></value></block></next></block></statement><next><block type="conditionals_if" id="v:ViSB7K%XE.AfPUFxux"><value name="IF0"><block type="command_pressed" id="NG0?p0N;y6b_M$o6Y$$/"><value name="p0"><block type="value" id=":P`%QeuuCASF2faI,[.6"><field name="TEXT">"LEFT"</field></block></value></block></value><statement name="DO0"><block type="sprite_moveX" id="2,^FLNxW3IMmf}R;W+qy"><field name="var_name">ship</field><value name="p0"><block type="value" id="Q9;Y:%eaE9w3Wlt`Rreg"><field name="TEXT">-speed</field></block></value></block></statement><next><block type="conditionals_if" id="oV#4y5%7ot%}gI91/(r$"><value name="IF0"><block type="command_pressed" id="mKnt~g9|@mp(;KTag/Lw"><value name="p0"><block type="value" id="j9RTo5$~7rFPJY/=gY`|"><field name="TEXT">"RIGHT"</field></block></value></block></value><statement name="DO0"><block type="sprite_moveX" id="_^-C2wgxfjp}qm/|Qk+F"><field name="var_name">ship</field><value name="p0"><block type="value" id="tql{Omlp4(M1_+`.-UXx"><field name="TEXT">speed</field></block></value></block></statement><next><block type="conditionals_if" id="~8|(U-orLX$dU7_p*vNe"><value name="IF0"><block type="command_pressed" id="0z#CXyJgBUMAvrcaE8ud"><value name="p0"><block type="value" id="^{|A(DH@OLmLu-`(z6nO"><field name="TEXT">"UP"</field></block></value></block></value><statement name="DO0"><block type="sprite_moveY" id="5Cc{){*jnUtPYw:w3J`O"><field name="var_name">ship</field><value name="p0"><block type="value" id="$xVbGs-Jt7.KS/l94c?/"><field name="TEXT">-speed</field></block></value></block></statement><next><block type="conditionals_if" id="S*f*7QrnlAX{3Y]C#y+7"><value name="IF0"><block type="command_pressed" id="I2~jDYew[IuT=W_bT!EV"><value name="p0"><block type="value" id="JZ5Grra%N!$FQrP}P`.*"><field name="TEXT">"DOWN"</field></block></value></block></value><statement name="DO0"><block type="sprite_moveY" id="xmZ.Ftdp,9beUF*oNqZY"><field name="var_name">ship</field><value name="p0"><block type="value" id="BPU`.4]7[5`CAWPP^nsO"><field name="TEXT">speed</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="global_function_mousePressed" id="XrDczJT2%TI.^WS9?6^)" x="679" y="492"><statement name="statements"><block type="conditionals_if" id="Ba!P4M(FkWJm,60R-HCg"><value name="IF0"><block type="sprite_touchingPoint" id="PQ$:]zLp`obpTlYIvJ]v"><field name="var_name">button</field><value name="p0"><block type="value" id="s$=SKBM%hB8.Lm44[_2@"><field name="TEXT">mouseX</field></block></value><value name="p1"><block type="value" id="BbuRH/fj,gMX8HD.Mg15"><field name="TEXT">mouseY</field></block></value></block></value><statement name="DO0"><block type="variable_set_value" id="C_[`_/Y;*mb}cIDnmt!B"><field name="var_name">start</field><value name="value"><block type="value" id="eDKb|L?+ckd)%wUb/Goa"><field name="TEXT">true</field></block></value><next><block type="variable_set_value" id="Vt2r!CDiT[2Cx5#o?8hr"><field name="var_name">score</field><value name="value"><block type="value" id="X!4z?#P!80%pEW;2w0p?"><field name="TEXT">0</field></block></value><next><block type="variable_set_value" id="16K~#+(7^^@yiK{AJyNN"><field name="var_name">timer</field><value name="value"><block type="value" id="53^J#}r_ZqUw0;$@^I#5"><field name="TEXT">0</field></block></value></block></next></block></next></block></statement></block></statement></block></xml>