demo histoire interactive

Contenu: 
{"sourceCode":"var choiceWindow, choiceBed, choiceFeedText, choicePlacesText, choiceFeed, choicePlaces, image1, image3, image2, image4;\n\n\nread();\nwhen('lit', 'window', function () {\n replace('window', image1);\n});\nwhen('lit', 'bed', function () {\n replace('bed', image2);\n});\nimage1 = search.image('window');\nimage2 = search.image('bed');\n\nchoiceWindow = search.text('choiceWindow');\nwhen('clic', image1, function () {\n remove();\n add(choiceWindow);\n read();\n});\n\nwhen('lit', 'feed', function () {\n replace('feed', image3);\n});\nwhen('lit', 'get', function () {\n replace('places', image4);\n});\nimage3 = search.image('sandwich');\nimage4 = search.image('train');\n\nchoiceBed = search.text('choiceBed');\nwhen('clic', image2, function () {\n remove();\n add(choiceBed);\n read();\n});\n\nchoiceFeedText = search.text('choiceFeedText');\nchoiceFeed = search.image('baguette');\nwhen('clic', image3, function () {\n remove();\n add(choiceFeed);\n add(choiceFeedText);\n});\n\nchoicePlacesText = search.text('choicePlacesText');\nchoicePlaces = search.image('petroleum');\nwhen('clic', image4, function () {\n remove();\n add(choicePlaces);\n add(choicePlacesText);\n});\n","sourceText":"</br> An owl arrives at your home.</div></br> Do you open the window, or go back to bed?</div>","collections":{"images":[{"type":"images","tags":[],"id":"window","resource":"https://preprod.code-decode.net/sites/default/files/images_modules/datadecode/2162-window.jpg","displayCode":"IMAGE1"},{"type":"images","tags":[],"id":"bed","resource":"https://preprod.code-decode.net/sites/default/files/images_modules/datadecode/2162-bed.png","displayCode":"IMAGE2"},{"type":"images","tags":[],"id":"sandwich","resource":"https://preprod.code-decode.net/sites/default/files/images_modules/datadecode/2162-sandwich.png","displayCode":"IMAGE3"},{"type":"images","tags":[],"id":"train","resource":"https://preprod.code-decode.net/sites/default/files/images_modules/datadecode/2162-train.png","displayCode":"IMAGE4"},{"type":"images","tags":[],"id":"baguette","resource":"https://preprod.code-decode.net/sites/default/files/images_modules/datadecode/2162-baguette.png","displayCode":"IMAGE5"},{"type":"images","tags":[],"id":"petroleum","resource":"https://preprod.code-decode.net/sites/default/files/images_modules/datadecode/2162-petroleum.png","displayCode":"IMAGE6"}],"scripts":[{"id":"popUp","tags":[],"content":"window.alert(\"Ceci est un script\");","isNew":false,"type":"scripts","displayCode":"popUp"}],"words":[{"id":"amical","tags":["fantastique","tag1","tag2","tag3"],"kind":"adjective","type":"words","displayCode":"amical"},{"id":"forêt","tags":["fantastique"],"kind":"noun","type":"words","displayCode":"forêt"},{"id":"enchante","tags":["fantastique"],"kind":"verb","type":"words","displayCode":"enchante"}],"texts":[{"id":"choiceWindow","tags":[],"content":"The owl has a riddle. Does magic feed you or get you places?","type":"texts","displayCode":"The owl has a riddle. Does magic feed you or get you places?"},{"type":"texts","tags":[],"id":"choiceBed","content":"Good night !","displayCode":"Good night !"},{"type":"texts","tags":[],"id":"choiceFeedText","content":"Did you know that in French, a wand is called a baguette?","displayCode":"Did you know that in French, a wand is called a baguette?"},{"type":"texts","tags":[],"id":"choicePlacesText","content":"And when magic runs out...\nEXPECTO PETROLEUM!","displayCode":"And when magic runs out...\nEXPECTO PETROLEUM!"}],"sounds":[]},"sourceXmlBlockly":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><block id=\"].fvZgRvB{2~SS7W~]1{\" type=\"read\" y=\"-30\" x=\"-410\"><next><block id=\"/oCx[PH)eDtA/p#?g,}r\" type=\"when\"><field name=\"EVENTNAME\">READ</field><value name=\"EVENT\"><block id=\"[3MgmpcInO]BvByc3rGJ\" type=\"text\"><field name=\"TEXT\">window</field></block></value><statement name=\"BODY\"><block id=\"ofIuExpfo(89G~3{nm9*\" type=\"replace_text\"><value name=\"OLDTEXT\"><block id=\"6gipz%Xl;;%yTD8s!+!~\" type=\"text\"><field name=\"TEXT\">window</field></block></value><value name=\"NEWTEXT\"><block id=\"lB8_l.A+{uxO/q~P2XpB\" type=\"variables_get\"><field name=\"VAR\">image1</field></block></value></block></statement><next><block id=\"=B[5KZqMop~s;1{f3_w[\" type=\"when\"><field name=\"EVENTNAME\">READ</field><value name=\"EVENT\"><block id=\"u|yP7YoXQeLJ^A:_L#sH\" type=\"text\"><field name=\"TEXT\">bed</field></block></value><statement name=\"BODY\"><block id=\"OU4.RVJZUjclUc2w/X;e\" type=\"replace_text\"><value name=\"OLDTEXT\"><block id=\"*,X?4gh(HS7Sm.0EBJ)w\" type=\"text\"><field name=\"TEXT\">bed</field></block></value><value name=\"NEWTEXT\"><block id=\"L4+%@bZQ;[crm[Anigm`\" type=\"variables_get\"><field name=\"VAR\">image2</field></block></value></block></statement><next><block id=\"gQ`kdLBl8gm0/T-ub11(\" type=\"set_var\"><field name=\"VARNAME\">image1</field><value name=\"VARDEFINITION\"><block id=\"8u5J5+)r*M2B]Pw0/]ts\" type=\"search_by_name\"><field name=\"COLLECTION\">image</field><value name=\"NAME\"><block id=\"?9h~aE[TNxr!L[TI3;fK\" type=\"text\"><field name=\"TEXT\">window</field></block></value></block></value><next><block id=\"#0wD=byG|,WjJ8`pnM~W\" type=\"set_var\"><field name=\"VARNAME\">image2</field><value name=\"VARDEFINITION\"><block id=\"R5l`E{A[.yY#HT9V#):_\" type=\"search_by_name\"><field name=\"COLLECTION\">image</field><value name=\"NAME\"><block id=\"+bnABDLUEb;by|Zuv=M(\" type=\"text\"><field name=\"TEXT\">bed</field></block></value></block></value></block></next></block></next></block></next></block></next></block><block id=\"~Nfr5}K)XV4(YR}4fjIu\" type=\"set_var\" y=\"-30\" x=\"90\"><field name=\"VARNAME\">choiceWindow</field><value name=\"VARDEFINITION\"><block id=\",D3De1S.%Bvi.6l}[_15\" type=\"search_by_name\"><field name=\"COLLECTION\">text</field><value name=\"NAME\"><block id=\"?*P_K?jN8k]9L#8@pe3u\" type=\"text\"><field name=\"TEXT\">choiceWindow</field></block></value></block></value><next><block id=\"I*1EX0:ssq^gpsioJ3,c\" type=\"when\"><field name=\"EVENTNAME\">CLICK</field><value name=\"EVENT\"><block id=\"8os)FM;oBIwvEXdzk1u[\" type=\"variables_get\"><field name=\"VAR\">image1</field></block></value><statement name=\"BODY\"><block id=\"f(YwdPl8{e5@1mb-?FS6\" type=\"remove_all\"><next><block id=\":vnN#HJc%0CPbqhSr3c`\" type=\"add_text_at_end\"><value name=\"NEWTEXT\"><block id=\"rkk)6~?8C{FxO1ywH7/@\" type=\"variables_get\"><field name=\"VAR\">choiceWindow</field></block></value><next><block id=\"}Ks8/Bkj-pV@54R;?R(;\" type=\"read\"></block></next></block></next></block></statement></block></next></block><block id=\".*:_Gu#!D6UgveBx-cQt\" type=\"when\" y=\"170\" x=\"230\"><field name=\"EVENTNAME\">READ</field><value name=\"EVENT\"><block id=\"@KDT2F45|^h-_BlxsGQq\" type=\"text\"><field name=\"TEXT\">feed</field></block></value><statement name=\"BODY\"><block id=\"s6!MpN4@;n*~S{b+5!Z%\" type=\"replace_text\"><value name=\"OLDTEXT\"><block id=\"s)EDU{|h-`Rdv_3Zyyh8\" type=\"text\"><field name=\"TEXT\">feed</field></block></value><value name=\"NEWTEXT\"><block id=\"8`py*!W.[V!8%GO03?[M\" type=\"variables_get\"><field name=\"VAR\">image3</field></block></value></block></statement><next><block id=\"a3pV9cOw,=y(1NhWMg0C\" type=\"when\"><field name=\"EVENTNAME\">READ</field><value name=\"EVENT\"><block id=\"Z7NWFT^fD87].=1K)nih\" type=\"text\"><field name=\"TEXT\">get</field></block></value><statement name=\"BODY\"><block id=\"}rc=*BNB.2o|=O#)pR@]\" type=\"replace_text\"><value name=\"OLDTEXT\"><block id=\"B.kc;6l)WmZdy#~%|z3.\" type=\"text\"><field name=\"TEXT\">places</field></block></value><value name=\"NEWTEXT\"><block id=\"6T^h/Kx)I[U}c_R-++t%\" type=\"variables_get\"><field name=\"VAR\">image4</field></block></value></block></statement><next><block id=\";++Xvka9O5l1bHP.si19\" type=\"set_var\"><field name=\"VARNAME\">image3</field><value name=\"VARDEFINITION\"><block id=\"y3@L_w!V6VXzo,wY+ML:\" type=\"search_by_name\"><field name=\"COLLECTION\">image</field><value name=\"NAME\"><block id=\"lz`z1%e|V#:;8~LJOqYk\" type=\"text\"><field name=\"TEXT\">sandwich</field></block></value></block></value><next><block id=\"un[_.2KqxlT]Sue/A4Ff\" type=\"set_var\"><field name=\"VARNAME\">image4</field><value name=\"VARDEFINITION\"><block id=\"eU0je;dE=5:}KexNyJxr\" type=\"search_by_name\"><field name=\"COLLECTION\">image</field><value name=\"NAME\"><block id=\"WD^k-V#Lc?Ac.!}-)urc\" type=\"text\"><field name=\"TEXT\">train</field></block></value></block></value></block></next></block></next></block></next></block><block id=\"Jg;vRK?cpx#_`SeqHWP(\" type=\"set_var\" y=\"330\" x=\"-350\"><field name=\"VARNAME\">choiceBed</field><value name=\"VARDEFINITION\"><block id=\"!6HK9IP9Qftkv_A%xgPH\" type=\"search_by_name\"><field name=\"COLLECTION\">text</field><value name=\"NAME\"><block id=\"Goju!]D.gz1kVA:_@of)\" type=\"text\"><field name=\"TEXT\">choiceBed</field></block></value></block></value><next><block id=\"m`[W9:dqnv|34hlx;AYj\" type=\"when\"><field name=\"EVENTNAME\">CLICK</field><value name=\"EVENT\"><block id=\"M*JJ(Azaf^CRILbYYO!4\" type=\"variables_get\"><field name=\"VAR\">image2</field></block></value><statement name=\"BODY\"><block id=\"Zn=kHVF+-2P:RUI?lZyp\" type=\"remove_all\"><next><block id=\"[=a{CYXF!8-g~`Tx1BtK\" type=\"add_text_at_end\"><value name=\"NEWTEXT\"><block id=\"3nKwYB2tSq~*GPB_K,~l\" type=\"variables_get\"><field name=\"VAR\">choiceBed</field></block></value><next><block id=\"O.`Bi#M1lZ;xXxz/NNL/\" type=\"read\"></block></next></block></next></block></statement></block></next></block><block id=\"bYT6!5rw_!/fohA9^J/1\" type=\"set_var\" y=\"570\" x=\"-350\"><field name=\"VARNAME\">choiceFeedText</field><value name=\"VARDEFINITION\"><block id=\"gP3+mh0}EiTi}lJ[aJ8l\" type=\"search_by_name\"><field name=\"COLLECTION\">text</field><value name=\"NAME\"><block id=\"Hpf{!t]i8iAg2FU+dFH6\" type=\"text\"><field name=\"TEXT\">choiceFeedText</field></block></value></block></value><next><block id=\",xIR4,2b-,rK9T3T.j_-\" type=\"set_var\"><field name=\"VARNAME\">choiceFeed</field><value name=\"VARDEFINITION\"><block id=\"zz^jkt7*kfAuF8sES~|*\" type=\"search_by_name\"><field name=\"COLLECTION\">image</field><value name=\"NAME\"><block id=\":9PNzj?:B-?5JgwmcnPE\" type=\"text\"><field name=\"TEXT\">baguette</field></block></value></block></value><next><block id=\"1%#r+(quXb;xPlhX5L!q\" type=\"when\"><field name=\"EVENTNAME\">CLICK</field><value name=\"EVENT\"><block id=\"h!X{r5=c,;nTh:f72-re\" type=\"variables_get\"><field name=\"VAR\">image3</field></block></value><statement name=\"BODY\"><block id=\"RQ7q)SM5d,^yU@C|h(d.\" type=\"remove_all\"><next><block id=\"NFY2a@-y{_v0H0hpvl[#\" type=\"add_text_at_end\"><value name=\"NEWTEXT\"><block id=\"I`wndHF:4%0S`pxjzP^0\" type=\"variables_get\"><field name=\"VAR\">choiceFeed</field></block></value><next><block id=\"uRD8BC~+Y}wM!Sq6s^:F\" type=\"add_text_at_end\"><value name=\"NEWTEXT\"><block id=\"Fy.P7uM+yF1pSl8CeKTt\" type=\"variables_get\"><field name=\"VAR\">choiceFeedText</field></block></value></block></next></block></next></block></statement></block></next></block></next></block><block id=\".yMYvu]^%2Fs6W{M,y~u\" type=\"set_var\" y=\"550\" x=\"270\"><field name=\"VARNAME\">choicePlacesText</field><value name=\"VARDEFINITION\"><block id=\"}V]3wb,^C7oUckI51NNl\" type=\"search_by_name\"><field name=\"COLLECTION\">text</field><value name=\"NAME\"><block id=\"GXv)r,~wFoSb*C58p=Hk\" type=\"text\"><field name=\"TEXT\">choicePlacesText</field></block></value></block></value><next><block id=\"w{;^#Q|v[RjxlS}X]j:y\" type=\"set_var\"><field name=\"VARNAME\">choicePlaces</field><value name=\"VARDEFINITION\"><block id=\"RUCJns*HK9FiGt+o#?^0\" type=\"search_by_name\"><field name=\"COLLECTION\">image</field><value name=\"NAME\"><block id=\"}4#0F)cJ,I?_IaJd_lf,\" type=\"text\"><field name=\"TEXT\">petroleum</field></block></value></block></value><next><block id=\"LF%nXl}3QS)DS6=dTx=t\" type=\"when\"><field name=\"EVENTNAME\">CLICK</field><value name=\"EVENT\"><block id=\"6.4ww!+W4Pb_af4G?bE0\" type=\"variables_get\"><field name=\"VAR\">image4</field></block></value><statement name=\"BODY\"><block id=\"#)n02B-G!T@:0i|R0}D,\" type=\"remove_all\"><next><block id=\"GjPx;9a[cq:ff,FYBLNg\" type=\"add_text_at_end\"><value name=\"NEWTEXT\"><block id=\"qSDS9kQ6;+2_@C#J8fN[\" type=\"variables_get\"><field name=\"VAR\">choicePlaces</field></block></value><next><block id=\"{Xjp,5.YdEdSlmhrQft?\" type=\"add_text_at_end\"><value name=\"NEWTEXT\"><block id=\"duPCBM.,Aeflydloc:*Z\" type=\"variables_get\"><field name=\"VAR\">choicePlacesText</field></block></value></block></next></block></next></block></statement></block></next></block></next></block></xml>"}
Communaute: 
0
Miniature: 
Application: 
Tags créateur: 

GameCode partners