WavyText between round
This commit is contained in:
parent
e2ac89a375
commit
8cc35dda85
@ -135,13 +135,15 @@ public class match {
|
|||||||
String victoryTxt = roundP1 ? "Player1 won the round" : "Player2 won the round";
|
String victoryTxt = roundP1 ? "Player1 won the round" : "Player2 won the round";
|
||||||
|
|
||||||
System.out.println(victoryTxt);
|
System.out.println(victoryTxt);
|
||||||
roundWon = new UIElementText(victoryTxt, 5f, 0.25f, 0.5f, 100f, engine);
|
roundWon = new UIElementText(victoryTxt, 5f, 0.25f, 0.5f, 200f, engine);
|
||||||
|
roundWon.setShader("shaders/StylishShaders/WavyTextVert.glsl", "shaders/StylishShaders/TextFrag.glsl", true, true);
|
||||||
engine.add_uiElement(roundWon);
|
engine.add_uiElement(roundWon);
|
||||||
|
|
||||||
engine.update();
|
timeStamp1 = System.currentTimeMillis();
|
||||||
engine.render();
|
while(System.currentTimeMillis() - timeStamp1 < 2500){
|
||||||
|
engine.update();
|
||||||
glfwWaitEventsTimeout(1);
|
engine.render();
|
||||||
|
}
|
||||||
|
|
||||||
engine.remove_uiElement(roundWon);
|
engine.remove_uiElement(roundWon);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user