@@ -103,7 +103,7 @@ public class Escenario extends JComponent implements Constantes {
|
||||
else {
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
|
||||
InputStream inputStream = getClass().getResourceAsStream("/res/scene.json");
|
||||
InputStream inputStream = getClass().getResourceAsStream("/scene.json");
|
||||
try {
|
||||
String line;
|
||||
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
|
||||
@@ -460,7 +460,7 @@ public class Escenario extends JComponent implements Constantes {
|
||||
Animation animation;
|
||||
|
||||
// Load player animations
|
||||
Sheet characterSheet = new Sheet("/res/img/player/chara2.png", 54, 39);
|
||||
Sheet characterSheet = new Sheet("/img/player/chara2.png", 54, 39);
|
||||
int character = 6;
|
||||
try {
|
||||
animation = new Animation();
|
||||
@@ -475,7 +475,7 @@ public class Escenario extends JComponent implements Constantes {
|
||||
}
|
||||
|
||||
// Load enemy animations
|
||||
characterSheet = new Sheet("/res/img/enemy/chara4.png", 54, 39);
|
||||
characterSheet = new Sheet("/img/enemy/chara4.png", 54, 39);
|
||||
character = 57;
|
||||
try {
|
||||
animation = new Animation();
|
||||
@@ -490,7 +490,7 @@ public class Escenario extends JComponent implements Constantes {
|
||||
}
|
||||
|
||||
// Load the chest animation
|
||||
Sheet chestSheet = new Sheet("/res/img/chest/chests.png", 54, 63);
|
||||
Sheet chestSheet = new Sheet("/img/chest/chests.png", 54, 63);
|
||||
try {
|
||||
animation = new Animation();
|
||||
animation.addImage(Animation.Direction.NONE, chestSheet.getTexture(54));
|
||||
@@ -512,12 +512,12 @@ public class Escenario extends JComponent implements Constantes {
|
||||
stringBuilder.insert(0, 0);
|
||||
}
|
||||
stringBuilder.append(".png");
|
||||
animation.addImage(Animation.Direction.NONE, "/res/img/portal/gray/" + stringBuilder.toString());
|
||||
animation.addImage(Animation.Direction.NONE, "/img/portal/gray/" + stringBuilder.toString());
|
||||
}
|
||||
sprites.put(Animation.SpriteType.PORTAL, animation);
|
||||
|
||||
// Load the background textures
|
||||
textureSheet = new Sheet("/res/img/textures/3.png", 64, 64);
|
||||
textureSheet = new Sheet("/img/textures/3.png", 64, 64);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -716,7 +716,7 @@ public class Escenario extends JComponent implements Constantes {
|
||||
logger.info("Opened chest");
|
||||
|
||||
try {
|
||||
Sound chestOpenSound = new Sound("/res/snd/OpenChest.wav");
|
||||
Sound chestOpenSound = new Sound("/snd/OpenChest.wav");
|
||||
chestOpenSound.play();
|
||||
}
|
||||
catch (SoundException e) {
|
||||
|
@@ -170,7 +170,7 @@ public class Lienzo extends Canvas implements Constantes {
|
||||
}
|
||||
|
||||
try {
|
||||
backgroundMusic = new Sound("/res/snd/GameLoop.wav");
|
||||
backgroundMusic = new Sound("/snd/GameLoop.wav");
|
||||
backgroundMusic.setLoops(Clip.LOOP_CONTINUOUSLY);
|
||||
backgroundMusic.play();
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ public class VentanaPrincipal extends JFrame implements Constantes {
|
||||
setSize(SCREEN_SIZE.width - 50, SCREEN_SIZE.height - 50);
|
||||
|
||||
setTitle(TITLE);
|
||||
String icon = "/res/img/icon.png";
|
||||
String icon = "/img/icon.png";
|
||||
try {
|
||||
BufferedImage image = ImageIO.read(getClass().getResourceAsStream(icon));
|
||||
this.setIconImage(image);
|
||||
|
Before Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 225 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 223 KiB |
Before Width: | Height: | Size: 159 KiB |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 290 B |
Before Width: | Height: | Size: 319 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 375 B |
Before Width: | Height: | Size: 375 B |
Before Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 514 B |
Before Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 573 B |
Before Width: | Height: | Size: 639 B |
Before Width: | Height: | Size: 693 B |
Before Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 759 B |
Before Width: | Height: | Size: 764 B |
Before Width: | Height: | Size: 784 B |
Before Width: | Height: | Size: 803 B |
Before Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 871 B |
Before Width: | Height: | Size: 870 B |
Before Width: | Height: | Size: 885 B |
Before Width: | Height: | Size: 926 B |
Before Width: | Height: | Size: 940 B |
Before Width: | Height: | Size: 1007 B |
Before Width: | Height: | Size: 992 B |
Before Width: | Height: | Size: 977 B |
Before Width: | Height: | Size: 1011 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1022 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1003 B |
Before Width: | Height: | Size: 974 B |
Before Width: | Height: | Size: 956 B |
Before Width: | Height: | Size: 913 B |
Before Width: | Height: | Size: 896 B |
Before Width: | Height: | Size: 833 B |