test_crea_2404_sv

Contenu: 
{"backgroundUrl":"images/game/end_screens/end_screen_3.png","characters":[{"position":{"x":7,"y":2},"url":"images/game/characters/bugfive/","code":"quand('joueur arrive', fonction () {\n personnage.dit('attends 2 secondes');\n});\nquand('joueur est devant', fonction () {\n retarder(2 + ' secondes', fonction () {\n personnage.dit('2 secondes écoulées');\n });\n});\nquand('joueur part', fonction () {\n retarder(4 + ' secondes', fonction () {\n personnage.dit('4 secondes écoulées');\n });\n});\n","width":1,"height":2,"type":"character","id":0,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"gamecode_when\" id=\"T:3(olZfsC.s7wdoHj5j\" x=\"324\" y=\"237\"><value name=\"EVENT\"><block type=\"event_player_arrived\" id=\"uD7VMuPeiz%];PCF85.Y\"></block></value><statement name=\"BODY\"><block type=\"get_entities\" id=\"@{dO:}n]K]zv|7(3#=v;\"><field name=\"NAME\">personnage</field><value name=\"BODY\"><block type=\"says\" id=\"b2-Tsy!gGjJ.jh1o:P3u\"><value name=\"TEXT\"><block type=\"text\" id=\"x*XlVlqS*[,lf:]Q;`)G\"><field name=\"TEXT\">attends 2 secondes</field></block></value></block></value></block></statement><next><block type=\"gamecode_when\" id=\"#h0)*MmaG8x-*J.E[sL]\"><value name=\"EVENT\"><block type=\"event_player_in_front\" id=\"eKm^VvSZB?v-6pTfEUQO\"></block></value><statement name=\"BODY\"><block type=\"delay\" id=\"+ybo9Z@f}h4nw.zK8v}3\"><value name=\"seconds\"><block type=\"math_number\" id=\"AC^],uAtiV@I|(Xb[E_a\"><field name=\"NUM\">2</field></block></value><statement name=\"body\"><block type=\"get_entities\" id=\"l8/pg+o^j9~V,[;8SdQ!\"><field name=\"NAME\">personnage</field><value name=\"BODY\"><block type=\"says\" id=\"w~t%zC]kP=@z/iY/)}o?\"><value name=\"TEXT\"><block type=\"text\" id=\"CsPWe_4a9t!+l+5E(po_\"><field name=\"TEXT\">2 secondes écoulées</field></block></value></block></value></block></statement></block></statement><next><block type=\"gamecode_when\" id=\"W{cdhg;Kp1R.wPkdUE;k\"><value name=\"EVENT\"><block type=\"event_player_leaves\" id=\"JO9n,(F]a=GM):nXB`/x\"></block></value><statement name=\"BODY\"><block type=\"delay\" id=\"%.HOz{urz;YVRUr~xcG0\"><value name=\"seconds\"><block type=\"math_number\" id=\":J8l~#4{NJ(FQ;6:V4+-\"><field name=\"NUM\">4</field></block></value><statement name=\"body\"><block type=\"get_entities\" id=\"]MWXzs},@(g-6.Tx6UVq\"><field name=\"NAME\">personnage</field><value name=\"BODY\"><block type=\"says\" id=\"RCA,I0#Nq#PB.5Oy*Xu+\"><value name=\"TEXT\"><block type=\"text\" id=\"sRs!2|^}5!(cKgs5jVBy\"><field name=\"TEXT\">4 secondes écoulées</field></block></value></block></value></block></statement></block></statement></block></next></block></next></block></xml>"}],"tiles":[{"position":{"x":0,"y":2},"traversable":true,"url":"images/game/bonus/drapeau_jaune.png","type":"item","code":"","sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"></xml>"},{"position":{"x":16,"y":2},"traversable":true,"url":"images/game/bonus/drapeau_vert.png","type":"item","code":"quand('joueur arrive', function () {\n victoire();\n});\n","sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"gamecode_when\" id=\"`=5(oRMY-`S.Dy^ccqg|\" x=\"199\" y=\"152\"><value name=\"EVENT\"><block type=\"event_player_arrived\" id=\"g]iO2wv,i]x,k]k8nTRO\"></block></value><statement name=\"BODY\"><block type=\"victory\" id=\"j81J@Bo78F4]`J;1pPNj\"></block></statement></block></xml>"},{"position":{"x":0,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":1,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":2,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":3,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":4,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":5,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":6,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":7,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":8,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":9,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":10,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":11,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":12,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":13,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":14,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":15,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"position":{"x":16,"y":1},"url":"images/game/blocks/wood/BOIS-AB.png","type":"wall","code":null,"traversable":false},{"type":"item","url":"images/game/bonus/anims/coin.png","position":{"x":5,"y":3},"traversable":true,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"set_var\" id=\"#eCuaxZbs1()+c7V4UM7\" x=\"73\" y=\"-66\"><field name=\"VARNAME\">flagDevant</field><value name=\"VARDEFINITION\"><block type=\"logic_boolean\" id=\"l9qY,*TN?V}9%lsu*mD=\"><field name=\"BOOL\">TRUE</field></block></value><next><block type=\"gamecode_when\" id=\"T:3(olZfsC.s7wdoHj5j\"><value name=\"EVENT\"><block type=\"event_player_arrived\" id=\"uD7VMuPeiz%];PCF85.Y\"></block></value><statement name=\"BODY\"><block type=\"entities_assignment\" id=\"aIvdZD:-3`*Xm{vo{|9A\"><value name=\"variable\"><block type=\"player_variables\" id=\"1w8Z%aM%`(-:?YhaK4^c\"><field name=\"variable\">score</field></block></value><value name=\"value\"><block type=\"math_arithmetic_custom\" id=\"0mX}pRG66gViib@^te7c\"><field name=\"OPERATION\">+</field><value name=\"A\"><block type=\"player_variables\" id=\"aTf#_E?UQa;I@eSMj|1;\"><field name=\"variable\">score</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"fml@rx/[v}ObieFdG!P}\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"get_entities\" id=\"!f@4wEHD9eT_.6cxhz0w\"><field name=\"NAME\">joueur</field><value name=\"BODY\"><block type=\"says\" id=\"|/MZ;CeTQ00Vw%a)wPs?\"><value name=\"TEXT\"><block type=\"player_variables\" id=\"aqaU4ce%N*9C[)cL!VXb\"><field name=\"variable\">score</field></block></value></block></value></block></next></block></statement><next><block type=\"gamecode_when\" id=\"33_CD5fab5(^jD890/~p\"><value name=\"EVENT\"><block type=\"event_player_in_front\" id=\"mC]wn;cM^9}6,s*eB)Ot\"></block></value><statement name=\"BODY\"><block type=\"condition_if\" id=\"l;1U}t~ulp[n`d{pfuYT\"><value name=\"IF0\"><block type=\"compare\" id=\"ScJ*ULMsBWUr-ije4H_W\"><field name=\"OPERATOR\">=</field><value name=\"FIRST_VALUE\"><block type=\"variables_get\" id=\"OkXL/@)K?U8Q]9Z}.w(C\"><field name=\"VAR\">flagDevant</field></block></value><value name=\"SECOND_VALUE\"><block type=\"logic_boolean\" id=\"1koW4Ic4f^g`?#vd}s.a\"><field name=\"BOOL\">TRUE</field></block></value></block></value><statement name=\"DO0\"><block type=\"entities_assignment\" id=\"RbFdf-`XB1^q]D{f/hn6\"><value name=\"variable\"><block type=\"variables_get\" id=\"Y,4fcPg3CLO(g9SSD51u\"><field name=\"VAR\">flagDevant</field></block></value><value name=\"value\"><block type=\"logic_boolean\" id=\"Wt_~/tNLDNCquL|uUr=d\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"repeat\" id=\"3D[prZ8DM-A:(bCzZ/Vv\"><value name=\"seconds\"><block type=\"math_number\" id=\"L_lx^t:2p;[U_;XI82;5\"><field name=\"NUM\">2</field></block></value><statement name=\"body\"><block type=\"entities_assignment\" id=\"YB+`9`FK*-%Top:.}y:3\"><value name=\"variable\"><block type=\"player_variables\" id=\"?*h(q7+XmRe]C]^w5O@}\"><field name=\"variable\">score</field></block></value><value name=\"value\"><block type=\"math_arithmetic_custom\" id=\"K/C29Ksf|Nmynu84ShyO\"><field name=\"OPERATION\">+</field><value name=\"A\"><block type=\"player_variables\" id=\"-5aIA.7|F~c,?Sr(/DyC\"><field name=\"variable\">score</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"}X{2]1Vf}z}v8%e*t~3L\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"get_entities\" id=\"MkZ;piZ*S*{2:[OA_4LG\"><field name=\"NAME\">joueur</field><value name=\"BODY\"><block type=\"says\" id=\"4-_vQV}AuP1z[tZo^+3q\"><value name=\"TEXT\"><block type=\"player_variables\" id=\"GiR6ag~S=03sp6#hUj_*\"><field name=\"variable\">score</field></block></value></block></value></block></next></block></statement></block></next></block></statement></block></statement></block></next></block></next></block></xml>","code":"var flagDevant;\n\n\nflagDevant = true;\nquand('joueur arrive', fonction () {\n joueur.score = (joueur.score+1);\n joueur.dit(joueur.score);\n});\nquand('joueur est devant', fonction () {\n if (flagDevant === true) {\n flagDevant = false;\n repeterChaque(2 + ' secondes', fonction () {\n joueur.score = (joueur.score+1);\n joueur.dit(joueur.score);\n });\n } });\n"},{"url":"images/game/blocks/bidon.png","type":"wall","position":{"x":10,"y":2},"traversable":false,"code":null}],"player":{"urls":{"head":"images/game/players/elf/","body":"images/game/players/elf/","bullet":"images/game/players/elf/"},"position":{"x":3,"y":2},"type":"player","width":1,"height":2,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"entities_assignment\" id=\"aIvdZD:-3`*Xm{vo{|9A\" x=\"330\" y=\"190\"><value name=\"variable\"><block type=\"player_variables\" id=\"1w8Z%aM%`(-:?YhaK4^c\"><field name=\"variable\">score</field></block></value><value name=\"value\"><block type=\"math_number\" id=\"fml@rx/[v}ObieFdG!P}\"><field name=\"NUM\">0</field></block></value><next><block type=\"when_hit\" id=\",3RqJDesd,HRzhQ60yz/\"><statement name=\"BODY\"><block type=\"get_entities\" id=\"yM@[G~`0JYo|fvK6-QzY\"><field name=\"NAME\">personnage</field><value name=\"BODY\"><block type=\"jump\" id=\"^DO:LZc|`uVse92mwq#~\"></block></value></block></statement></block></next></block></xml>","code":"joueur.score = 0;\nquand('tir touche', fonction (personnage) {\n personnage.saute();\n});\n"},"endGame":{"wallpaper":"images/game/end_screens/end_screen_2.jpg","winText":"Victoire !","loseText":"Défaite :("},"sounds":{"music":"sounds/musics/feel_good","win":"sounds/win/01","loose":"sounds/loose/01","items":"sounds/bonus/01"},"soundEnable":false,"name":"Test","goal":"Finir le niveau","generalScript":"gravite = 50;","sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"gravity\" id=\"2WC=#bE`A%2]AA0)hb[Z\" x=\"73\" y=\"-66\"><value name=\"VALUE\"><block type=\"math_number\" id=\",Q)DNQ?o,qry-f+8S/.m\"><field name=\"NUM\">50</field></block></value></block></xml>","code":"","customBlocklyDropdowns":{"player":[["score","score"]]},"needed":true}
Communaute: 
1
Miniature: 
Application: 
Tags créateur: 

GameCode partners