예제 #1
0
 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;
 }
예제 #2
0
파일: Tech.cs 프로젝트: DuckKnightDuel/Adam
 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);
 }
예제 #3
0
        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;
        }