Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //import g4p_controls.*;
- //importing the minim libraries
- import ddf.minim.*;
- import ddf.minim.analysis.*;
- import ddf.minim.effects.*;
- import ddf.minim.signals.*;
- import ddf.minim.spi.*;
- import ddf.minim.ugens.*;
- //importing the peasy cam
- import peasy.*;
- //declaring the peasy cam
- PeasyCam cam;
- Asteroid main;//main is the place holder
- ArrayList<Asteroid> asteroids = new ArrayList<Asteroid>();
- PShape model;
- PVector center;
- PImage texture;
- int turns = 0;
- int score2 = 0;
- void setup() {
- size(900, 900, P3D);
- SoundSetup();//setup of the sound tab
- setupstar();//setup of the star tab
- init();//setup of the init in this tab
- setupship();//setup of the ship tab
- setupstates();//setup of the states tab
- setupExplosion();//setup for the explosion class
- setupcheat();
- //setupShop();
- }
- void init() {
- initship();
- center = new PVector(width/2, height/2);
- texture = loadImage("texture4.jpg");
- model = loadShape("asteroid4.obj");
- model.setTexture(texture);
- main = new Asteroid(asteroids, 20., model, center, new PVector(), false);
- }
- void draw() {
- music();//calling the main music function in the draw
- drawstates();//calling the states draw in the main draw
- AsteroidMainSpawning();//calling the main function of the random asteroids spawining in the space
- //homingMissilDraw ();
- }
Add Comment
Please, Sign In to add comment