Merge remote-tracking branch 'origin/main'
# Conflicts: # SMIMS-Game/Groundflower.class # SMIMS-Game/Groundflower.java # SMIMS-Game/MyWorld.class # SMIMS-Game/Player.class # SMIMS-Game/Player.java # SMIMS-Game/project.greenfoot
This commit is contained in:
@@ -120,6 +120,9 @@ public class Player extends Actor
|
||||
getWorld().removeObjects(getIntersectingObjects(Enemy.class));
|
||||
getWorld().removeObjects(getWorld().getObjects(Spike.class));
|
||||
|
||||
getWorld().removeObjects(getIntersectingObjects(Spike.class));
|
||||
getWorld().removeObject(getWorld().getObjects(Heart.class).get(0));
|
||||
getWorld().removeObject(getWorld().getObjects(Heart.class).get(0));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +162,7 @@ public class Player extends Actor
|
||||
}
|
||||
else
|
||||
{
|
||||
theWorld.addObject((new TemporaryGround(duration)), 200, 550);
|
||||
theWorld.addObject((new TemporaryGround(duration)), 200, 575);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user