Skip to content

Commit

Permalink
Merge pull request #81 from rowan04/play_test_branch_2
Browse files Browse the repository at this point in the history
made minor improvements to wallbreaker
  • Loading branch information
Will-Cross1 authored May 2, 2023
2 parents 4848911 + 595f169 commit 6b2aef9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maze-game/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,12 @@ else if(magState == true)
private void touchingBreakable(boolean hasWallBreaker, int dx, int dy)
{
if (hasWallBreaker) {
Actor Breakable;
Breakable = getOneObjectAtOffset(0, 0, Breakable.class);
//Actor Breakable;
//Breakable = getOneObjectAtOffset(0, 0, Breakable.class);
Actor Breakable = getOneIntersectingObject(Breakable.class);
World world;
world = getWorld();
world.removeObject(Breakable);
getWorld().removeObjects(getWorld().getObjects(Breaker_icon.class));
}
else
{
Expand Down

0 comments on commit 6b2aef9

Please sign in to comment.