Guest User

Untitled

a guest
Jan 17th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. //import g4p_controls.*;
  2. //importing the minim libraries
  3. import ddf.minim.*;
  4. import ddf.minim.analysis.*;
  5. import ddf.minim.effects.*;
  6. import ddf.minim.signals.*;
  7. import ddf.minim.spi.*;
  8. import ddf.minim.ugens.*;
  9. //importing the peasy cam
  10. import peasy.*;
  11. //declaring the peasy cam
  12. PeasyCam cam;
  13. Asteroid main;//main is the place holder
  14. ArrayList<Asteroid> asteroids = new ArrayList<Asteroid>();
  15. PShape model;
  16. PVector center;
  17. PImage texture;
  18.  
  19.  
  20. int turns = 0;
  21. int score2 = 0;
  22. void setup() {
  23. size(900, 900, P3D);
  24. SoundSetup();//setup of the sound tab
  25. setupstar();//setup of the star tab
  26. init();//setup of the init in this tab
  27. setupship();//setup of the ship tab
  28. setupstates();//setup of the states tab
  29. setupExplosion();//setup for the explosion class
  30. setupcheat();
  31. //setupShop();
  32.  
  33. }
  34.  
  35. void init() {
  36. initship();
  37. center = new PVector(width/2, height/2);
  38. texture = loadImage("texture4.jpg");
  39. model = loadShape("asteroid4.obj");
  40. model.setTexture(texture);
  41. main = new Asteroid(asteroids, 20., model, center, new PVector(), false);
  42. }
  43.  
  44. void draw() {
  45. music();//calling the main music function in the draw
  46. drawstates();//calling the states draw in the main draw
  47. AsteroidMainSpawning();//calling the main function of the random asteroids spawining in the space
  48. //homingMissilDraw ();
  49. }
Add Comment
Please, Sign In to add comment