public JetpackPowerUp(int x, int y) { Texture = ContentHelper.LoadTexture("Objects/jetpack"); LoopSound = new Misc.SoundFx("Sounds/jetpack_engine"); CollRectangle = new Rectangle(x, y, 32, 32); _animation = new Animation(Texture, DrawRectangle, 100, 0, AnimationType.Loop); Velocity.Y = -10f; }
public Tech(int x, int y, ContentManager content) { Texture = ContentHelper.LoadTexture("Objects/gold_apple"); _glow = content.Load<SoundEffect>("Sounds/apple_glow"); _tileSize = Main.Tilesize; Rectangle = new Rectangle(x, y, _tileSize, _tileSize); _animation = new Animation(Texture, Rectangle, 50, 3000, AnimationType.PlayInIntervals); _radius = new Rectangle(x - 1000, y - 1000, 2000, 2000); }
public CdPlayer(Vector2 position) { Texture = ContentHelper.LoadTexture("Objects/CDplayer_new"); CollRectangle = new Rectangle((int)position.X, (int)position.Y, 32, 32); SourceRectangle = new Rectangle(0, 0, 32, 32); _animation = new Animation(Texture, DrawRectangle, 70, 0, AnimationType.Loop); LoopSound = new Misc.SoundFx("Sounds/loop"); Velocity.Y = -10f; }