la ca marche ?
This commit is contained in:
parent
767d23c0d6
commit
04a6c0a869
|
@ -45,7 +45,7 @@ public class Bow extends Actor {
|
||||||
} else if (pressed && power > 50) {
|
} else if (pressed && power > 50) {
|
||||||
pressed = false;
|
pressed = false;
|
||||||
GameScreen.playerCurrent.setActive(false);
|
GameScreen.playerCurrent.setActive(false);
|
||||||
Arrow arrowShot = new Arrow(angle, power, GameScreen.playerCurrent, false);
|
Arrow arrowShot = new Arrow(angle, power, GameScreen.playerCurrent);
|
||||||
GameScreen.setFocus(arrowShot); // do not use constructor 2 times
|
GameScreen.setFocus(arrowShot); // do not use constructor 2 times
|
||||||
GameScreen.arrows.addActor(arrowShot);
|
GameScreen.arrows.addActor(arrowShot);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue