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

Pour Louis

parent 5572888b
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,12 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>
\ No newline at end of file
......@@ -30,7 +30,7 @@ public class Jeu implements Game{
public Jeu(String source) {
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";
numberOfMovement = 1;
characterSkinPath = beginPath + movement + Integer.toString(numberOfMovement) + ".png"; // path premiere frame
......
......@@ -12,6 +12,13 @@ public class Main {
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
Jeu game = new Jeu("helpFilePacman.txt");
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