Guest User

Untitled

a guest
Mar 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. private void render(){
  2. BufferStrategy bs = this.getBufferStrategy();
  3. if(bs == null){
  4. this.createBufferStrategy(3);
  5. return;
  6. }
  7.  
  8. Graphics g = bs.getDrawGraphics();
  9.  
  10. g.setColor(Color.cyan.darker());
  11. g.fillRect(0, 0, WIDTH, WIDTH / 16 * 9);
  12.  
  13. new Player(this, 10, this.getWidth() / 2, this.getHeight() / 2, this.getHeight()/50, this.getHeight()/50, Color.white, g);
  14.  
  15. g.dispose();
  16. bs.show();
  17.  
  18. }
Add Comment
Please, Sign In to add comment