예제 #1
0
파일: TB.cs 프로젝트: frank44/pewpew
 public TB(Level level, Vector2 position)
     : base(level, position)
 {
     MoveSpeed = 300;
     MaxWaitTime = 0.1f;
     LoadContent("TB");
     killIndex = 1;
 }
예제 #2
0
파일: Sludge.cs 프로젝트: frank44/pewpew
 public Sludge(Level level, Vector2 position)
     : base(level, position)
 {
     MoveSpeed = 200;
     MaxWaitTime = 0.1f;
     LoadContent("Sludge");
     killIndex = 2;
 }
예제 #3
0
파일: HIV.cs 프로젝트: frank44/pewpew
 public HIV(Level level, Vector2 position)
     : base(level, position)
 {
     MoveSpeed = 0;
     MaxWaitTime = 0.1f;
     LoadContent("HIV");
     killIndex = 2;
 }
예제 #4
0
파일: Smog.cs 프로젝트: frank44/pewpew
        public Smog(Level level, Vector2 position)
            : base(level, position)
        {
            MoveSpeed = 120;
            MaxWaitTime = 0.5f;
            curTime = ReproductionTime;
            lev = level;

            LoadContent("Smog");
            killIndex = 0;
        }
예제 #5
0
파일: Shot.cs 프로젝트: frank44/pewpew
        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();
        }
예제 #6
0
파일: HIVShot.cs 프로젝트: frank44/pewpew
        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();
        }
예제 #7
0
파일: TargetDot.cs 프로젝트: frank44/pewpew
 public TargetDot(Level level)
 {
     this.level = level;
     LoadContent();
 }
예제 #8
0
파일: GoldDot.cs 프로젝트: frank44/pewpew
 public GoldDot(Level level, Vector2 pos)
 {
     this.level = level;
     position = pos;
     LoadContent("");
 }
예제 #9
0
파일: Session.cs 프로젝트: frank44/pewpew
 /// <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);
 }
예제 #10
0
파일: Enemy.cs 프로젝트: frank44/pewpew
        public Enemy(Level level, Vector2 position)
        {
            this.alive = true;
            this.level = level;
            this.position = position;

            //LoadContent(spriteSet);
        }
예제 #11
0
파일: Player.cs 프로젝트: frank44/pewpew
        /// <summary>
        /// Constructors a new player.
        /// </summary>
        public Player(Level level, Vector2 position)
        {
            this.level = level;
            shotIndex = 0; //default ammo

            LoadContent();

            Reset(position);
        }