-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTitle.java
More file actions
70 lines (63 loc) · 2.99 KB
/
Copy pathTitle.java
File metadata and controls
70 lines (63 loc) · 2.99 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import greenfoot.GreenfootSound;
import greenfoot.World;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class Title extends World {
public static String backToTitle = "escape";
public static String blueJump = "i";
public static String blueLeft = "j";
public static String blueRight = "l";
public static String blueGear = "k";
public static String bluePickup = "u";
public static String blueShoot = "o";
public static String blueUse = "m";
public static String redJump = "w";
public static String redLeft = "a";
public static String redRight = "d";
public static String redGear = "s";
public static String redPickup = "q";
public static String redShoot = "e";
public static String redUse = "x";
public static String[] powerups = new String[]{"regolith", "fire", "freeze", "blindness", "watergame", "fillup", "portal", "speed", "space", "cutrope", "autoclimb", "nuke", "antiboiler", "biasref", "recyclerush"};
public static String[] allpowerups = new String[]{"regolith", "fire", "freeze", "blindness", "watergame", "fillup", "portal", "speed", "space", "cutrope", "autoclimb", "nuke", "antiboiler", "biasref", "recyclerush"};
public static int spawnrate = 0; // The value of PowerUps [Off, Low, High]
public static ArrayList<String> shootingAssistanceTypes = new ArrayList<String>(Arrays.asList("Manual", "Auto Aim", "SATA Aim"));
public static int shootingAssistanceStartingIndex = 0;
public static String shootingAssistance = shootingAssistanceTypes.get(shootingAssistanceStartingIndex);
public static boolean autopickup = true;
public static boolean worlds = false;
public static boolean bgsound = true;
public static boolean sounds = true;
public static GreenfootSound music = new GreenfootSound("Steam_Powered.wav");
public static Map<String, Integer> ptime = new HashMap();
public Title() {
super(1256, 570, 1);
this.addObject(new StartButton(), 628, 325);
this.addObject(new SettingsButton(), 628, 475);
// Contributor Text
this.addObject(new Text("JCharante\nB.E.R.T.'s Biggest Fan\nTeam 2410\nThe Metal Mustangs", 30, Color.ORANGE, (Color)null, Color.BLACK), 1090, 500);
// Version Text
this.addObject(new Text("SteamPowered++ v2.4", 30, Color.WHITE, (Color)null, Color.BLACK), 164, 555);
ptime.put("regolith", 1000);
ptime.put("fire", 500);
ptime.put("freeze", 250);
ptime.put("blindness", 1000);
ptime.put("watergame", 1000);
ptime.put("portal", 3);
ptime.put("fillup", 3);
ptime.put("speed", 500);
ptime.put("space", 1000);
ptime.put("cutrope", 3);
ptime.put("autoclimb", 3);
ptime.put("nuke", 3);
ptime.put("antiboiler", 250);
ptime.put("biasref", 250);
ptime.put("recyclerush", 5);
if(!music.isPlaying() && bgsound) {
music.playLoop();
}
}
}