sans titre

Mission: 
Mission 1: What are actions?
Contenu: 
{"backgroundUrl":"https://www.code-decode.net/sites/default/files/images_modules/gamecode/11336/11336-mountain-1209497_1920.jpg","characters":[{"position":{"x":9,"y":2},"url":"images/game/charactersV2/bugseven/","code":"always(function () {\n character.advance();\n when('blocked', function () {\n character.turn();\n });\n character.speed = 7;\n});\nwhen('player arrives', function () {\n player.life = (player.life-1);\n});\n","width":1,"height":2,"type":"character","id":0,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"always\" id=\",PQNybu7hF9o[NJe28rm\" x=\"218\" y=\"252\"><statement name=\"BODY\"><block type=\"get_entities_character\" id=\"lmwwl_PNJDVk(HbSfRk4\"><field name=\"NAME\">character</field><value name=\"BODY\"><block type=\"move_forward\" id=\"s!.h}QEvyKDzvw0(*~)O\"></block></value><next><block type=\"gamecode_when\" id=\".fIBkmT8|9=LOPs]ukFb\"><value name=\"EVENT\"><block type=\"event_is_blocked\" id=\"JN5gZ01dW~AG9STDn}/A\"></block></value><statement name=\"BODY\"><block type=\"get_entities_character\" id=\"?TBNe=6%Hd_(:Dbst4^T\"><field name=\"NAME\">character</field><value name=\"BODY\"><block type=\"turn_back\" id=\"Vh*[[iI7S4vn_o~lH#iI\"></block></value></block></statement><next><block type=\"entities_assignment\" id=\"qCtmRQJYl.0_R!z.hG6b\"><value name=\"variable\"><block type=\"character_variables\" id=\"4co`9ZP6-4_lM1Un(4le\"><field name=\"variable\">speed</field></block></value><value name=\"value\"><block type=\"math_number\" id=\"RGW*w3xq3b1sE=X1F_B{\"><field name=\"NUM\">7</field></block></value></block></next></block></next></block></statement><next><block type=\"gamecode_when\" id=\"{aQ5(f!/`x^y@?Zww@G-\"><value name=\"EVENT\"><block type=\"event_player_arrived\" id=\")=J4@^BRK]mDf).R0`|B\"></block></value><statement name=\"BODY\"><block type=\"entities_assignment\" id=\"rXYPE*Uxs@03/lX38]CP\"><value name=\"variable\"><block type=\"player_variables\" id=\"nK:BG14Ezn?F[F4@Igae\"><field name=\"variable\">life</field></block></value><value name=\"value\"><block type=\"math_arithmetic_custom\" id=\"fTkwstyG}pd;auk]/n{}\"><field name=\"OPERATION\">-</field><value name=\"A\"><block type=\"player_variables\" id=\"+{+D.VX]ecf5R-qi2#:C\"><field name=\"variable\">life</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"sb1Z#m?Q+?xm8OA%kV5X\"><field name=\"NUM\">1</field></block></value></block></value></block></statement></block></next></block></xml>"},{"position":{"x":27,"y":6},"url":"images/game/charactersV2/bugthree/","code":"always(function () {\n character.shoot();\n character.rateOfFire = 1;\n});\ncharacter.turn();\n","width":1,"height":2,"type":"character","id":1,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"always\" id=\"f%t73~LhVO)XL-2z+Ay/\" x=\"218\" y=\"252\"><statement name=\"BODY\"><block type=\"get_entities_character\" id=\"V^4Sl-U}o+z[z+H;ewA~\"><field name=\"NAME\">character</field><value name=\"BODY\"><block type=\"shoot\" id=\"6_ivR9iMD+0ZJMv!:~~D\"></block></value><next><block type=\"entities_assignment\" id=\"8dt;r3(4A%`@iM%3MkFt\"><value name=\"variable\"><block type=\"character_variables\" id=\"[[LlRe@7.{QRZq!7SY_z\"><field name=\"variable\">rateOfFire</field></block></value><value name=\"value\"><block type=\"math_number\" id=\"dA_p@()OWsqQ+yt}0LlT\"><field name=\"NUM\">1</field></block></value></block></next></block></statement><next><block type=\"get_entities_character\" id=\"9]RG[1u_g/FU:[,a=t2k\"><field name=\"NAME\">character</field><value name=\"BODY\"><block type=\"turn_back\" id=\"sp8~ii6nihko/PGZXIOF\"></block></value></block></next></block></xml>"},{"position":{"x":10,"y":2},"url":"images/game/charactersV2/yeti/","code":"","width":1,"height":2,"type":"character","id":2},{"position":{"x":13,"y":2},"url":"images/game/charactersV2/skieur/","code":"","width":1,"height":2,"type":"character","id":3},{"position":{"x":11,"y":2},"url":"images/game/charactersV2/bear/","code":"","width":1,"height":2,"type":"character","id":4},{"position":{"x":8,"y":2},"url":"images/game/charactersV2/bugseven/","code":"","width":1,"height":2,"type":"character","id":5},{"position":{"x":7,"y":2},"url":"images/game/charactersV2/bugseven/","code":"","width":1,"height":2,"type":"character","id":6},{"position":{"x":6,"y":2},"url":"images/game/charactersV2/bugseven/","code":"","width":1,"height":2,"type":"character","id":7},{"position":{"x":5,"y":2},"url":"images/game/charactersV2/bugseven/","code":"","width":1,"height":2,"type":"character","id":8}],"tiles":[{"position":{"x":0,"y":2},"traversable":false,"url":"images/game/blocks/ice/glace.png","type":"wall","code":null,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"></xml>"},{"position":{"x":16,"y":2},"traversable":false,"url":"images/game/blocks/ice/glace.png","type":"wall","code":null,"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/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":1,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":2,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":3,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":4,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":5,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":6,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":7,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":8,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":9,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":10,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":11,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":12,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":13,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":14,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":15,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"position":{"x":16,"y":1},"url":"images/game/blocks/ice/glace4.png","type":"wall","code":null,"traversable":false},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":17,"y":3},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace4.png","type":"wall","position":{"x":17,"y":2},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace4.png","type":"wall","position":{"x":17,"y":1},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":18,"y":3},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace4.png","type":"wall","position":{"x":18,"y":2},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace4.png","type":"wall","position":{"x":18,"y":1},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":22,"y":5},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace4.png","type":"wall","position":{"x":23,"y":5},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":25,"y":5},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace4.png","type":"wall","position":{"x":21,"y":5},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace4.png","type":"wall","position":{"x":26,"y":5},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":27,"y":5},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":28,"y":5},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace2.png","type":"wall","position":{"x":29,"y":7},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace5.png","type":"wall","position":{"x":30,"y":7},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace2.png","type":"wall","position":{"x":33,"y":8},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":34,"y":8},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace5.png","type":"wall","position":{"x":35,"y":8},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace2.png","type":"wall","position":{"x":38,"y":6},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":39,"y":6},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace5.png","type":"wall","position":{"x":40,"y":6},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace5.png","type":"wall","position":{"x":48,"y":4},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":47,"y":4},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":46,"y":4},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":45,"y":4},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":44,"y":4},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace2.png","type":"wall","position":{"x":42,"y":4},"traversable":false,"code":null},{"url":"images/game/blocks/ice/glace.png","type":"wall","position":{"x":43,"y":4},"traversable":false,"code":null},{"type":"item","url":"images/game/bonus/drapeau_vert.png","position":{"x":45,"y":5},"traversable":true,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"gamecode_when\" id=\"OIr3rFu9mrRTZ/OyH6Dx\" x=\"220\" y=\"264\"><value name=\"EVENT\"><block type=\"event_player_arrived\" id=\"3ziOy-.2iK}mzew,rDMM\"></block></value><statement name=\"BODY\"><block type=\"victory\" id=\"_7vVHF1F,`ODK?jG[d!E\"></block></statement></block></xml>","code":"quand('joueur arrive', fonction () {\n victoire();\n});\n"},{"url":"images/game/blocks/ice/glace2.png","type":"wall","position":{"x":20,"y":5},"traversable":false,"code":null},{"url":"images/game/blocks/vis.png","type":"wall","position":{"x":1,"y":2},"traversable":false,"code":null}],"player":{"urls":{"head":"./images/game/players/ninja/","body":"./images/game/players/ninja/","bullet":"./images/game/players/unicorn_bug/"},"position":{"x":3,"y":2},"type":"player","width":1,"height":2,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block type=\"gamecode_when\" id=\"(Vl|i(SkVupJiLcjUpk!\" x=\"218\" y=\"252\"><value name=\"EVENT\"><block type=\"event_touched\" id=\")02#`F0Wc7]SlpGTeAhk\"></block></value><statement name=\"BODY\"><block type=\"entities_assignment\" id=\"-c.[nk9)j^!2s{#@R!7`\"><value name=\"variable\"><block type=\"player_variables\" id=\"/8n.Ethu26qj-DBH@=^q\"><field name=\"variable\">life</field></block></value><value name=\"value\"><block type=\"math_arithmetic_custom\" id=\"{]nqHV5O5(mEQ2NfZu)p\"><field name=\"OPERATION\">-</field><value name=\"A\"><block type=\"player_variables\" id=\"!Trc-,{I8G+83[73zRzV\"><field name=\"variable\">life</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"e.r`UhWQ25jgld0+!b,k\"><field name=\"NUM\">1</field></block></value></block></value></block></statement><next><block type=\"when_hit\" id=\"[X0?C8B|Z!NMipmMW+U3\"></block></next></block></xml>","code":"when('is hit', function () {\n player.life = (player.life-1);\n});\nwhen('bullet hits', function (character) {\n});\n"},"endGame":{"wallpaper":"images/game/end_screens/end_screen_2.jpg","winText":"Victory !","loseText":"Game Over :("},"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=\"360\" y=\"229\"><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":"","assetsLibrary":{"backgrounds":["https://www.code-decode.net/sites/default/files/images_modules/gamecode/11336/11336-mountain-1209497_1920.jpg"]},"needed":true}
Communaute: 
0
Miniature: 
Application: 
Tags créateur: 

Nos partenaires GameCode