Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this is short upgrade, for
- //http://pastebin.com/ipNs3ZCS
- private void render(){
- BufferStrategy bs = this.getBufferStrategy();
- if(bs == null){
- createBufferStrategy(3);
- return;
- }
- Graphics g = bs.getDrawGraphics();
- ////////////////////////////////
- g.drawImage(image, 0, 0, getWidth(), getHeight(), this);
- ///////////////////////////////
- g.dispose();bs.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement