Guest User

Untitled

a guest
Jun 13th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. class seifenblasen {
  2.  
  3.   float x;
  4.   float y;
  5.   float b = random(1, 5);
  6.   float h = random(1, 5);
  7.   float xBewegung = random(-1, 1.5);
  8.   float yBewegung = random(-1, 1.5);
  9.  
  10.   seifenblasen(float _x, float _y) {
  11.     x = _x;
  12.     y = _y;
  13.   }
  14.  
  15.   void zeichneBlasen() {
  16.     fill(#484848);
  17.     ellipse(x, y, b, h);
  18.   }
  19.  
  20.   void bewegungBlasen() {
  21.     x += xBewegung;
  22.     y += yBewegung;
  23.   }
  24. }
Add Comment
Please, Sign In to add comment