Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Image theImage;
- private AngelCodeFont font;
- public HUD() {
- try {
- theImage = new Image("res/BerlinSans.png", false, Image.FILTER_NEAREST);
- font = new AngelCodeFont("res/BerlinSans.fnt", theImage);
- } catch (SlickException ex) {
- Logger.getLogger(HUD.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
- public void write(int x, int y, String string) {
- font.drawString(x, y, string);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement