Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public class Player extends Thread {
  2. private Graphics graphic;
  3. private Graphics2D g2;
  4. private int x;
  5. private int y;
  6. private DrawPanel panel;
  7. public Player(int x, int y,DrawPanel panel)
  8. {
  9. this.x = x;
  10. this.y = y;
  11. this.panel = panel;
  12. graphic = panel.getGraphics();
  13. g2 = (Graphics2D) graphic;
  14. g2.fillOval( column,row, 10, 10);
  15. }
  16. public void run()
  17. {
  18. //startAnimation(this.x,this.y,destination.x,destination.y)
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement