From 40c84fdc2cf75d10343a1af6cbbb8afccc86a037 Mon Sep 17 00:00:00 2001 From: Chaowen Zeng <chaowenz@student.unimelb.edu.au> Date: Mon, 17 May 2021 11:56:53 +1000 Subject: [PATCH] Deleted src/ShadowTreasure.java, src/Player.java, src/Sandwich.java, src/Zombie.java, src/.DS_Store files --- src/.DS_Store | Bin 6148 -> 0 bytes src/Player.java | 35 ----------------------------------- src/Sandwich.java | 30 ------------------------------ src/ShadowTreasure.java | 28 ---------------------------- src/Zombie.java | 30 ------------------------------ 5 files changed, 123 deletions(-) delete mode 100644 src/.DS_Store delete mode 100644 src/Player.java delete mode 100644 src/Sandwich.java delete mode 100644 src/ShadowTreasure.java delete mode 100644 src/Zombie.java diff --git a/src/.DS_Store b/src/.DS_Store deleted file mode 100644 index 24957dce42144cc115095b85bb08b4dcbdca5642..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmZQzU|@7AO)+F(5MW?n;9!8z4DAe90Z1N%F(jFwB8(vOz-Ht#lrw}d6fvYSBtqo~ zQ6Rm-48aT;42cXW49NP68A`z>=`mz6Br=pSBzorLCnx3PCqbQS&A`Ag<3AV>vSd_# zGz3ONU^E0qLtr!nMneD|0-(AVRR43sMMfE;Aut*OqagqZ0Z{p%0BPGZI6&zJ2n~{A zU}RtbcL5j~7+4@W7(im6J_U#dX$8?Btsoktm4Ok&0-FKW%D@QK$_Va;fb@g4GcYoM zwKFh+Z3c;hwKFh+ZDwF#glK1Agxbsq?V&J2v@<Y5v@<Y*ZHKvTlpYO%(GY-z05gOk z0IL6885nT&{~@YI$<YuP4S``90*ov!!7fhVN*TNVKy@vsK21Q9W(3vA5IrDiP_+)O oikTn-iV`rTj0}*PoRI-ilQS|ffNS#6h5#&tM(NQIpnnJe01bm4*Z=?k diff --git a/src/Player.java b/src/Player.java deleted file mode 100644 index e75ce25..0000000 --- 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 fbcbf98..0000000 --- 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 907483c..0000000 --- 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 98dc3ce..0000000 --- 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); - } -} -- GitLab