Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PShape model;
- PImage texture;
- PVector posa;
- void setup() {
- size(700, 700, P3D);
- init();
- setup1();
- setup2();
- }
- void init() {
- posa = new PVector(width/2, 0);
- texture = loadImage("txt.jpg");
- model = loadShape("a.obj");
- model.setTexture(texture);
- asteroids.add(new Asteroid(asteroids, 20., model, posa, new PVector()));
- }
- void draw() {
- background(0);
- draw1();
- draw2();
- draw3();
- miss();
- for (int i = 0; i < asteroids.size(); i++) {
- asteroids.get(i).update();
- }
- posa.y += 3;
- }
Add Comment
Please, Sign In to add comment