Guest User

Untitled

a guest
Dec 12th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. PShape model;
  2.  
  3. PImage texture;
  4. PVector posa;
  5.  
  6. void setup() {
  7. size(700, 700, P3D);
  8. init();
  9. setup1();
  10. setup2();
  11. }
  12.  
  13. void init() {
  14. posa = new PVector(width/2, 0);
  15. texture = loadImage("txt.jpg");
  16. model = loadShape("a.obj");
  17. model.setTexture(texture);
  18.  
  19. asteroids.add(new Asteroid(asteroids, 20., model, posa, new PVector()));
  20. }
  21.  
  22.  
  23. void draw() {
  24. background(0);
  25. draw1();
  26. draw2();
  27. draw3();
  28. miss();
  29. for (int i = 0; i < asteroids.size(); i++) {
  30. asteroids.get(i).update();
  31. }
  32. posa.y += 3;
  33. }
Add Comment
Please, Sign In to add comment