@@ -121,7 +133,7 @@ public class ChalkGameClass extends View {
if(normGravity)
playerY=playerY+playerSpeed;//makes character jump up and naturally fall down
else
playerY=playerY-playerSpeed;//makes character jump down and naturally float up
playerY=playerY-2*playerSpeed;//makes character jump down and naturally float up
if(playerY<minplayerY){
playerY=minplayerY;
@@ -172,9 +184,8 @@ public class ChalkGameClass extends View {
}
}
chalkX[ii]=chalkX[ii]-chalkXSpeed;//making the chalk move across the screen
chalkX[ii]=chalkX[ii]-chalkXSpeed;//making the chalk move across the screen from right to left
if(chalkX[ii]<0)
{
chalkPassed++;
@@ -184,6 +195,7 @@ public class ChalkGameClass extends View {
chalkY[ii]=(int)Math.floor(Math.random()*((maxplayerY+player[0].getHeight())-chalk[0].getHeight()))+chalk[0].getHeight();//making the chalk appear at random heights
}
if(chalkPassed==chalkNum*3)
{
chalkX[ii]=chalkX[ii]-200;
@@ -197,7 +209,7 @@ public class ChalkGameClass extends View {