-
Notifications
You must be signed in to change notification settings - Fork 0
/
arquivos.js
24 lines (19 loc) · 729 Bytes
/
arquivos.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
let C;
let A;
let estrada;
//SONS
let trilhaS;
let colisaoS;
let pontoS;
//SONS
function preload(){//CARREGA OS ARQUIVOS
estrada = loadImage("images/estrada.png");//CARREGA A IMAGEM DA ESTRADA
A = loadImage("images/ator-1.png");//CARREGA A IMAGEM DO ATOR
C1 = loadImage("images/carro-1.png");//CARREGA A IMAGEM DO CARRO 1
C2 = loadImage("images/carro-3.png");//CARREGA A IMAGEM DO CARRO 2
C3 = loadImage("images/carro-2.png");//CARREGA A IMAGEM DO CARRO 3
C = [C1, C2, C3, C1, C2, C3];//LISTA DAS IMAGENS
trilhaS = loadSound("sounds/trilha.mp3")//CARREGA O SOM DA TRILHA
colisaoS = loadSound("sounds/colidiu.mp3")//CARREGA O SOM DA COLISAO
pontoS = loadSound("sounds/pontos.wav")//CARREGA O SOM DO PONTO
}