-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameSettings.java
More file actions
45 lines (34 loc) · 923 Bytes
/
Copy pathGameSettings.java
File metadata and controls
45 lines (34 loc) · 923 Bytes
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
public class GameSettings
{
// screen settings
public static int screenWidth;
public static int screenHeight;
// game settings
public static int gameSpeed;
// ship settings
public static int shipWidth;
public static int shipHeight;
// bullet settings
public static int bulletWidth;
public static int bulletHeight;
// invaders settings
public static int invadersWidth;
public static int invadersHeight;
public GameSettings()
{
//screen settings
screenWidth = 700;
screenHeight = 600;
// game settings
gameSpeed = 500;
// ship settings
shipWidth = 80;
shipHeight = 80;
// bullet settings
bulletWidth = 5;
bulletHeight = 10;
// invaders settings
invadersWidth = 25;
invadersHeight = 25;
}
}