Now BitmapedText is working whit a costum mirrored font image
This commit is contained in:
parent
39d8eb9247
commit
1c2b9629f0
3 changed files with 49 additions and 265 deletions
|
|
@ -18,14 +18,14 @@ public class TextTest extends LWJGLGameWindow{
|
|||
|
||||
protected void init(){
|
||||
text = new BitmapText("Test text");
|
||||
text.setText("LOL THIS IS A TEST!!");
|
||||
text.setText("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
|
||||
pos = 0;
|
||||
}
|
||||
|
||||
protected void update() {
|
||||
super.update();
|
||||
pos += 0.2f;
|
||||
text.setLocation(new Vector2f(200,200));
|
||||
text.setLocation(new Vector2f(200+pos,200+pos));
|
||||
text.update();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue