Rephrased the naming scheme for assets along with other stuff
This commit is contained in:
parent
784ef65ec9
commit
d5bb4f3828
12 changed files with 25 additions and 12 deletions
|
|
@ -97,18 +97,18 @@ public class Game extends JPanel implements ActionListener, KeyListener {
|
|||
}
|
||||
// loads up the image assets
|
||||
try {
|
||||
planetZX311 = ImageIO.read(new File("assets/planet-ZX311.png"));
|
||||
planetZX311H = ImageIO.read(new File("assets/planet-ZX311_highlighted.png"));
|
||||
planetZX311 = ImageIO.read(new File("assets/planetZX311.png"));
|
||||
planetZX311H = ImageIO.read(new File("assets/planetZX311Highlighted.png"));
|
||||
button = ImageIO.read(new File("assets/button.png"));
|
||||
buttonH = ImageIO.read(new File("assets/button_highlighted.png"));
|
||||
buttonH = ImageIO.read(new File("assets/buttonHighlighted.png"));
|
||||
rocket = ImageIO.read(new File("assets/rocket.png"));
|
||||
rocketExhaust = ImageIO.read(new File("assets/rocket_exhaust.png"));
|
||||
rocketTop = ImageIO.read(new File("assets/rocket_top.png"));
|
||||
rocketBottom = ImageIO.read(new File("assets/rocket_bottom.png"));
|
||||
rocketExhaust = ImageIO.read(new File("assets/rocketExhaust.png"));
|
||||
rocketTop = ImageIO.read(new File("assets/rocketTop.png"));
|
||||
rocketBottom = ImageIO.read(new File("assets/rocketBottom.png"));
|
||||
parachute = ImageIO.read(new File("assets/parachute.png"));
|
||||
landingPlatform = ImageIO.read(new File("assets/landing_platform.png"));
|
||||
rocketLanding0 = ImageIO.read(new File("assets/rocket_landing0.png"));
|
||||
rocketLanding1 = ImageIO.read(new File("assets/rocket_landing1.png"));
|
||||
landingPlatform = ImageIO.read(new File("assets/landingPlatform.png"));
|
||||
rocketLanding0 = ImageIO.read(new File("assets/rocketLanding0.png"));
|
||||
rocketLanding1 = ImageIO.read(new File("assets/rocketLanding1.png"));
|
||||
sun = ImageIO.read(new File("assets/sun.png"));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
|
@ -203,7 +203,7 @@ public class Game extends JPanel implements ActionListener, KeyListener {
|
|||
}
|
||||
else if (levelProgress && (windowWidth-fadeAnimation)<=0) { level = 2; }
|
||||
}
|
||||
if (level == 2) {
|
||||
else if (level == 2) {
|
||||
if (detachTimer < 260) {
|
||||
g.setColor(Color.GRAY);
|
||||
for (int i = 0; i < 16; i++) { // drawing the stars
|
||||
|
|
@ -291,7 +291,7 @@ public class Game extends JPanel implements ActionListener, KeyListener {
|
|||
fadeAnimation += 20;
|
||||
}
|
||||
}
|
||||
if (level == 3) {
|
||||
else if (level == 3) {
|
||||
g.setColor(new Color(127, 127,255));
|
||||
g.fillRect(0,0,windowWidth,windowHeight);
|
||||
Graphics2D g2 = (Graphics2D) g;
|
||||
|
|
@ -301,6 +301,18 @@ public class Game extends JPanel implements ActionListener, KeyListener {
|
|||
g.drawImage(landingPlatform, 0, 340, windowWidth, windowWidth/128*30, this);
|
||||
g.drawImage(rocketLanding1, windowWidth / 2 - 73, 300, 147, 111, this);
|
||||
}
|
||||
else {
|
||||
g.setColor(Color.BLACK);
|
||||
g.fillRect(0,0,windowWidth,windowHeight);
|
||||
g.setColor(Color.WHITE);
|
||||
g.setFont(caveat.deriveFont(Font.BOLD, 56f));
|
||||
g.drawString("Sorry, this is as far as I got with", 30, windowHeight/2-160);
|
||||
g.drawString("this project, It's still a work in", 30, windowHeight/2-160+70);
|
||||
g.drawString("progress so I'll definitely add more", 30, windowHeight/2-160+140);
|
||||
g.drawString("content but I just wanted to make sure", 30, windowHeight/2-160+210);
|
||||
g.drawString("that I could ship it for now so I", 30, windowHeight/2-160+280);
|
||||
g.drawString("could be safe from ratticus (I'm scared)", 30, windowHeight/2-160+350);
|
||||
}
|
||||
Toolkit.getDefaultToolkit().sync();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue