コード例 #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
ファイル: FlickeringLight.cs プロジェクト: zoral/dangerzone
 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
ファイル: Player.cs プロジェクト: zoral/dangerzone
        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
ファイル: Bullet.cs プロジェクト: zoral/dangerzone
 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
ファイル: GameEditor.cs プロジェクト: zoral/dangerzone
 public GameEditor(GameplayScreen pParent)
 {
     m_pParent = pParent;
 }
コード例 #7
0
ファイル: BloodMaggot.cs プロジェクト: zoral/dangerzone
 public BloodMaggot(GameplayScreen pParent)
     : base(pParent)
 {
     this.EnemyType = EnemyType.BLOODMAGGOT;
 }
コード例 #8
0
ファイル: GameObject.cs プロジェクト: zoral/dangerzone
 public GameObject(GameplayScreen pParent)
 {
     m_pParent = pParent;
     m_pBoundingBox2D = new BoundingBox2D(0, 0, 0, 0);
 }
コード例 #9
0
ファイル: BaseEnemy.cs プロジェクト: zoral/dangerzone
 public BaseEnemy(GameplayScreen pParent)
     : base(pParent)
 {
 }
コード例 #10
0
ファイル: LightEngine.cs プロジェクト: zoral/dangerzone
 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
ファイル: BulletManager.cs プロジェクト: zoral/dangerzone
 public BulletManager(GameplayScreen pParent)
 {
     m_pParent = pParent;
 }
コード例 #12
0
ファイル: EnemyManager.cs プロジェクト: zoral/dangerzone
 public EnemyManager(GameplayScreen pParent)
 {
     m_pParent = pParent;
 }
コード例 #13
0
ファイル: AnimationManager.cs プロジェクト: zoral/dangerzone
 public AnimationManager(GameplayScreen pParent)
 {
     m_pParent = pParent;
 }
コード例 #14
0
ファイル: TempEnemy.cs プロジェクト: zoral/dangerzone
 public TempEnemy(GameplayScreen pParent)
     : base(pParent)
 {
     this.EnemyType = EnemyType.TEMP;
 }