Commit 76006a10 authored by nargessalehi98's avatar nargessalehi98

Set tank prize.

parent ace3f3b2
......@@ -145,6 +145,7 @@ public class GameState {
for(Prize prize:Controller.prizes){
if((getBounds(locX, locY).intersects(new Rectangle((int) prize.getX(), (int) prize.getY(), prize.getWidth(), prize.getHeight())))){
Controller.getPrize=true;
Controller.tanks.get(0).setPrize(prize.getName());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment