Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void render(){
- BufferStrategy bs = this.getBufferStrategy();
- if(bs == null){
- this.createBufferStrategy(3);
- return;
- }
- Graphics g = bs.getDrawGraphics();
- g.setColor(Color.cyan.darker());
- g.fillRect(0, 0, WIDTH, WIDTH / 16 * 9);
- new Player(this, 10, this.getWidth() / 2, this.getHeight() / 2, this.getHeight()/50, this.getHeight()/50, Color.white, g);
- g.dispose();
- bs.show();
- }
Add Comment
Please, Sign In to add comment