Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 66b7ced23a | |||
| 532e78de04 |
Binary file not shown.
@@ -62,6 +62,9 @@ public class MyWorld extends World
|
||||
|
||||
public void act()
|
||||
{
|
||||
if (getObjects(Score.class).size() > 0){
|
||||
removeObjects(getObjects(Score.class));
|
||||
}
|
||||
Score score = new Score();
|
||||
addObject(score, 200, 30);
|
||||
score.setImage("Score1.png");
|
||||
|
||||
Binary file not shown.
@@ -15,10 +15,10 @@ public class PlayerProjectile extends Actor
|
||||
public void act()
|
||||
{
|
||||
move(7);
|
||||
checkForEnemyCollision();
|
||||
if (!isProjectileOnScreen()){
|
||||
getWorld().removeObject(this);
|
||||
}
|
||||
checkForEnemyCollision();
|
||||
}
|
||||
|
||||
public void checkForEnemyCollision(){
|
||||
|
||||
Reference in New Issue
Block a user