Skip to content
Snippets Groups Projects
Commit 769f7a79 authored by Azurlors's avatar Azurlors
Browse files

Pour Louis

parent 5572888b
Branches
No related tags found
No related merge requests found
...@@ -15,4 +15,12 @@ ...@@ -15,4 +15,12 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project> </project>
\ No newline at end of file
...@@ -30,7 +30,7 @@ public class Jeu implements Game{ ...@@ -30,7 +30,7 @@ public class Jeu implements Game{
public Jeu(String source) { public Jeu(String source) {
BufferedReader helpReader; BufferedReader helpReader;
beginPath = Paths.get(".").toAbsolutePath().normalize() + "\\src\\main\\resources\\Frames_perso\\"; beginPath = Paths.get(".").toAbsolutePath().normalize() + "\\src\\main\\resources\\Frames_perso\\"; // met ce que tu veux pour pas avoir de pb et pour les tests
movement = "Character_idle"; movement = "Character_idle";
numberOfMovement = 1; numberOfMovement = 1;
characterSkinPath = beginPath + movement + Integer.toString(numberOfMovement) + ".png"; // path premiere frame characterSkinPath = beginPath + movement + Integer.toString(numberOfMovement) + ".png"; // path premiere frame
......
...@@ -12,6 +12,13 @@ public class Main { ...@@ -12,6 +12,13 @@ public class Main {
public static void main(String[] args) throws InterruptedException { public static void main(String[] args) throws InterruptedException {
//Façon de prendre l'url pour toi Louis
System.out.println("\n");
String fn = "Frames_perso/Character_attack1.png";
java.net.URL url = Main.class.getClassLoader().getResource(fn);
System.out.println(url);
System.out.println("\n");
// creation du jeu particulier et de son afficheur // creation du jeu particulier et de son afficheur
Jeu game = new Jeu("helpFilePacman.txt"); Jeu game = new Jeu("helpFilePacman.txt");
Painter painter = new Painter(); Painter painter = new Painter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment