Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- public class goal
- {
- int rx;
- int ry;
- protected Rectangle goalRec;
- map m;
- public goal(map m)
- {
- this.m=m;
- setx(m.goalSpawnx());
- sety(m.goalSpawny());
- goalRec=new Rectangle(rx,ry,48,48);
- }
- public void setx(int n)
- {
- rx=n*48;
- }
- public void sety(int n)
- {
- ry=n*48;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment