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";
|
||||
|
||||
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.update();
|
||||
engine.render();
|
||||
|
||||
glfwWaitEventsTimeout(1);
|
||||
timeStamp1 = System.currentTimeMillis();
|
||||
while(System.currentTimeMillis() - timeStamp1 < 2500){
|
||||
engine.update();
|
||||
engine.render();
|
||||
}
|
||||
|
||||
engine.remove_uiElement(roundWon);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user