Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class seifenblasen {
- float x;
- float y;
- float b = random(1, 5);
- float h = random(1, 5);
- float xBewegung = random(-1, 1.5);
- float yBewegung = random(-1, 1.5);
- seifenblasen(float _x, float _y) {
- x = _x;
- y = _y;
- }
- void zeichneBlasen() {
- fill(#484848);
- ellipse(x, y, b, h);
- }
- void bewegungBlasen() {
- x += xBewegung;
- y += yBewegung;
- }
- }
Add Comment
Please, Sign In to add comment