JS viewer

Syntax-highlighted view of JS of World: Comments, Types & Variables World (clone by Rebecca)





// Cloned by Rebecca on 20 May 2019 from World "Comments, Types & Variables World" by Alex Murphy 
// Please leave this clone trail here.
 
////////// Student Code ////////////////
var string = "Comments, Types & Variables";
var amount = 5;
var colour = true;
var chasing = true;


////////////////////////////////////////

function preload() {
    runner = loadImage('/uploads/rebecca09/pacman2.png');
    chaser = loadImage('/uploads/rebecca09/pinkyghost2.png');
    song = loadSound('uploads/rebecca09/Pacman_3D_vs_2D_-_Pixels_Pacman-DyrUmyVPVR4.mp3');
}

function setup() {
    createCanvas(710, 400);
    $.getScript ( "uploads/alexmurphy1996/lesson1_chasing.js", function(){
        setup();
    });
    
   
}