Advertisement
pseudocreator

javaGameBase_update1

May 17th, 2014
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. //this is short upgrade, for
  2. //http://pastebin.com/ipNs3ZCS 
  3.  
  4.        private void render(){
  5.         BufferStrategy bs = this.getBufferStrategy();
  6.        
  7.         if(bs == null){
  8.            
  9.             createBufferStrategy(3);
  10.             return;
  11.         }
  12.        
  13.         Graphics g = bs.getDrawGraphics();
  14.         ////////////////////////////////
  15.        
  16.         g.drawImage(image, 0, 0, getWidth(), getHeight(), this);
  17.        
  18.         ///////////////////////////////
  19.         g.dispose();bs.show();
  20.        
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement