-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.java
145 lines (136 loc) · 4.26 KB
/
Main.java
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
import java.net.URISyntaxException;
import java.util.concurrent.TimeUnit;
public class Main {
public static boolean exit_a = false;
private static TimeUnit Unit = TimeUnit.MILLISECONDS;
public static byte i = -1;
private static void start() throws InterruptedException {
TimeUnit Unit = TimeUnit.MILLISECONDS;
Start board = new Start();
if ( board.isVisible() == false ) {
board.setVisible(true);
board.toFront();
}
board.l1.setText(" B");
Unit.sleep(1000);
board.l2.setText(" &");
Unit.sleep(1000);
board.l3.setText(" B");
Unit.sleep(1000);
board.l4.setText("Game Library");
Unit.sleep(2000);
board.dispose();
}
public static void exit() throws InterruptedException {
TimeUnit Unit = TimeUnit.MILLISECONDS;
Exit exit = new Exit();
if ( exit.isVisible() == false ) {
exit.setVisible(true);
exit.toFront();
}
Unit.sleep(3500);
exit.dispose();
System.exit(0);
}
public static void play() throws InterruptedException {
SpacePiano board1 = new SpacePiano();
Tictactoe board2 = new Tictactoe();
TA board3 = new TA();
switch ( i ) {
case 0:
exit();
Unit.sleep(2000);
System.exit(0);
break;
case 1:
Main_SpacePiano.main();
while ( exit_a == false ) {
if ( exit_a == true ) {
break;
}
}
board1.dispose();
SP_Scores b = new SP_Scores();
if ( b.isVisible() == false ) {
b.setVisible(true);
b.toFront();
}
Unit.sleep(4500);
b.dispose();
exit_a = true;
break;
case 2:
Main_tictactoe.main();
while ( exit_a == false ) {
if ( exit_a == true ) {
break;
}
}
board2.dispose();
TTT_Scores t = new TTT_Scores();
if ( t.isVisible() == false ) {
t.setVisible(true);
t.toFront();
}
Unit.sleep(4200);
t.dispose();
exit_a = true;
break;
case 3:
Main_TA.main();
while ( exit_a == false ) {
if ( exit_a == true ) {
break;
}
}
board3.dispose();
TA_Scores a = new TA_Scores();
if ( a.isVisible() == false ) {
a.setVisible(true);
a.toFront();
}
Unit.sleep(4500);
a.dispose();
exit_a = true;
break;
}
Unit.sleep(270);
i = -1;
exit_a = false;
}
public static void main(String[] args) throws InterruptedException, URISyntaxException {
start();
SplashScreen sc1 = new SplashScreen("B.png");
Unit.sleep(1800);
sc1.dispose();
SplashScreen sc2 = new SplashScreen("C.png");
Unit.sleep(1800);
sc2.dispose();
SplashScreen sc3 = new SplashScreen("A.png");
Unit.sleep(1800);
sc3.dispose();
ProductKey pk = new ProductKey();
while ( ProductKey.cont == 0 ) {
if ( ProductKey.cont == 1 ) {
break;
}
}
pk.dispose();
byte times = 0;
while ( times < 2 ) {
Menu m = new Menu();
if ( m.isVisible() == false ) {
m.setVisible(true);
m.toFront();
}
while ( i < 0 || i >= 4 ) {
}
m.dispose();
play();
times++;
}
exit();
Unit.sleep(2000);
System.exit(0);
}
}