mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-30 19:29:17 +00:00 
			
		
		
		
	Update ScreenBattle.java
This commit is contained in:
		| @@ -44,6 +44,9 @@ public class ScreenBattle extends RenderingScreen{ | |||||||
| 		textEnemy = new TextEnemy("enemi"); | 		textEnemy = new TextEnemy("enemi"); | ||||||
| 		textEnemy.generateText(); | 		textEnemy.generateText(); | ||||||
|  |  | ||||||
|  | 	 | ||||||
|  | 		 | ||||||
|  |  | ||||||
|         //display the question |         //display the question | ||||||
| 		generateFont("resources/font/OptimusPrinceps.ttf", 40, Color.BLACK); | 		generateFont("resources/font/OptimusPrinceps.ttf", 40, Color.BLACK); | ||||||
| 		 | 		 | ||||||
| @@ -58,9 +61,6 @@ public class ScreenBattle extends RenderingScreen{ | |||||||
|  |  | ||||||
| 		displayDialog(g); | 		displayDialog(g); | ||||||
|  |  | ||||||
| 		System.out.println(textEnemy.lines.get(lineSpeech).attackOn); |  | ||||||
|  |  | ||||||
| 		 |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	@Override | 	@Override | ||||||
| @@ -108,10 +108,10 @@ public class ScreenBattle extends RenderingScreen{ | |||||||
|  |  | ||||||
| 	public void manage(Controller c){ | 	public void manage(Controller c){ | ||||||
| 		if (c.keyStatus.get(Input.Keys.SPACE)){ | 		if (c.keyStatus.get(Input.Keys.SPACE)){ | ||||||
| 			 |  | ||||||
| 			if(textEnemy.lines.get(lineSpeech).attackOn == false){ | 			if(textEnemy.lines.get(lineSpeech).attackOn == false){ | ||||||
| 				readNextLine(); | 				readNextLine(); | ||||||
| 			} | 			} | ||||||
|  | 			 | ||||||
| 		} | 		} | ||||||
| 		if (c.keyStatus.get(Input.Keys.NUM_1)){ | 		if (c.keyStatus.get(Input.Keys.NUM_1)){ | ||||||
| 			if(textEnemy.lines.get(lineSpeech).attackOn == true){ | 			if(textEnemy.lines.get(lineSpeech).attackOn == true){ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user