// Cloned by Alex Murphy on 19 May 2019 from World "jump/duck/hide " by Alex Murphy
// Please leave this clone trail here.
///////// Tweakers Box ///////////
var your_character = '/uploads/alexmurphy1996/finn.png';
var car_img = '/uploads/alexmurphy1996/car.png';
var bird_img = '/uploads/alexmurphy1996/bird.png';
var thief_img = '/uploads/alexmurphy1996/thief.png';
let speed = 5;
//////////////////////////////////
function action() {
// Place code here
if(runner=="thieves") {
hide();
}
else if(runner=="cars") {
jump();
}
else if (runner=="birds") {
duck();
}
}
function setup() {
$.getScript ( "uploads/alexmurphy1996/lesson4_runjumphide_code.js", function() {
preload();
setup();
});
}