!function(){var allDemos={gesture:"swipe mouse left or right, it will show the events",pigVsWolf:"",sprite_repeat:"",spr_text:"",multi_keyframe:"KEY: left => frame1, up => frame2, right => frame3, down => frame4",set_path_speed:"space: start path, press up/down to adjust speed",drink:"",jump:"press up/down/left/right/space/enter to choose direction",ts_set_random_path:"press space to start path",ts_set_gravity:"press space to start, press up/down/left/right to choose direction",ts_reverse_horizontal_vertical:"press space to start, press left/right to revert_horizontal, press up/down to revert_vertical",ts_create_moving:"press space to create moving object",ts_create_random:"press space to start",ts_test_variable:"press space to start, only create 3 pigs",ts_ifclause:"first click the red button, second click the pig, then a wolf will be created",character:"",ts_set_width_height:"up/down to change height, left/right to change width",ts_object_id:"up/down to control move direction of the pig",sensor:"isSensor=true to cause enter/leave event",ts_closed_path:"up/down to change path speed",click:"click event should not happen if covered by other object",ts_timeline:"space to start/stop timeline, up/down to change startPosition",scene_view:"",towardtap:"",apply_force:"",keyframe:"",collision:""};window.test={start:function(){var select=document.getElementById("select");select.style.position="absolute";select.style.left="100px";var renderer=window.localStorage.getItem("renderer")||"dom";select.value=renderer;select.onchange=function(){renderer=select.value;window.localStorage.setItem("renderer",renderer);if(match){delete current_game.start_scene;json.global.renderer=renderer;qyengine.start(json)}};var match=window.location.href.match(/run=(.*)$/);if(match){var testfile=qyboot.getDebugMode()+SelfModName()+"/tests/"+match[1]+".js",code=qyboot.getRemoteFile(testfile);eval(code);json.global.renderer=renderer;qyengine.start(json)}else{goog.require("goog.dom");for(var testName in allDemos){var a=goog.dom.createDom("a",{href:"index.html?run="+testName},testName);document.body.appendChild(a);document.body.appendChild(document.createElement("br"))}}}}}();