diff --git a/src/.DS_Store b/src/.DS_Store deleted file mode 100644 index 24957dce42144cc115095b85bb08b4dcbdca5642..0000000000000000000000000000000000000000 Binary files a/src/.DS_Store and /dev/null differ diff --git a/src/Player.java b/src/Player.java deleted file mode 100644 index e75ce25c2e6d44bfd62bc8acf6704413bf02bb88..0000000000000000000000000000000000000000 --- a/src/Player.java +++ /dev/null @@ -1,35 +0,0 @@ -import bagel.Image; -import bagel.util.Point; -/** - * a movable entity: player - */ -public class Player{ - /** - * the player's image displayed in the window - */ - private final Image image; - /** - * render position of the player in the window - */ - private Point pos; - /** - * Player's current energy value - */ - private int energy; - /** - * constructor - * @param x abscissa - * @param y ordinate - */ - public Player(double x, double y,int energy) { - this.image = new Image("res/images/player.png"); - this.pos = new Point(x,y); - this.energy = energy; - } - /** - * draw player on the background - */ - public void draw() { - image.drawFromTopLeft(pos.x, pos.y); - } -} diff --git a/src/Sandwich.java b/src/Sandwich.java deleted file mode 100644 index fbcbf9854ec63572514f1026b8cd678594017f5c..0000000000000000000000000000000000000000 --- a/src/Sandwich.java +++ /dev/null @@ -1,30 +0,0 @@ -import bagel.Image; -import bagel.util.Point; -/** - * a stationary entity: sandwich - */ -public class Sandwich{ - /** - * the sandwich's image displayed in the window - */ - private Image image; - /** - * a Point object representing the position of the sandwich - */ - private Point pos; - /** - * constructor - * @param x abscissa - * @param y ordinate - */ - public Sandwich(double x, double y){ - this.image = new Image("res/images/sandwich.png"); - this.pos = new Point(x,y); - } - /** - * draw sandwich on the background - */ - public void draw() { - image.drawFromTopLeft(pos.x, pos.y); - } -} diff --git a/src/ShadowTreasure.java b/src/ShadowTreasure.java deleted file mode 100644 index 907483ca2e199fc5e36e83490af616e68a0bb251..0000000000000000000000000000000000000000 --- a/src/ShadowTreasure.java +++ /dev/null @@ -1,28 +0,0 @@ -import bagel.*; -import java.io.IOException; -/** - * an example Bagel game. - */ -public class ShadowTreasure extends AbstractGame { - /** - * background image - */ - private final Image BACKGROUND = new Image("res/images/background.png"); - /** - * Performs a state update. - */ - @Override - public void update(Input input) - { - // Draw background - BACKGROUND.drawFromTopLeft(0, 0); - - } - /** - * The entry point for the program. - */ - public static void main(String[] args) throws IOException { - ShadowTreasure game = new ShadowTreasure(); - game.run(); - } -} diff --git a/src/Zombie.java b/src/Zombie.java deleted file mode 100644 index 98dc3cecd738079355841cdacccfe0a56d537214..0000000000000000000000000000000000000000 --- a/src/Zombie.java +++ /dev/null @@ -1,30 +0,0 @@ -import bagel.Image; -import bagel.util.Point; -/** - * a stationary entity: zombie - */ -public class Zombie{ - /** - * the zombie's image displayed in the window - */ - private Image image; - /** - * a Point object representing the position of the zombie - */ - private Point pos; - /** - * constructor - * @param x abscissa - * @param y ordinate - */ - public Zombie(double x, double y){ - this.image = new Image("res/images/zombie.png"); - this.pos = new Point(x,y); - } - /** - * draw zombie on the background - */ - public void draw() { - image.drawFromTopLeft(pos.x, pos.y); - } -}