Rephrased the naming scheme for assets along with other stuff

This commit is contained in:
dvorakmortonxd 2026-10-21 07:34:04 +02:00
commit d5bb4f3828
12 changed files with 25 additions and 12 deletions

View file

@ -7,4 +7,5 @@ Java 2D graphics tutorial: https://docs.oracle.com/javase/tutorial/2d/ drawing s
## credits for assets
Ive used font from [OpenFont Library](https://openfont.org/) (the one called Caveat Brush)
all other assets are made by me, images are made in Krita.
all other assets are made by me, images are made in Krita.
while not a direct copy I took inspiration for the plyer sprites from this: https://tnypixels.itch.io/top-down-rpg-character-sprite-walk-idle-animation

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 638 B

After

Width:  |  Height:  |  Size: 638 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

View file

Before

Width:  |  Height:  |  Size: 924 B

After

Width:  |  Height:  |  Size: 924 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 682 B

After

Width:  |  Height:  |  Size: 682 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 533 B

After

Width:  |  Height:  |  Size: 533 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 638 B

After

Width:  |  Height:  |  Size: 638 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 429 B

Before After
Before After

View file

@ -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();
}