-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathA_Variables.pde
96 lines (84 loc) · 2.18 KB
/
A_Variables.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import java.util.*;
import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
import ddf.minim.signals.*;
import ddf.minim.spi.*;
import ddf.minim.ugens.*;
//mode framework
final int TITLE = 0;
final int INTRO = 1;
final int GAME = 2;
final int MENU = 3;
final int BATTLE = 4;
final int LOSE = 5;
final int WIN = 6;
int mode = TITLE;
//Hero
Hero myHero;
String heroChoice;
//Enemy
ArrayList<Enemy> enemyList;
Enemy battleEnemy;
//keyboard
boolean leftKey, upKey, rightKey, downKey, spaceKey;
//images
PImage map, bigMap, floor, wall, menuIcons;
PImage titleText, introText, loseText, bossText, winText;
float imageY;
ArrayList<PImage> slides;
//game
boolean[][] clearedRooms;
int roomX, roomY; //xy coordinates of map's pixels
int pRoomX, pRoomY; //previous xy coordinates of the map's pixels
boolean west, north, east, south; //indicates if each direction is avalible to go to for the next room
boolean wWall, nWall, eWall, sWall;
float wallRatio = 1.0/8.0;
//battle
final int HERO = 0;
final int ACTION = 1;
final int ENEMY = 2;
final int BATTLE_PACE = 90;
int turn = HERO;
int timer = 0, endTimer = 0;
boolean reverseOrder, battleEnd;
//battle transition
Person trans;
boolean transition;
int tSpeed = 3;
int tTimer = 0;
//other
boolean bossTime;
boolean checkPoint;
//sound
Minim minim;
AudioPlayer introTheme;
AudioPlayer gameTheme;
AudioPlayer menuTheme;
AudioPlayer battleTheme;
AudioPlayer bossTheme;
AudioPlayer loseTheme;
AudioPlayer winTheme;
//colour pallete
final color red = #df2020;
final color orange = #df8020;
final color yellow = #dfdf20;
final color lime = #80df20;
final color green = #50df20;
final color mint = #20df50;
final color cyan = #20dfdf;
final color blue = #2080df;
final color navy = #2020df;
final color purple = #8020df;
final color violet = #df20df;
final color pink = #df2080;
final color white = #ffffff;
final color grey = #808080;
final color darkGrey = #3f3f3f;
final color black = #000000;
//map colors
color hereColor;
color northColor;
color southColor;
color eastColor;
color westColor;