1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2024-11-26 11:03:28 +00:00

Update ScreenBattle.java

This commit is contained in:
Fastium 2022-06-11 19:32:43 +02:00
parent ba0f36625e
commit f21a8c7482

View File

@ -44,6 +44,9 @@ public class ScreenBattle extends RenderingScreen{
textEnemy = new TextEnemy("enemi");
textEnemy.generateText();
//display the question
generateFont("resources/font/OptimusPrinceps.ttf", 40, Color.BLACK);
@ -58,9 +61,6 @@ public class ScreenBattle extends RenderingScreen{
displayDialog(g);
System.out.println(textEnemy.lines.get(lineSpeech).attackOn);
}
@Override
@ -108,10 +108,10 @@ public class ScreenBattle extends RenderingScreen{
public void manage(Controller c){
if (c.keyStatus.get(Input.Keys.SPACE)){
if(textEnemy.lines.get(lineSpeech).attackOn == false){
readNextLine();
}
}
if (c.keyStatus.get(Input.Keys.NUM_1)){
if(textEnemy.lines.get(lineSpeech).attackOn == true){