-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStor.pde
75 lines (54 loc) · 1.38 KB
/
Stor.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/**
* Class whitch stores images and audio to be played back
* in the game
*
* Call the _setup method to load all the images and the sounds
*/
public class Stor {
// * IMAGES
public PImage impostor;
public PImage player;
// * BUTTONS
public PImage enter;
public PImage space;
public PImage buttons;
public PImage skeld;
public PImage playAgain;
public PImage intro;
// * SHAPES
public PShape plus;
public PShape minus;
public PShape check;
public PShape wrong;
// * SOUNDS
// * FONTS
public PFont nunito;
// * MOVIES
public Gif Mwinner;
public Gif Mdefeat;
public void _setup(PApplet p) {
// * LOAD IMAGES
impostor = loadImage("chad.png");
player = loadImage("susy.png");
// * LOAD BUTTONS
enter = loadImage("btn/enter.png");
space = loadImage("btn/space.png");
buttons = loadImage("buttons.png");
skeld = loadImage("skeld.png");
playAgain = loadImage("play-again.png");
intro = loadImage("intro.png");
// * LOAD SHAPES
plus = loadShape("plus.svg");
minus = loadShape("minus.svg");
check = loadShape("check.svg");
wrong = loadShape("close.svg");
// * LOAD SOUNDS
// * LOAD FONTS
nunito = createFont("fonts/Nunito.ttf", 64);
// * LOAD MOVIES
Mwinner = new Gif(p, "victory.gif");
Mdefeat = new Gif(p, "defeat.gif");
Mwinner.noLoop();
Mdefeat.noLoop();
}
}