示例#1
0
文件: Rail.cs 项目: zoral/dangerzone
 public Rail(BulletManager pParent, GameplayScreen pGameplayScreen)
     : base(pGameplayScreen)
 {
     m_pParent = pParent;
     this.Animation = new SimpleAnimation(m_pParent.RailTexture, Vector2.Zero, 1, 5, 250);
     this.Animation.Loop = false;
 }
示例#2
0
文件: Level.cs 项目: zoral/dangerzone
 public Level(GameplayScreen pParent)
 {
     m_pBounds = new Circle(Vector2.Zero, 10);
     Console.WriteLine(m_pBounds.Center.ToString());
     m_pBoundingBox = new BoundingBox2D(0, 0, 62, 62);
     Console.WriteLine(m_pBoundingBox.ToString());
 }
示例#3
0
 public FlickeringLight(GameplayScreen pParent)
     : base(pParent)
 {
     this.Collidiable = false;
     m_rgTimes = new float[m_nMaxStatuses];
     m_rgTimes[0] = 1500;
     m_rgTimes[1] = 1800;
     m_rgTimes[2] = 2000;
     m_rgTimes[3] = 2500;
     m_rgTimes[4] = 3000;
     m_rgTimes[5] = 6500;
     m_rgTimes[6] = 7000;
     m_rgTimes[7] = 9000;
     m_rgTimes[8] = 11000;
     m_rgTimes[9] = 16000;
 }
示例#4
0
        public Player(GameplayScreen pParent, int nPlayer)
            : base(pParent)
        {
            m_nPlayer = nPlayer;

            if (nPlayer == 1)
            {
                m_rgPositions[(int)TextPositions.PLAYERNAME] = new Vector2(10, 10);
                m_rgPositions[(int)TextPositions.PLAYERHEALTH] = new Vector2(10, 30);
                m_rgPositions[(int)TextPositions.PLAYERSCORE] = new Vector2(10, 50);
                m_rgPositions[(int)TextPositions.PLAYERWEAPONNAME] = new Vector2(10, 680);
                m_rgPositions[(int)TextPositions.PLAYERWEAPONICON] = new Vector2(10, 700);
            }
            else
            {
                m_rgPositions[(int)TextPositions.PLAYERNAME] = new Vector2(1000, 10);
                m_rgPositions[(int)TextPositions.PLAYERHEALTH] = new Vector2(1000, 30);
                m_rgPositions[(int)TextPositions.PLAYERSCORE] = new Vector2(1000, 50);
                m_rgPositions[(int)TextPositions.PLAYERWEAPONNAME] = new Vector2(1000, 680);
                m_rgPositions[(int)TextPositions.PLAYERWEAPONICON] = new Vector2(1000, 700);
            }

            m_fMaxHealth = pParent.GameConfiguration.PlayerLives;
            m_fHealth = m_fMaxHealth;
        }
示例#5
0
 public Bullet(BulletManager pParent, GameplayScreen pGameplayScreen)
     : base(pGameplayScreen)
 {
     m_pParent = pParent;
     this.Animation = new SimpleAnimation(m_pParent.Texture, Vector2.Zero, 0, 1, 0);
 }
示例#6
0
 public GameEditor(GameplayScreen pParent)
 {
     m_pParent = pParent;
 }
示例#7
0
 public BloodMaggot(GameplayScreen pParent)
     : base(pParent)
 {
     this.EnemyType = EnemyType.BLOODMAGGOT;
 }
示例#8
0
 public GameObject(GameplayScreen pParent)
 {
     m_pParent = pParent;
     m_pBoundingBox2D = new BoundingBox2D(0, 0, 0, 0);
 }
示例#9
0
 public BaseEnemy(GameplayScreen pParent)
     : base(pParent)
 {
 }
示例#10
0
 public LightEngine(GameplayScreen pParent)
 {
     m_pParent = pParent;
     m_pBackgroundSize = new Rectangle(0, 0, m_pParent.Parent.GraphicsDevice.PresentationParameters.BackBufferWidth, m_pParent.Parent.GraphicsDevice.PresentationParameters.BackBufferHeight);
 }
示例#11
0
 public BulletManager(GameplayScreen pParent)
 {
     m_pParent = pParent;
 }
示例#12
0
 public EnemyManager(GameplayScreen pParent)
 {
     m_pParent = pParent;
 }
示例#13
0
 public AnimationManager(GameplayScreen pParent)
 {
     m_pParent = pParent;
 }
示例#14
0
 public TempEnemy(GameplayScreen pParent)
     : base(pParent)
 {
     this.EnemyType = EnemyType.TEMP;
 }