Beta1
This commit is contained in:
@@ -40,6 +40,8 @@ public class Player1 extends Actor
|
||||
String hitAnimation;
|
||||
String dashAttackAnimation;
|
||||
String blockAnimation;
|
||||
String shootAnimation1;
|
||||
String shootAnimation2;
|
||||
int attack2Duration;
|
||||
int speed;
|
||||
double speedFaktor;
|
||||
@@ -57,6 +59,11 @@ public class Player1 extends Actor
|
||||
boolean isDashAttack = false;
|
||||
long dashAttackTimer2 = 0;
|
||||
boolean isBlocking = false;
|
||||
int shakra;
|
||||
int maxShakra;
|
||||
int shootCooldown = 0;
|
||||
int ultiCooldown = 0;
|
||||
|
||||
|
||||
Player1(int pCharakter){
|
||||
charakter = pCharakter;
|
||||
@@ -484,6 +491,8 @@ public class Player1 extends Actor
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void charakter(){
|
||||
if(charakter == 1){
|
||||
defaultAnimation = "2Combo1.png";
|
||||
@@ -505,6 +514,8 @@ public class Player1 extends Actor
|
||||
speedFaktor = 1;
|
||||
speedFaktor2 = speedFaktor;
|
||||
vDashSpeedCharakter = 12;
|
||||
maxShakra = 80;
|
||||
shakra = maxShakra;
|
||||
}
|
||||
if(charakter == 2){
|
||||
defaultAnimation = "Tetsu1Combo1.png";
|
||||
@@ -526,6 +537,8 @@ public class Player1 extends Actor
|
||||
speedFaktor = 0.5;
|
||||
speedFaktor2 = 0.75;
|
||||
vDashSpeedCharakter = 10;
|
||||
maxShakra = 100;
|
||||
shakra = maxShakra;
|
||||
}
|
||||
if(charakter == 3){
|
||||
defaultAnimation = "HinataShoot1.png";
|
||||
@@ -547,6 +560,8 @@ public class Player1 extends Actor
|
||||
speedFaktor = 2;
|
||||
speedFaktor2 = 8;
|
||||
vDashSpeedCharakter = 14;
|
||||
maxShakra = 60;
|
||||
shakra = maxShakra;
|
||||
}
|
||||
setImage(defaultAnimation);
|
||||
GreenfootImage image = getImage();
|
||||
|
||||
Reference in New Issue
Block a user