Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. PImage shipImage;
  2. PImage backgroundImage;
  3.  
  4. int x, y;
  5.  
  6. void setup(){
  7. size(640,480);
  8. x = 0;
  9. y = 200;
  10. shipImage = loadImage("img/ship.png");
  11. backgroundImage = loadImage("img/background1.png");
  12. }
  13.  
  14. void draw(){
  15. image(backgroundImage,0,0);
  16. image(shipImage,x,y);
  17. x++;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement