public Player(Loader.parameter loaderparameters) { Velocity = Vector2.Zero; image = loaderparameters.image; movespeed = loaderparameters.movespeed; animatedtype = loaderparameters.animatedtype; deathvector = Vector2.Zero; }
public EnemyBullet(Loader.parameter loaderparameters, int x, int y) { //imagesource = loaderparameters.imagesource; movespeed = loaderparameters.movespeed; animatedtype = loaderparameters.animatedtype; numframesX = loaderparameters.numframesX; numframesY = loaderparameters.numframesY; dead = loaderparameters.dead; dying = loaderparameters.dying; enemyx = x; enemyy = y; //get the image source directly from loaderparameters image = new Image(loaderparameters.imagesource); LoadContent(); }
public AnimatedGraphics(Loader.parameter loaderparameters, int x, int y ) { movespeed = loaderparameters.movespeed; animatedtype = loaderparameters.animatedtype; numframesX = loaderparameters.numframesX; numframesY = loaderparameters.numframesY; animationx = x; animationy = y; Effect = loaderparameters.Effects; animatedlife = loaderparameters.life; //get the image source directly from loaderparameters image = new Image(loaderparameters.imagesource); //image.Set(loaderparameters.Effects); image.Effects = Effect; image.Position.X = animationx; image.Position.Y = animationy; image.amountofframes.X = numframesX; image.amountofframes.Y = numframesY; //image.width = LoadContent(); }
public VerticalBullet(Loader.parameter loaderparameter, int x, int y) : base(loaderparameter, x, y) { }