Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Fire
- {
- int xLoc;
- int yLoc;
- int size;
- public Fire(int x, int y)
- {
- xLoc = x;
- yLoc = y;
- size = (int)random(10,16);
- }
- void draw()
- {
- }
- void update()
- {
- noStroke();
- fill(#FF3300);
- xLoc = xLoc - 1; //xLoc--
- ellipse(xLoc,yLoc,size,size);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement