Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Player extends Thread {
- private Graphics graphic;
- private Graphics2D g2;
- private int x;
- private int y;
- private DrawPanel panel;
- public Player(int x, int y,DrawPanel panel)
- {
- this.x = x;
- this.y = y;
- this.panel = panel;
- graphic = panel.getGraphics();
- g2 = (Graphics2D) graphic;
- g2.fillOval( column,row, 10, 10);
- }
- public void run()
- {
- //startAnimation(this.x,this.y,destination.x,destination.y)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement