Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. package game1;
  2.  
  3. import java.awt.Canvas;
  4. import java.awt.image.BufferStrategy;
  5.  
  6. public class Render extends Canvas implements Runnable {
  7.  
  8.     BufferStrategy buffer;
  9.     boolean running = true;
  10.     Game game;
  11.    
  12.     public Render(Game gm){
  13.         this.addNotify();
  14.         game = gm;
  15.     }
  16.    
  17.     public void addNotify(){
  18.         super.addNotify();
  19.         this.createBufferStrategy(2);
  20.         buffer = this.getBufferStrategy();
  21.     }
  22.    
  23.     @Override
  24.     public void run() {
  25.         while(running){
  26.             game.getJobs();
  27.             this.sortJobs();
  28.         }
  29.  
  30.     }
  31.    
  32.     public void sortJobs(){
  33.        
  34.     }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement