Skip to content
Snippets Groups Projects
Commit 1721d59e authored by David Lin's avatar David Lin
Browse files

fixed error where placing stays as status

parent 7411aa8e
No related branches found
No related tags found
No related merge requests found
......@@ -3,19 +3,3 @@
2,delay,2500
2,spawn,20,slicer,750
3,spawn,5,superslicer,1000
4,spawn,5,slicer,500
4,delay,1000
4,spawn,5,superslicer,500
5,spawn,50,slicer,500
5,delay,1000
5,spawn,5,megaslicer,1000
6,spawn,25,superslicer,500
6,spawn,10,megaslicer,100
6,delay,5000
6,spawn,3,apexslicer,3000
6,spawn,3,apexslicer,3000
7,spawn,20,superslicer,250
7,delay,1750
7,spawn,10,megaslicer,2000
7,delay,500
7,spawn,5,apexslicer,1500
\ No newline at end of file
......@@ -421,9 +421,11 @@ public class ShadowDefend extends AbstractGame {
// Create image of tank and set wave state to Placing
placingIcon = new Image(TANK_FILE);
placedImage = "tank";
if(waveState != 2){
prevWaveState = waveState;
waveState = 2;
}
}
// Checks if mouse above the super tank icon when left clicked and if enough gold
if(stankIcon.getBoundingBoxAt(new Point(184,(shop.getHeight()/2)-10)).intersects(input.getMousePosition())
......@@ -431,9 +433,11 @@ public class ShadowDefend extends AbstractGame {
// Create image of super tank and set wave state to Placing
placingIcon = new Image(STANK_FILE);
placedImage = "stank";
if(waveState != 2){
prevWaveState = waveState;
waveState = 2;
}
}
// Checks if mouse above the plane icon when left clicked and if enough gold
if(planeIcon.getBoundingBoxAt(new Point(304,(shop.getHeight()/2)-10)).intersects(input.getMousePosition())
......@@ -441,9 +445,12 @@ public class ShadowDefend extends AbstractGame {
// Create image of plane and set wave state to Placing
placingIcon = new Image(PLANE_FILE);
placedImage = "plane";
if(waveState != 2){
prevWaveState = waveState;
waveState = 2;
}
}
}
// User has selected an icon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment