-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.java
33 lines (29 loc) · 887 Bytes
/
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
import GLOOP.*;
import java.util.ArrayList;
import java.util.List;
public class Main {
GLKamera cam;
GLTastatur keyboard;
public static List<GLObjekt> objectList = new ArrayList<>();
public static List<String> objectName = new ArrayList<>();
public Main() {
// Initializing of the Objects
cam = new GLEntwicklerkamera(500, 500);
keyboard = new GLTastatur();
while(true) {
if(keyboard.istGedrueckt()) {
char input = keyboard.gibZeichen();
switch(input) {
case 'c':
new CreateMenu();
break;
case 'l':
new ListMenu();
break;
case 'q':
System.exit(0); // Quits
}
}
}
}
}