1
0
Fork 0
This commit is contained in:
Florian Richer (MrDev023) 2015-12-24 13:15:02 +01:00
parent f298038298
commit 145438d5f4
12 changed files with 243 additions and 26 deletions

View file

@ -26,10 +26,13 @@ public class GameEngine {
public static void start(String title,int width,int height){
TITLE = title;
System.out.println("---------------------------- Create OpenGL Context -----------------------------------");
Display.create(title, width, height);
Display.createContext();
Display.printMonitorsInfo();
System.out.println("Window : " + width + "x" + height);
System.out.println("OpenGL " + GL11.glGetString(GL11.GL_VERSION));
System.out.println("--------------------------------------------------------------------------------------");
init();
loop();
}
@ -46,13 +49,15 @@ public class GameEngine {
Timer.addTimer("ticks");
Timer.addTimer("fps");
Display.setMouseGrabbed(true);
System.out.println("---------------------------- Load Audio File -----------------------------------------");
try {
a = new Audio("res/audio/test.ogg");
a = new Audio("res/audio/test.wav");
a.playSound();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("--------------------------------------------------------------------------------------");
}
public static void loop(){