Skip to content

Commit

Permalink
Moved assets to assets folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Dlyd2b committed Jun 6, 2013
1 parent 674d006 commit 6b5e6e6
Show file tree
Hide file tree
Showing 31 changed files with 16 additions and 16 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<property environment="env"/> <!-- load the environment variables -->
<property name="projectPackage" value="edu.ucsb.cs56.projects.games.pacman" />
<property name="out.assets.dir" value="build/edu/ucsb/cs56/projects/games/pacman/pacpix" />
<property name="out.assets.dir" value="build/edu/ucsb/cs56/projects/games/pacman/assets" />
<property name="webRoot" value="${env.HOME}/public_html/cs56" />
<property name="webBaseURL"
value="http://www.cs.ucsb.edu/~${env.USER}/cs56" />
Expand All @@ -26,7 +26,7 @@
<mkdir dir="build" />
<mkdir dir="${out.assets.dir}" />
<copy includeemptydirs="false" todir="${out.assets.dir}">
<fileset dir="pacpix"/>
<fileset dir="assets"/>
</copy>
<javac srcdir="src" destdir="build" debug="true" debuglevel="lines,source"
includeantruntime="false" >
Expand Down
2 changes: 1 addition & 1 deletion src/edu/ucsb/cs56/projects/games/pacman/Ghost.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void draw(Graphics2D g, JComponent canvas) {
@Override
public void loadImages() {
try {
ghost = ImageIO.read(getClass().getResource("pacpix/ghost.png"));
ghost = ImageIO.read(getClass().getResource("assets/ghost.png"));
} catch (IOException e) {
e.printStackTrace();
}
Expand Down
26 changes: 13 additions & 13 deletions src/edu/ucsb/cs56/projects/games/pacman/PacPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,19 +301,19 @@ else if ((key == KeyEvent.VK_A || key == KeyEvent.VK_D ||
@Override
public void loadImages() {
try {
pacman1 = ImageIO.read(getClass().getResource("pacpix/pacman.png"));
pacman2up = ImageIO.read(getClass().getResource("pacpix/up1.png"));
pacman3up = ImageIO.read(getClass().getResource("pacpix/up2.png"));
pacman4up = ImageIO.read(getClass().getResource("pacpix/up3.png"));
pacman2down = ImageIO.read(getClass().getResource("pacpix/down1.png"));
pacman3down = ImageIO.read(getClass().getResource("pacpix/down2.png"));
pacman4down = ImageIO.read(getClass().getResource("pacpix/down3.png"));
pacman2left = ImageIO.read(getClass().getResource("pacpix/left1.png"));
pacman3left = ImageIO.read(getClass().getResource("pacpix/left2.png"));
pacman4left = ImageIO.read(getClass().getResource("pacpix/left3.png"));
pacman2right = ImageIO.read(getClass().getResource("pacpix/right1.png"));
pacman3right = ImageIO.read(getClass().getResource("pacpix/right2.png"));
pacman4right = ImageIO.read(getClass().getResource("pacpix/right3.png"));
pacman1 = ImageIO.read(getClass().getResource("assets/pacman/pacman.png"));
pacman2up = ImageIO.read(getClass().getResource("assets/pacman/up1.png"));
pacman3up = ImageIO.read(getClass().getResource("assets/pacman/up2.png"));
pacman4up = ImageIO.read(getClass().getResource("assets/pacman/up3.png"));
pacman2down = ImageIO.read(getClass().getResource("assets/pacman/down1.png"));
pacman3down = ImageIO.read(getClass().getResource("assets/pacman/down2.png"));
pacman4down = ImageIO.read(getClass().getResource("assets/pacman/down3.png"));
pacman2left = ImageIO.read(getClass().getResource("assets/pacman/left1.png"));
pacman3left = ImageIO.read(getClass().getResource("assets/pacman/left2.png"));
pacman4left = ImageIO.read(getClass().getResource("assets/pacman/left3.png"));
pacman2right = ImageIO.read(getClass().getResource("assets/pacman/right1.png"));
pacman3right = ImageIO.read(getClass().getResource("assets/pacman/right2.png"));
pacman4right = ImageIO.read(getClass().getResource("assets/pacman/right3.png"));
}
catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit 6b5e6e6

Please sign in to comment.