示例#1
0
        public MainWindow()
        {
            InitializeComponent();

            Calc.Init();

            int Count = 16;

            Pole   = new TPole(g, g2, tbScore, Count);
            Screen = new TScreen(Pole);
        }
示例#2
0
文件: TScreen.cs 项目: rwsh/StarWars
        public TScreen(TPole Pole)
        {
            this.Pole   = Pole;
            Pole.Screen = this;

            //spFire = new SoundPlayer("fire.wav");
            //spCrush = new SoundPlayer("crush.wav");

            spFire        = new SoundPlayer();
            spFire.Stream = Properties.Resources.fire;

            spCrush        = new SoundPlayer();
            spCrush.Stream = Properties.Resources.crush;

            X = 0;
            Y = 0;

            Pole.DrawStar();
            Pole.DrawTarget();
        }