-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameSettings.java
45 lines (36 loc) · 1.01 KB
/
GameSettings.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
package com.vyorkin.engine;
public class GameSettings {
public int width;
public int height;
public String title;
public String version;
public String log;
public String preferences;
public boolean developer;
public String cursorFileName;
public boolean useGL20;
public boolean useAccelerometer;
public boolean useCompass;
public boolean useWakelock;
public boolean hideStatusBar;
public boolean vSyncEnabled;
public boolean fullscreen;
public boolean resizable;
public boolean forceExit;
public GameSettings(String title, String version, int width, int height) {
this(title, version, title, width, height);
}
public GameSettings(String title, String version,
String log, int width, int height) {
this.version = version;
this.log = log;
this.width = width;
this.height = height;
this.preferences = title.toLowerCase().replace(' ', '-');
this.forceExit = true;
this.resizable = true;
this.vSyncEnabled = true;
this.useAccelerometer = true;
this.useCompass = true;
}
}