コード例 #1
0
ファイル: AttractModeScene.cs プロジェクト: elib/jigsaw
        public AttractModeScene()
            : base()
        {
            //canvas = new Canvas();
            //canvas.Initialize(Core.game.Content);
            //canvas.setSize(100, 100);
            //this.Add(canvas);

            player1 = new Player(null, Microsoft.Xna.Framework.PlayerIndex.One, typeof(HeartParticle));
            player1.Initialize(Core.game.Content);
            player1.StartEmitting();

            player2 = new Player(null, Microsoft.Xna.Framework.PlayerIndex.Two, typeof(HeartParticle));
            player2.Initialize(Core.game.Content);
            player2.StartEmitting();

            this.Add(player2);
            this.Add(player1);

            player1.StartEmitting();
            player2.StartEmitting();

            refreshTrigSums();
        }