-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ore_Generator.pde
58 lines (50 loc) · 1.07 KB
/
Ore_Generator.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
import java.util.Map;
HashMap<String,PImage[]> sprites = new HashMap<String,PImage[]>();
HashMap<String,Float> effectsValue = new HashMap<String,Float>();
String[] spawnables = new String[10];
String[] effects = new String[29];
Material material;
Ore ore;
Tool tool;
Block block;
PFont bigF;
PFont mediumF;
PFont littleF;
String[] conChunk;
String[] vowChunk;
String[] endChunk;
int selPage;
int numPages;
void settings(){
size(700,900);
noSmooth();
}
void setup(){
setNameChunks();
loadSprites();
setEffects();
setSpawnables();
selPage = 0;
numPages = 1;
bigF = createFont("Damascus", 38);
mediumF = createFont("Damascus", 24);
littleF = createFont("Damascus", 20);
loadStuff();
}
void draw(){
noStroke();
fill(20,25,45);
rect(0,0,width,height);
if (selPage == 0){
material.mMain();
}
else if (selPage == 1){
ore.oMain();
}
else if (material.uTools && selPage == tool.page){
tool.tMain();
}
else if ((material.uBlock || material.uDecor || material.uLight) && selPage == block.page){
block.bMain();
}
}