diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-19 13:17:53 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-19 13:17:53 +0100 |
commit | c9355b27e8114b179065ae288b17d2f94ab14359 (patch) | |
tree | ca4fc2dab4a71eaec3677aab62ea1de64fae419e | |
parent | Create java package for the project (diff) | |
download | Subconscious-java-c9355b27e8114b179065ae288b17d2f94ab14359.tar.gz Subconscious-java-c9355b27e8114b179065ae288b17d2f94ab14359.zip |
Move util.Palette to graphics.Palette, fix canvas resize
-rw-r--r-- | src/subconscious/graphics/BattleScene.java | 1 | ||||
-rw-r--r-- | src/subconscious/graphics/MapScene.java | 1 | ||||
-rw-r--r-- | src/subconscious/graphics/Palette.java (renamed from src/subconscious/util/Palette.java) | 2 | ||||
-rw-r--r-- | src/subconscious/graphics/Scene.java | 2 |
4 files changed, 3 insertions, 3 deletions
diff --git a/src/subconscious/graphics/BattleScene.java b/src/subconscious/graphics/BattleScene.java index b21be04..5199ecc 100644 --- a/src/subconscious/graphics/BattleScene.java +++ b/src/subconscious/graphics/BattleScene.java @@ -1,6 +1,5 @@ package subconscious.graphics; -import subconscious.util.Palette; import subconscious.Actor; import subconscious.MapLoader; import subconscious.Tile; diff --git a/src/subconscious/graphics/MapScene.java b/src/subconscious/graphics/MapScene.java index 933526b..93508c4 100644 --- a/src/subconscious/graphics/MapScene.java +++ b/src/subconscious/graphics/MapScene.java @@ -1,6 +1,5 @@ package subconscious.graphics; -import subconscious.util.Palette; import subconscious.Map; import subconscious.Tile; import subconscious.Actor; diff --git a/src/subconscious/util/Palette.java b/src/subconscious/graphics/Palette.java index adab9ad..75937a0 100644 --- a/src/subconscious/util/Palette.java +++ b/src/subconscious/graphics/Palette.java @@ -1,4 +1,4 @@ -package subconscious.util; +package subconscious.graphics; import java.awt.Color; diff --git a/src/subconscious/graphics/Scene.java b/src/subconscious/graphics/Scene.java index 53b936c..6daf9c2 100644 --- a/src/subconscious/graphics/Scene.java +++ b/src/subconscious/graphics/Scene.java @@ -40,6 +40,8 @@ public abstract class Scene extends JPanel protected Scene() { + this.addComponentListener(this); + this.canvasSize = GameWindow.WINDOW_SIZE; this.canvas = new Canvas(); |