Exemple #1
0
 public Asteroid(int posX, int posY, int size, float speed, Vector2 direction, ContentManager content)
 {
     this.posX = posX;
     this.posY = posY;
     this.size = size;
     this.speed = speed;
     this.direction = direction;
     this.content = content;
     largeAstSpriteLoader = new SpritesheetLoader("LAExplosion", false, 2, content);
     medAstSpriteLoader = new SpritesheetLoader("MAExplosion", false, 2, content);
     smallAstSpriteLoader = new SpritesheetLoader("SAExplosion", false, 2, content);
 }
Exemple #2
0
 public void Load(ContentManager content)
 {
     playerTextureMoving = content.Load<Texture2D>("RocketFlying");
     defaultTexture = content.Load<Texture2D>("RocketIdle");
     playerTextureIdle = defaultTexture;
     bulletTexture = content.Load<Texture2D>("RocketBulllet");
     //test = content.Load<Texture2D>("placeholderas");
     sound = content.Load<SoundEffect>("SoundPlaceHolder");
     origin.X = playerTextureIdle.Width / 2;
     origin.Y = playerTextureIdle.Height / 2;
     rocketExplodeSprite = new SpritesheetLoader("RocketExplosion", false, 10, content);
 }