Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. // for spongegar
  2. PImage sponge;
  3. float spongeX, spongeY;
  4. float spongeW, spongeH;
  5. //for mario
  6. PImage mario;
  7. float marioX, marioY;
  8. float marioW, marioH;
  9. //for harambe
  10. PImage harambe;
  11. float harambeX, harambeY;
  12. float harambeH, harambeW;
  13. //for jeff
  14. PImage jeff;
  15. float jeffX, jeffY;
  16. float jeffH, jeffW;
  17. //for salt bae
  18. PImage salt;
  19. float saltX, saltY;
  20. float saltW, saltH;
  21.  
  22. void setup(){
  23. size(1920,1080);
  24. sponge = loadImage("sGar.png");
  25. spongeX = 0;
  26. spongeY = 0;
  27. spongeW = sponge.width;
  28. spongeH = sponge.height;
  29. mario = loadImage("mario.png");
  30. marioX = 400;
  31. marioY = 500;
  32. marioW = mario.width;
  33. marioH= mario.height;
  34. harambe = loadImage("harambe.png");
  35. harambeX = 500;
  36. harambeY = 600;
  37. harambeW = harambe.width;
  38. harambeH = harambe.height;
  39. jeff = loadImage("jeff.png");
  40. jeffX = 900;
  41. jeffY = 500;
  42. jeffW = jeff.width;
  43. jeffH = jeff.height;
  44. salt = loadImage("salt.png");
  45. saltX = 300;
  46. saltY = 400;
  47. saltW = salt.width;
  48. saltH = salt.height;
  49.  
  50.  
  51. }
  52.  
  53. void draw(){
  54. background(0);
  55. image(sponge, spongeX, spongeY, spongeW, spongeH);
  56. image(mario, marioX, marioY, marioW, marioH);
  57. image(harambe, harambeX, harambeY, harambeW, harambeH);
  58. image(jeff, jeffX, jeffY, jeffW, jeffH);
  59. image(salt, saltX, saltY, saltW, saltH);
  60. }
  61.  
  62. void mouseMoved(){
  63. spongeX = spongeX+1;
  64. marioW = marioW-2;
  65. marioH = marioH-2;
  66. harambeY = harambeY - 1;
  67. harambeX = harambeX + 1;
  68. jeffW = jeffW-2;
  69. saltW = saltW + 1;
  70. saltX = saltX + 1;
  71.  
  72. println("mouse was moved during frame: " + frameCount);
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement