Essai

Application:

Contenu: 
{"backgroundUrl":"images/game/end_screens/end_screen_3.png","characters":[{"position":{"x":7,"y":2},"url":"images/game/characters/bugfive/","code":"","width":1,"height":2,"type":"character","id":0,"sourceXml":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"></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\"></xml>","code":""},{"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=\"when_hit\" id=\",3RqJDesd,HRzhQ60yz/\" x=\"104\" y=\"154\"><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><block type=\"get_entities_object\" id=\"~xK3hSnorNA=]zO~-Gk#\" x=\"190\" y=\"250\"><field name=\"NAME\">personnage</field><value name=\"BODY\"><block type=\"go_to\" id=\"dY^(XkKntWVjm58?V;jL\"><value name=\"POSITION\"><block type=\"math_number\" id=\"b3KkU+eg_aYy`x_0vccZ\"><field name=\"NUM\">2</field></block></value></block></value></block></xml>","code":"quand('tir touche', fonction (personnage) {\n personnage.saute();\n});\n\npersonnage.vaVers(2);\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=\"104\" y=\"154\"><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":""}