Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package game1;
- import java.awt.Canvas;
- import java.awt.image.BufferStrategy;
- public class Render extends Canvas implements Runnable {
- BufferStrategy buffer;
- boolean running = true;
- Game game;
- public Render(Game gm){
- this.addNotify();
- game = gm;
- }
- public void addNotify(){
- super.addNotify();
- this.createBufferStrategy(2);
- buffer = this.getBufferStrategy();
- }
- @Override
- public void run() {
- while(running){
- game.getJobs();
- this.sortJobs();
- }
- }
- public void sortJobs(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement