View difference between Paste ID: 72qxsDu9 and bG5xiCDC
SHOW: | | - or go back to the newest paste.
1
	game.sound.shootSpacecraft = new Howl({
2
		urls: ["Sound/Laser_Shoot4.wav"]
3
	});
4
	game.sound.music = new Howl({
5-
		urls: ["Sound/file1.mid"]
5+
		urls: ["Sound/file1.mid"],
6
		onload: function() {
7
			console.log("lol")
8
			run(context,canvas,game,input,gameConfig);
9
		}
10
	});
11
	game.pause = false;
12
	//INPUTS
13
	var input = {};
14
	input.up = 0;
15
	input.down = 0;
16
	input.left = 0;
17
	input.right = 0;
18-
	//LANCEMENT DE run dans Main.js
18+
19-
	game.sound.music.onload = function(){
19+
20-
		console.log("lol")
20+
21-
		run(context,canvas,game,input,gameConfig);
21+
22-
	}
22+
	//LANCEMENT DE run dans Main.js