Advertisement
MrsMcLead

Fire

Feb 16th, 2016
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. public class Fire
  2. {
  3.   int xLoc;
  4.   int yLoc;
  5.   int size;
  6.  
  7.  
  8.   public Fire(int x, int y)
  9.   {
  10.    xLoc = x;
  11.    yLoc = y;
  12.    size = (int)random(10,16);
  13.   }
  14.  
  15.   void draw()
  16.   {
  17.    
  18.   }
  19.  
  20.   void update()
  21.   {
  22.    noStroke();
  23.    fill(#FF3300);
  24.    xLoc = xLoc - 1;    //xLoc--
  25.    ellipse(xLoc,yLoc,size,size);
  26.   }
  27.  
  28.  
  29.  
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement