Ejemplo n.º 1
0
Archivo: TB.cs Proyecto: frank44/pewpew
 public TB(Level level, Vector2 position)
     : base(level, position)
 {
     MoveSpeed = 300;
     MaxWaitTime = 0.1f;
     LoadContent("TB");
     killIndex = 1;
 }
Ejemplo n.º 2
0
 public Sludge(Level level, Vector2 position)
     : base(level, position)
 {
     MoveSpeed = 200;
     MaxWaitTime = 0.1f;
     LoadContent("Sludge");
     killIndex = 2;
 }
Ejemplo n.º 3
0
 public HIV(Level level, Vector2 position)
     : base(level, position)
 {
     MoveSpeed = 0;
     MaxWaitTime = 0.1f;
     LoadContent("HIV");
     killIndex = 2;
 }
Ejemplo n.º 4
0
        public Smog(Level level, Vector2 position)
            : base(level, position)
        {
            MoveSpeed = 120;
            MaxWaitTime = 0.5f;
            curTime = ReproductionTime;
            lev = level;

            LoadContent("Smog");
            killIndex = 0;
        }
Ejemplo n.º 5
0
        public Shot(Level level, Vector2 position, int inx, double y, double x, SpriteEffects se)
        {
            this.shotIndex = inx;
            this.level = level;
            basePosition = position;
            this.position = position;

            if (x == 0 && y == 0 && se != SpriteEffects.None)
                velocity *= -1;

            time = 0.0f;
            angle = Math.Atan2(y, x);
            LoadContent();
        }
Ejemplo n.º 6
0
        public HIVShot(Level level, Vector2 position, double y, double x, FaceDirection fd)
        {
            this.level = level;
            basePosition = position;
            this.position = position;

            if (fd == FaceDirection.Left)
            {
                xvelocity = -velocity;
                y *= -1;
            }
            else
            {
                xvelocity = velocity;
                y *= -1;
            }

            time = 0.0f;
            angle = Math.Atan2(y, x);
            LoadContent();
        }
Ejemplo n.º 7
0
 public TargetDot(Level level)
 {
     this.level = level;
     LoadContent();
 }
Ejemplo n.º 8
0
 public GoldDot(Level level, Vector2 pos)
 {
     this.level = level;
     position = pos;
     LoadContent("");
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Load the level at based on the information from the stats in the current session.
 /// </summary>
 public static void LoadLevel()
 {
     Level = new Level(ScreenManager.Game.Content, ScreenManager.GraphicsDevice.Viewport, StatisticsManager);
 }
Ejemplo n.º 10
0
        public Enemy(Level level, Vector2 position)
        {
            this.alive = true;
            this.level = level;
            this.position = position;

            //LoadContent(spriteSet);
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Constructors a new player.
        /// </summary>
        public Player(Level level, Vector2 position)
        {
            this.level = level;
            shotIndex = 0; //default ammo

            LoadContent();

            Reset(position);
        }