Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // for spongegar
- PImage sponge;
- float spongeX, spongeY;
- float spongeW, spongeH;
- //for mario
- PImage mario;
- float marioX, marioY;
- float marioW, marioH;
- //for harambe
- PImage harambe;
- float harambeX, harambeY;
- float harambeH, harambeW;
- //for jeff
- PImage jeff;
- float jeffX, jeffY;
- float jeffH, jeffW;
- //for salt bae
- PImage salt;
- float saltX, saltY;
- float saltW, saltH;
- void setup(){
- size(1920,1080);
- sponge = loadImage("sGar.png");
- spongeX = 0;
- spongeY = 0;
- spongeW = sponge.width;
- spongeH = sponge.height;
- mario = loadImage("mario.png");
- marioX = 400;
- marioY = 500;
- marioW = mario.width;
- marioH= mario.height;
- harambe = loadImage("harambe.png");
- harambeX = 500;
- harambeY = 600;
- harambeW = harambe.width;
- harambeH = harambe.height;
- jeff = loadImage("jeff.png");
- jeffX = 900;
- jeffY = 500;
- jeffW = jeff.width;
- jeffH = jeff.height;
- salt = loadImage("salt.png");
- saltX = 300;
- saltY = 400;
- saltW = salt.width;
- saltH = salt.height;
- }
- void draw(){
- background(0);
- image(sponge, spongeX, spongeY, spongeW, spongeH);
- image(mario, marioX, marioY, marioW, marioH);
- image(harambe, harambeX, harambeY, harambeW, harambeH);
- image(jeff, jeffX, jeffY, jeffW, jeffH);
- image(salt, saltX, saltY, saltW, saltH);
- }
- void mouseMoved(){
- spongeX = spongeX+1;
- marioW = marioW-2;
- marioH = marioH-2;
- harambeY = harambeY - 1;
- harambeX = harambeX + 1;
- jeffW = jeffW-2;
- saltW = saltW + 1;
- saltX = saltX + 1;
- println("mouse was moved during frame: " + frameCount);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement