Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void render() //renders graphics
- {
- BufferStrategy bs = this.getBufferStrategy();
- if(bs == null)
- {
- this.createBufferStrategy(3);
- return;
- }
- Graphics g = bs.getDrawGraphics();
- g.setColor(Color.BLACK);
- g.fillRect(0, 0,WIDTH, HEIGHT);
- g.setFont(new Font("Dialog", Font.BOLD, 18)); //doesnt work
- g.drawString(Color.BLUE + "FPS: " + Color.ORANGE + frames, 50, 50);
- handler.render(g);
- hud.render(g);
- g.dispose();
- bs.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement