Rename project & packages
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
package galaxyoyo.alice.gameengine.api.editor;
|
||||
package fr.ynerant.leveleditor.api.editor;
|
||||
|
||||
public enum Collision
|
||||
{
|
|
@ -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.Graphics2D;
|
|
@ -1,4 +1,4 @@
|
|||
package galaxyoyo.alice.gameengine.api.editor;
|
||||
package fr.ynerant.leveleditor.api.editor;
|
||||
|
||||
public class RawCase
|
||||
{
|
|
@ -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.util.ArrayList;
|
|
@ -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
|
||||
{
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* @author galaxyoyo
|
||||
*/
|
||||
package fr.ynerant.leveleditor.api.editor;
|
|
@ -1,4 +1,4 @@
|
|||
package galaxyoyo.alice.gameengine.api.editor.sprites;
|
||||
package fr.ynerant.leveleditor.api.editor.sprites;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -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.Color;
|
|
@ -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.io.BufferedInputStream;
|
|
@ -1,12 +1,12 @@
|
|||
/**
|
||||
* @author galaxyoyo
|
||||
*/
|
||||
package galaxyoyo.alice.gameengine.client.main;
|
||||
package fr.ynerant.leveleditor.client.main;
|
||||
|
||||
import galaxyoyo.alice.gameengine.api.editor.EditorAPI;
|
||||
import galaxyoyo.alice.gameengine.api.editor.RawMap;
|
||||
import galaxyoyo.alice.gameengine.api.editor.sprites.SpriteRegister;
|
||||
import galaxyoyo.gameengine.frame.MainFrame;
|
||||
import fr.ynerant.leveleditor.frame.MainFrame;
|
||||
import fr.ynerant.leveleditor.api.editor.EditorAPI;
|
||||
import fr.ynerant.leveleditor.api.editor.RawMap;
|
||||
import fr.ynerant.leveleditor.api.editor.sprites.SpriteRegister;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Desktop;
|
|
@ -4,4 +4,4 @@
|
|||
/**
|
||||
* @author galaxyoyo
|
||||
*/
|
||||
package galaxyoyo.alice.gameengine.client.main;
|
||||
package fr.ynerant.leveleditor.client.main;
|
|
@ -1,7 +1,7 @@
|
|||
package galaxyoyo.alice.gameengine.editor;
|
||||
package fr.ynerant.leveleditor.editor;
|
||||
|
||||
import galaxyoyo.alice.gameengine.api.editor.Case;
|
||||
import galaxyoyo.alice.gameengine.api.editor.Collision;
|
||||
import fr.ynerant.leveleditor.api.editor.Case;
|
||||
import fr.ynerant.leveleditor.api.editor.Collision;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Graphics;
|
|
@ -1,15 +1,15 @@
|
|||
package galaxyoyo.alice.gameengine.editor;
|
||||
package fr.ynerant.leveleditor.editor;
|
||||
|
||||
import galaxyoyo.alice.gameengine.api.editor.EditorAPI;
|
||||
import galaxyoyo.alice.gameengine.api.editor.RawMap;
|
||||
import galaxyoyo.alice.gameengine.api.editor.sprites.Category;
|
||||
import galaxyoyo.alice.gameengine.api.editor.sprites.Sprite;
|
||||
import galaxyoyo.alice.gameengine.api.editor.sprites.SpriteRegister;
|
||||
import galaxyoyo.gameengine.frame.listeners.CollidMapMouseListener;
|
||||
import galaxyoyo.gameengine.frame.listeners.CreateMapListener;
|
||||
import galaxyoyo.gameengine.frame.listeners.MapMouseListener;
|
||||
import galaxyoyo.gameengine.frame.listeners.OpenMapListener;
|
||||
import galaxyoyo.gameengine.frame.listeners.SpriteMouseListener;
|
||||
import fr.ynerant.leveleditor.api.editor.EditorAPI;
|
||||
import fr.ynerant.leveleditor.api.editor.RawMap;
|
||||
import fr.ynerant.leveleditor.api.editor.sprites.Category;
|
||||
import fr.ynerant.leveleditor.api.editor.sprites.Sprite;
|
||||
import fr.ynerant.leveleditor.api.editor.sprites.SpriteRegister;
|
||||
import fr.ynerant.leveleditor.frame.listeners.CollidMapMouseListener;
|
||||
import fr.ynerant.leveleditor.frame.listeners.CreateMapListener;
|
||||
import fr.ynerant.leveleditor.frame.listeners.MapMouseListener;
|
||||
import fr.ynerant.leveleditor.frame.listeners.OpenMapListener;
|
||||
import fr.ynerant.leveleditor.frame.listeners.SpriteMouseListener;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
|
@ -160,9 +160,9 @@ public class EditorFrame extends JFrame implements ChangeListener, ActionListene
|
|||
scroll2.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/unknown/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 1.png").getAbsolutePath()), scroll1);
|
||||
resources.addTab("", new ImageIcon(new File("assets/leveleditor/textures/layer 2.png").getAbsolutePath()), scroll2);
|
||||
resources.addTab("", new ImageIcon(new File("assets/leveleditor/textures/layer 3.png").getAbsolutePath()), scroll3);
|
||||
resources.addChangeListener(this);
|
||||
resources.setBackgroundAt(0, Color.white);
|
||||
resources.setBackgroundAt(1, Color.white);
|
|
@ -1,9 +1,9 @@
|
|||
package galaxyoyo.alice.gameengine.editor;
|
||||
package fr.ynerant.leveleditor.editor;
|
||||
|
||||
import galaxyoyo.alice.gameengine.api.editor.Case;
|
||||
import galaxyoyo.alice.gameengine.api.editor.RawCase;
|
||||
import galaxyoyo.alice.gameengine.api.editor.RawMap;
|
||||
import galaxyoyo.alice.gameengine.api.editor.sprites.SpriteRegister;
|
||||
import fr.ynerant.leveleditor.api.editor.Case;
|
||||
import fr.ynerant.leveleditor.api.editor.RawCase;
|
||||
import fr.ynerant.leveleditor.api.editor.RawMap;
|
||||
import fr.ynerant.leveleditor.api.editor.sprites.SpriteRegister;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.util.ArrayList;
|
|
@ -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.image.BufferedImage;
|
|
@ -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.Dimension;
|
|
@ -1,4 +1,4 @@
|
|||
package galaxyoyo.alice.gameengine.editor;
|
||||
package fr.ynerant.leveleditor.editor;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.JScrollPane;
|
|
@ -1,11 +1,12 @@
|
|||
/**
|
||||
* @author galaxyoyo
|
||||
*/
|
||||
package galaxyoyo.gameengine.frame;
|
||||
package fr.ynerant.leveleditor.frame;
|
||||
|
||||
import galaxyoyo.gameengine.frame.listeners.ChangeLAFListener;
|
||||
import galaxyoyo.gameengine.frame.listeners.CreateMapListener;
|
||||
import galaxyoyo.gameengine.frame.listeners.OpenMapListener;
|
||||
import fr.ynerant.leveleditor.client.main.Main;
|
||||
import fr.ynerant.leveleditor.frame.listeners.ChangeLAFListener;
|
||||
import fr.ynerant.leveleditor.frame.listeners.CreateMapListener;
|
||||
import fr.ynerant.leveleditor.frame.listeners.OpenMapListener;
|
||||
|
||||
import java.awt.Dimension;
|
||||
import java.awt.event.KeyEvent;
|
||||
|
@ -25,7 +26,7 @@ import org.apache.logging.log4j.core.Logger;
|
|||
public class MainFrame extends JFrame
|
||||
{
|
||||
/**
|
||||
* ID de sé
|
||||
* ID de série
|
||||
* @see {@link JFrame}
|
||||
*/
|
||||
private static final long serialVersionUID = -3168760121879418534L;
|
||||
|
@ -42,7 +43,7 @@ public class MainFrame extends JFrame
|
|||
* @see LogManager#getLogger(String)
|
||||
*/
|
||||
private static Logger LOGGER = (Logger) LogManager.getLogger("MainFrame");
|
||||
|
||||
|
||||
private JMenuBar menuBar = new JMenuBar();
|
||||
private JMenu fichier = new JMenu("Fichier");
|
||||
private JMenu display = new JMenu("Affichage");
|
||||
|
@ -56,7 +57,7 @@ public class MainFrame extends JFrame
|
|||
|
||||
/**
|
||||
* Constructeur
|
||||
* @see galaxyoyo.alice.gameengine.client.main.Main#launchFrame()
|
||||
* @see Main#launchFrame()
|
||||
*/
|
||||
private MainFrame()
|
||||
{
|
||||
|
@ -87,7 +88,7 @@ public class MainFrame extends JFrame
|
|||
changeLAF.add(darkLAF);
|
||||
|
||||
display.add(changeLAF);
|
||||
|
||||
|
||||
menuBar.add(fichier);
|
||||
menuBar.add(display);
|
||||
|
|
@ -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.ActionListener;
|
|
@ -1,10 +1,10 @@
|
|||
package galaxyoyo.gameengine.frame.listeners;
|
||||
package fr.ynerant.leveleditor.frame.listeners;
|
||||
|
||||
import galaxyoyo.alice.gameengine.api.editor.Case;
|
||||
import galaxyoyo.alice.gameengine.api.editor.Collision;
|
||||
import galaxyoyo.alice.gameengine.editor.CollidPanel;
|
||||
import galaxyoyo.alice.gameengine.editor.EditorFrame;
|
||||
import galaxyoyo.alice.gameengine.editor.Map;
|
||||
import fr.ynerant.leveleditor.api.editor.Case;
|
||||
import fr.ynerant.leveleditor.api.editor.Collision;
|
||||
import fr.ynerant.leveleditor.editor.CollidPanel;
|
||||
import fr.ynerant.leveleditor.editor.EditorFrame;
|
||||
import fr.ynerant.leveleditor.editor.Map;
|
||||
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
|
@ -1,10 +1,10 @@
|
|||
/**
|
||||
* @author galaxyoyo
|
||||
*/
|
||||
package galaxyoyo.gameengine.frame.listeners;
|
||||
package fr.ynerant.leveleditor.frame.listeners;
|
||||
|
||||
import galaxyoyo.alice.gameengine.client.main.Main;
|
||||
import galaxyoyo.gameengine.frame.MainFrame;
|
||||
import fr.ynerant.leveleditor.client.main.Main;
|
||||
import fr.ynerant.leveleditor.frame.MainFrame;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
|
@ -1,9 +1,9 @@
|
|||
package galaxyoyo.gameengine.frame.listeners;
|
||||
package fr.ynerant.leveleditor.frame.listeners;
|
||||
|
||||
import galaxyoyo.alice.gameengine.api.editor.Case;
|
||||
import galaxyoyo.alice.gameengine.editor.EditorFrame;
|
||||
import galaxyoyo.alice.gameengine.editor.Map;
|
||||
import galaxyoyo.alice.gameengine.editor.MapPanel;
|
||||
import fr.ynerant.leveleditor.api.editor.Case;
|
||||
import fr.ynerant.leveleditor.editor.EditorFrame;
|
||||
import fr.ynerant.leveleditor.editor.Map;
|
||||
import fr.ynerant.leveleditor.editor.MapPanel;
|
||||
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
|
@ -1,7 +1,7 @@
|
|||
package galaxyoyo.gameengine.frame.listeners;
|
||||
package fr.ynerant.leveleditor.frame.listeners;
|
||||
|
||||
import galaxyoyo.alice.gameengine.api.editor.EditorAPI;
|
||||
import galaxyoyo.gameengine.frame.MainFrame;
|
||||
import fr.ynerant.leveleditor.api.editor.EditorAPI;
|
||||
import fr.ynerant.leveleditor.frame.MainFrame;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
|
@ -1,7 +1,7 @@
|
|||
package galaxyoyo.gameengine.frame.listeners;
|
||||
package fr.ynerant.leveleditor.frame.listeners;
|
||||
|
||||
import galaxyoyo.alice.gameengine.editor.EditorFrame;
|
||||
import galaxyoyo.alice.gameengine.editor.SpriteComp;
|
||||
import fr.ynerant.leveleditor.editor.EditorFrame;
|
||||
import fr.ynerant.leveleditor.editor.SpriteComp;
|
||||
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* @author galaxyoyo
|
||||
*/
|
||||
package galaxyoyo.alice.gameengine.api.editor;
|
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: fr.ynerant.leveleditor.client.main.Main
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -1,85 +1,85 @@
|
|||
{
|
||||
"blank": [
|
||||
[0,0]
|
||||
],
|
||||
"gazon": [
|
||||
[0,0],
|
||||
[0,16],
|
||||
[0,32],
|
||||
[0,48],
|
||||
[0,64],
|
||||
[0,144],
|
||||
[0,160],
|
||||
[0,176],
|
||||
[16,144],
|
||||
[32,144],
|
||||
[16,160],
|
||||
[32,160],
|
||||
[32,224],
|
||||
[48,224],
|
||||
[64,224],
|
||||
[80,224],
|
||||
[96,224],
|
||||
[112,224],
|
||||
[112,208],
|
||||
[159,48],
|
||||
[160,166],
|
||||
[176,166],
|
||||
[128,144],
|
||||
[128,160],
|
||||
[144,80],
|
||||
[48,36],
|
||||
[64,36],
|
||||
[54,53],
|
||||
[70,53],
|
||||
[48,70],
|
||||
[16,28],
|
||||
[16,16],
|
||||
[16,32],
|
||||
[16,48],
|
||||
[16,64],
|
||||
[16,80],
|
||||
[32,16],
|
||||
[32,32],
|
||||
[32,48],
|
||||
[32,64],
|
||||
[32,80],
|
||||
[48,64],
|
||||
[48,80],
|
||||
[64,64],
|
||||
[64,80],
|
||||
[80,64],
|
||||
[80,80],
|
||||
[96,64],
|
||||
[96,80],
|
||||
[112,64],
|
||||
[112,80],
|
||||
[128,80],
|
||||
[128,64],
|
||||
[112,48],
|
||||
[128,48],
|
||||
[112,32],
|
||||
[128,32],
|
||||
[112,16],
|
||||
[128,16],
|
||||
[64,128],
|
||||
[80,128],
|
||||
[96,128],
|
||||
[48,144],
|
||||
[64,144],
|
||||
[80,144],
|
||||
[96,144],
|
||||
[48,160],
|
||||
[96,160],
|
||||
[48,176],
|
||||
[96,176],
|
||||
[32,176],
|
||||
[112,176],
|
||||
[64,160],
|
||||
[80,160],
|
||||
[64,176],
|
||||
[80,176],
|
||||
[64,192],
|
||||
[80,192]
|
||||
]
|
||||
{
|
||||
"blank": [
|
||||
[0,0]
|
||||
],
|
||||
"gazon": [
|
||||
[0,0],
|
||||
[0,16],
|
||||
[0,32],
|
||||
[0,48],
|
||||
[0,64],
|
||||
[0,144],
|
||||
[0,160],
|
||||
[0,176],
|
||||
[16,144],
|
||||
[32,144],
|
||||
[16,160],
|
||||
[32,160],
|
||||
[32,224],
|
||||
[48,224],
|
||||
[64,224],
|
||||
[80,224],
|
||||
[96,224],
|
||||
[112,224],
|
||||
[112,208],
|
||||
[159,48],
|
||||
[160,166],
|
||||
[176,166],
|
||||
[128,144],
|
||||
[128,160],
|
||||
[144,80],
|
||||
[48,36],
|
||||
[64,36],
|
||||
[54,53],
|
||||
[70,53],
|
||||
[48,70],
|
||||
[16,28],
|
||||
[16,16],
|
||||
[16,32],
|
||||
[16,48],
|
||||
[16,64],
|
||||
[16,80],
|
||||
[32,16],
|
||||
[32,32],
|
||||
[32,48],
|
||||
[32,64],
|
||||
[32,80],
|
||||
[48,64],
|
||||
[48,80],
|
||||
[64,64],
|
||||
[64,80],
|
||||
[80,64],
|
||||
[80,80],
|
||||
[96,64],
|
||||
[96,80],
|
||||
[112,64],
|
||||
[112,80],
|
||||
[128,80],
|
||||
[128,64],
|
||||
[112,48],
|
||||
[128,48],
|
||||
[112,32],
|
||||
[128,32],
|
||||
[112,16],
|
||||
[128,16],
|
||||
[64,128],
|
||||
[80,128],
|
||||
[96,128],
|
||||
[48,144],
|
||||
[64,144],
|
||||
[80,144],
|
||||
[96,144],
|
||||
[48,160],
|
||||
[96,160],
|
||||
[48,176],
|
||||
[96,176],
|
||||
[32,176],
|
||||
[112,176],
|
||||
[64,160],
|
||||
[80,160],
|
||||
[64,176],
|
||||
[80,176],
|
||||
[64,192],
|
||||
[80,192]
|
||||
]
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package galaxyoyo.unknown;
|
||||
package fr.ynerant.leveleditor;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|