merge how-to-make-game into master #1

Merged
SemvdH merged 7 commits from how-to-make-game into master 2020-05-10 19:27:26 +00:00
Showing only changes of commit cca7e4262c - Show all commits

View File

@@ -0,0 +1,38 @@
package netwerkprog.game;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
/**
* custom application config class for the game
*/
public class GameApplicationConfiguration extends LwjglApplicationConfiguration {
/**
* makes a new configuration with the given parameters
* @param width the width (in pixels)
* @param height the height (in pixels)
* @param fullscreen whether the app should run in fullscreen
*/
public GameApplicationConfiguration(int width, int height, boolean fullscreen) {
super();
super.width = width;
super.height = height;
super.fullscreen = fullscreen;
}
/**
* makes a new configuration with the given parameters.
* No fullscreen
* @param width the width (in pixels)
* @param height the height (in pixels)
*/
public GameApplicationConfiguration(int width, int height) {
this(width,height,false);
}
/**
* makes a new configuration with standard full hd width and height
*/
public GameApplicationConfiguration() {
this(1920,1080,false);
}
}