Rename project & packages

This commit is contained in:
Yohann D'ANELLO 2020-02-25 00:07:30 +01:00
parent 88821ab2b5
commit 15bea5fde0
35 changed files with 173 additions and 168 deletions

View File

@ -1,2 +1,3 @@
# Alice Game Engine # Level Editor
_by galaxyoyo_
_by ÿnérant_

View File

@ -1,6 +1,6 @@
package galaxyoyo.alice.gameengine.api.editor; package fr.ynerant.leveleditor.api.editor;
import galaxyoyo.alice.gameengine.api.editor.sprites.Sprite; import fr.ynerant.leveleditor.api.editor.sprites.Sprite;
public class Case public class Case
{ {

View File

@ -1,4 +1,4 @@
package galaxyoyo.alice.gameengine.api.editor; package fr.ynerant.leveleditor.api.editor;
public enum Collision public enum Collision
{ {

View File

@ -1,6 +1,6 @@
package galaxyoyo.alice.gameengine.api.editor; package fr.ynerant.leveleditor.api.editor;
import galaxyoyo.alice.gameengine.editor.Map; import fr.ynerant.leveleditor.editor.Map;
import java.awt.Color; import java.awt.Color;
import java.awt.Graphics2D; import java.awt.Graphics2D;

View File

@ -1,4 +1,4 @@
package galaxyoyo.alice.gameengine.api.editor; package fr.ynerant.leveleditor.api.editor;
public class RawCase public class RawCase
{ {

View File

@ -1,6 +1,6 @@
package galaxyoyo.alice.gameengine.api.editor; package fr.ynerant.leveleditor.api.editor;
import galaxyoyo.alice.gameengine.editor.Map; import fr.ynerant.leveleditor.editor.Map;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,6 +1,6 @@
package galaxyoyo.alice.gameengine.api.editor; package fr.ynerant.leveleditor.api.editor;
import galaxyoyo.alice.gameengine.api.editor.sprites.Sprite; import fr.ynerant.leveleditor.api.editor.sprites.Sprite;
public class RawSprite public class RawSprite
{ {

View File

@ -0,0 +1,4 @@
/**
* @author galaxyoyo
*/
package fr.ynerant.leveleditor.api.editor;

View File

@ -1,4 +1,4 @@
package galaxyoyo.alice.gameengine.api.editor.sprites; package fr.ynerant.leveleditor.api.editor.sprites;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package galaxyoyo.alice.gameengine.api.editor.sprites; package fr.ynerant.leveleditor.api.editor.sprites;
import java.awt.AlphaComposite; import java.awt.AlphaComposite;
import java.awt.Color; import java.awt.Color;

View File

@ -1,6 +1,6 @@
package galaxyoyo.alice.gameengine.api.editor.sprites; package fr.ynerant.leveleditor.api.editor.sprites;
import galaxyoyo.alice.gameengine.client.main.Main; import fr.ynerant.leveleditor.client.main.Main;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.io.BufferedInputStream; import java.io.BufferedInputStream;

View File

@ -1,12 +1,12 @@
/** /**
* @author galaxyoyo * @author galaxyoyo
*/ */
package galaxyoyo.alice.gameengine.client.main; package fr.ynerant.leveleditor.client.main;
import galaxyoyo.alice.gameengine.api.editor.EditorAPI; import fr.ynerant.leveleditor.frame.MainFrame;
import galaxyoyo.alice.gameengine.api.editor.RawMap; import fr.ynerant.leveleditor.api.editor.EditorAPI;
import galaxyoyo.alice.gameengine.api.editor.sprites.SpriteRegister; import fr.ynerant.leveleditor.api.editor.RawMap;
import galaxyoyo.gameengine.frame.MainFrame; import fr.ynerant.leveleditor.api.editor.sprites.SpriteRegister;
import java.awt.Color; import java.awt.Color;
import java.awt.Desktop; import java.awt.Desktop;

View File

@ -4,4 +4,4 @@
/** /**
* @author galaxyoyo * @author galaxyoyo
*/ */
package galaxyoyo.alice.gameengine.client.main; package fr.ynerant.leveleditor.client.main;

View File

@ -1,7 +1,7 @@
package galaxyoyo.alice.gameengine.editor; package fr.ynerant.leveleditor.editor;
import galaxyoyo.alice.gameengine.api.editor.Case; import fr.ynerant.leveleditor.api.editor.Case;
import galaxyoyo.alice.gameengine.api.editor.Collision; import fr.ynerant.leveleditor.api.editor.Collision;
import java.awt.Color; import java.awt.Color;
import java.awt.Graphics; import java.awt.Graphics;

View File

@ -1,15 +1,15 @@
package galaxyoyo.alice.gameengine.editor; package fr.ynerant.leveleditor.editor;
import galaxyoyo.alice.gameengine.api.editor.EditorAPI; import fr.ynerant.leveleditor.api.editor.EditorAPI;
import galaxyoyo.alice.gameengine.api.editor.RawMap; import fr.ynerant.leveleditor.api.editor.RawMap;
import galaxyoyo.alice.gameengine.api.editor.sprites.Category; import fr.ynerant.leveleditor.api.editor.sprites.Category;
import galaxyoyo.alice.gameengine.api.editor.sprites.Sprite; import fr.ynerant.leveleditor.api.editor.sprites.Sprite;
import galaxyoyo.alice.gameengine.api.editor.sprites.SpriteRegister; import fr.ynerant.leveleditor.api.editor.sprites.SpriteRegister;
import galaxyoyo.gameengine.frame.listeners.CollidMapMouseListener; import fr.ynerant.leveleditor.frame.listeners.CollidMapMouseListener;
import galaxyoyo.gameengine.frame.listeners.CreateMapListener; import fr.ynerant.leveleditor.frame.listeners.CreateMapListener;
import galaxyoyo.gameengine.frame.listeners.MapMouseListener; import fr.ynerant.leveleditor.frame.listeners.MapMouseListener;
import galaxyoyo.gameengine.frame.listeners.OpenMapListener; import fr.ynerant.leveleditor.frame.listeners.OpenMapListener;
import galaxyoyo.gameengine.frame.listeners.SpriteMouseListener; import fr.ynerant.leveleditor.frame.listeners.SpriteMouseListener;
import java.awt.BorderLayout; import java.awt.BorderLayout;
import java.awt.Color; import java.awt.Color;
@ -160,9 +160,9 @@ public class EditorFrame extends JFrame implements ChangeListener, ActionListene
scroll2.getHorizontalScrollBar().setMaximum(0); scroll2.getHorizontalScrollBar().setMaximum(0);
scroll3.getHorizontalScrollBar().setMaximum(0); scroll3.getHorizontalScrollBar().setMaximum(0);
resources.addTab("", new ImageIcon(new File("assets/unknown/textures/layer 1.png").getAbsolutePath()), scroll1); resources.addTab("", new ImageIcon(new File("assets/leveleditor/textures/layer 1.png").getAbsolutePath()), scroll1);
resources.addTab("", new ImageIcon(new File("assets/unknown/textures/layer 2.png").getAbsolutePath()), scroll2); resources.addTab("", new ImageIcon(new File("assets/leveleditor/textures/layer 2.png").getAbsolutePath()), scroll2);
resources.addTab("", new ImageIcon(new File("assets/unknown/textures/layer 3.png").getAbsolutePath()), scroll3); resources.addTab("", new ImageIcon(new File("assets/leveleditor/textures/layer 3.png").getAbsolutePath()), scroll3);
resources.addChangeListener(this); resources.addChangeListener(this);
resources.setBackgroundAt(0, Color.white); resources.setBackgroundAt(0, Color.white);
resources.setBackgroundAt(1, Color.white); resources.setBackgroundAt(1, Color.white);

View File

@ -1,9 +1,9 @@
package galaxyoyo.alice.gameengine.editor; package fr.ynerant.leveleditor.editor;
import galaxyoyo.alice.gameengine.api.editor.Case; import fr.ynerant.leveleditor.api.editor.Case;
import galaxyoyo.alice.gameengine.api.editor.RawCase; import fr.ynerant.leveleditor.api.editor.RawCase;
import galaxyoyo.alice.gameengine.api.editor.RawMap; import fr.ynerant.leveleditor.api.editor.RawMap;
import galaxyoyo.alice.gameengine.api.editor.sprites.SpriteRegister; import fr.ynerant.leveleditor.api.editor.sprites.SpriteRegister;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,6 +1,6 @@
package galaxyoyo.alice.gameengine.editor; package fr.ynerant.leveleditor.editor;
import galaxyoyo.alice.gameengine.api.editor.Case; import fr.ynerant.leveleditor.api.editor.Case;
import java.awt.Graphics; import java.awt.Graphics;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;

View File

@ -1,6 +1,6 @@
package galaxyoyo.alice.gameengine.editor; package fr.ynerant.leveleditor.editor;
import galaxyoyo.alice.gameengine.api.editor.sprites.Sprite; import fr.ynerant.leveleditor.api.editor.sprites.Sprite;
import java.awt.Color; import java.awt.Color;
import java.awt.Dimension; import java.awt.Dimension;

View File

@ -1,4 +1,4 @@
package galaxyoyo.alice.gameengine.editor; package fr.ynerant.leveleditor.editor;
import java.awt.*; import java.awt.*;
import javax.swing.JScrollPane; import javax.swing.JScrollPane;

View File

@ -1,11 +1,12 @@
/** /**
* @author galaxyoyo * @author galaxyoyo
*/ */
package galaxyoyo.gameengine.frame; package fr.ynerant.leveleditor.frame;
import galaxyoyo.gameengine.frame.listeners.ChangeLAFListener; import fr.ynerant.leveleditor.client.main.Main;
import galaxyoyo.gameengine.frame.listeners.CreateMapListener; import fr.ynerant.leveleditor.frame.listeners.ChangeLAFListener;
import galaxyoyo.gameengine.frame.listeners.OpenMapListener; import fr.ynerant.leveleditor.frame.listeners.CreateMapListener;
import fr.ynerant.leveleditor.frame.listeners.OpenMapListener;
import java.awt.Dimension; import java.awt.Dimension;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
@ -25,7 +26,7 @@ import org.apache.logging.log4j.core.Logger;
public class MainFrame extends JFrame public class MainFrame extends JFrame
{ {
/** /**
* ID de sé * ID de série
* @see {@link JFrame} * @see {@link JFrame}
*/ */
private static final long serialVersionUID = -3168760121879418534L; private static final long serialVersionUID = -3168760121879418534L;
@ -42,7 +43,7 @@ public class MainFrame extends JFrame
* @see LogManager#getLogger(String) * @see LogManager#getLogger(String)
*/ */
private static Logger LOGGER = (Logger) LogManager.getLogger("MainFrame"); private static Logger LOGGER = (Logger) LogManager.getLogger("MainFrame");
private JMenuBar menuBar = new JMenuBar(); private JMenuBar menuBar = new JMenuBar();
private JMenu fichier = new JMenu("Fichier"); private JMenu fichier = new JMenu("Fichier");
private JMenu display = new JMenu("Affichage"); private JMenu display = new JMenu("Affichage");
@ -56,7 +57,7 @@ public class MainFrame extends JFrame
/** /**
* Constructeur * Constructeur
* @see galaxyoyo.alice.gameengine.client.main.Main#launchFrame() * @see Main#launchFrame()
*/ */
private MainFrame() private MainFrame()
{ {
@ -87,7 +88,7 @@ public class MainFrame extends JFrame
changeLAF.add(darkLAF); changeLAF.add(darkLAF);
display.add(changeLAF); display.add(changeLAF);
menuBar.add(fichier); menuBar.add(fichier);
menuBar.add(display); menuBar.add(display);

View File

@ -1,6 +1,6 @@
package galaxyoyo.gameengine.frame.listeners; package fr.ynerant.leveleditor.frame.listeners;
import galaxyoyo.gameengine.frame.MainFrame; import fr.ynerant.leveleditor.frame.MainFrame;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;

View File

@ -1,10 +1,10 @@
package galaxyoyo.gameengine.frame.listeners; package fr.ynerant.leveleditor.frame.listeners;
import galaxyoyo.alice.gameengine.api.editor.Case; import fr.ynerant.leveleditor.api.editor.Case;
import galaxyoyo.alice.gameengine.api.editor.Collision; import fr.ynerant.leveleditor.api.editor.Collision;
import galaxyoyo.alice.gameengine.editor.CollidPanel; import fr.ynerant.leveleditor.editor.CollidPanel;
import galaxyoyo.alice.gameengine.editor.EditorFrame; import fr.ynerant.leveleditor.editor.EditorFrame;
import galaxyoyo.alice.gameengine.editor.Map; import fr.ynerant.leveleditor.editor.Map;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;

View File

@ -1,10 +1,10 @@
/** /**
* @author galaxyoyo * @author galaxyoyo
*/ */
package galaxyoyo.gameengine.frame.listeners; package fr.ynerant.leveleditor.frame.listeners;
import galaxyoyo.alice.gameengine.client.main.Main; import fr.ynerant.leveleditor.client.main.Main;
import galaxyoyo.gameengine.frame.MainFrame; import fr.ynerant.leveleditor.frame.MainFrame;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;

View File

@ -1,9 +1,9 @@
package galaxyoyo.gameengine.frame.listeners; package fr.ynerant.leveleditor.frame.listeners;
import galaxyoyo.alice.gameengine.api.editor.Case; import fr.ynerant.leveleditor.api.editor.Case;
import galaxyoyo.alice.gameengine.editor.EditorFrame; import fr.ynerant.leveleditor.editor.EditorFrame;
import galaxyoyo.alice.gameengine.editor.Map; import fr.ynerant.leveleditor.editor.Map;
import galaxyoyo.alice.gameengine.editor.MapPanel; import fr.ynerant.leveleditor.editor.MapPanel;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;

View File

@ -1,7 +1,7 @@
package galaxyoyo.gameengine.frame.listeners; package fr.ynerant.leveleditor.frame.listeners;
import galaxyoyo.alice.gameengine.api.editor.EditorAPI; import fr.ynerant.leveleditor.api.editor.EditorAPI;
import galaxyoyo.gameengine.frame.MainFrame; import fr.ynerant.leveleditor.frame.MainFrame;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;

View File

@ -1,7 +1,7 @@
package galaxyoyo.gameengine.frame.listeners; package fr.ynerant.leveleditor.frame.listeners;
import galaxyoyo.alice.gameengine.editor.EditorFrame; import fr.ynerant.leveleditor.editor.EditorFrame;
import galaxyoyo.alice.gameengine.editor.SpriteComp; import fr.ynerant.leveleditor.editor.SpriteComp;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;

View File

@ -1,4 +0,0 @@
/**
* @author galaxyoyo
*/
package galaxyoyo.alice.gameengine.api.editor;

View File

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: fr.ynerant.leveleditor.client.main.Main

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 187 B

After

Width:  |  Height:  |  Size: 187 B

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -1,85 +1,85 @@
{ {
"blank": [ "blank": [
[0,0] [0,0]
], ],
"gazon": [ "gazon": [
[0,0], [0,0],
[0,16], [0,16],
[0,32], [0,32],
[0,48], [0,48],
[0,64], [0,64],
[0,144], [0,144],
[0,160], [0,160],
[0,176], [0,176],
[16,144], [16,144],
[32,144], [32,144],
[16,160], [16,160],
[32,160], [32,160],
[32,224], [32,224],
[48,224], [48,224],
[64,224], [64,224],
[80,224], [80,224],
[96,224], [96,224],
[112,224], [112,224],
[112,208], [112,208],
[159,48], [159,48],
[160,166], [160,166],
[176,166], [176,166],
[128,144], [128,144],
[128,160], [128,160],
[144,80], [144,80],
[48,36], [48,36],
[64,36], [64,36],
[54,53], [54,53],
[70,53], [70,53],
[48,70], [48,70],
[16,28], [16,28],
[16,16], [16,16],
[16,32], [16,32],
[16,48], [16,48],
[16,64], [16,64],
[16,80], [16,80],
[32,16], [32,16],
[32,32], [32,32],
[32,48], [32,48],
[32,64], [32,64],
[32,80], [32,80],
[48,64], [48,64],
[48,80], [48,80],
[64,64], [64,64],
[64,80], [64,80],
[80,64], [80,64],
[80,80], [80,80],
[96,64], [96,64],
[96,80], [96,80],
[112,64], [112,64],
[112,80], [112,80],
[128,80], [128,80],
[128,64], [128,64],
[112,48], [112,48],
[128,48], [128,48],
[112,32], [112,32],
[128,32], [128,32],
[112,16], [112,16],
[128,16], [128,16],
[64,128], [64,128],
[80,128], [80,128],
[96,128], [96,128],
[48,144], [48,144],
[64,144], [64,144],
[80,144], [80,144],
[96,144], [96,144],
[48,160], [48,160],
[96,160], [96,160],
[48,176], [48,176],
[96,176], [96,176],
[32,176], [32,176],
[112,176], [112,176],
[64,160], [64,160],
[80,160], [80,160],
[64,176], [64,176],
[80,176], [80,176],
[64,192], [64,192],
[80,192] [80,192]
] ]
} }

View File

@ -1,4 +1,4 @@
package galaxyoyo.unknown; package fr.ynerant.leveleditor;
import junit.framework.Test; import junit.framework.Test;
import junit.framework.TestCase; import junit.framework.TestCase;