Player kann jetzt auf Platformen stehen (nicht mehr auf Ground)
This commit is contained in:
Binary file not shown.
@@ -16,9 +16,3 @@ comment6.target=void\ handlePowerUps()
|
|||||||
comment7.params=duration\ type
|
comment7.params=duration\ type
|
||||||
comment7.target=void\ reveivePowerUp(int,\ java.lang.String)
|
comment7.target=void\ reveivePowerUp(int,\ java.lang.String)
|
||||||
numComments=8
|
numComments=8
|
||||||
comment3.target=void\ jump()
|
|
||||||
comment4.params=
|
|
||||||
comment4.target=void\ fall()
|
|
||||||
comment5.params=
|
|
||||||
comment5.target=boolean\ collision()
|
|
||||||
numComments=6
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public class Player extends Actor
|
|||||||
|
|
||||||
setLocation(getX(), newY);
|
setLocation(getX(), newY);
|
||||||
|
|
||||||
Actor ground = getOneIntersectingObject(Ground.class);
|
Actor ground = getOneIntersectingObject(Plattform.class);
|
||||||
|
|
||||||
if (ground != null && verticalSpeed >= 0)
|
if (ground != null && verticalSpeed >= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user