Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Icicle {
- PVector loc, dev, fall;
- Icicle(float x) {
- loc = new PVector(x,0,(height/3)*(random(0.5,1)));
- dev = new PVector(0,0,2);
- fall = new PVector(9.8,0,9.8);
- }
- void render() {
- noStroke();
- fill(205);
- rectMode(CORNER);
- ellipseMode(CORNER);
- rect(loc.x,loc.y,10,loc.z);
- ellipse(loc.x,loc.z-5,10,10);
- }
- void grow() {
- loc.add(dev);
- }
- }
Add Comment
Please, Sign In to add comment