Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public FrmMain()
        {
            InitializeComponent();

            this.Location = new Point();


            // Initialize API-Dependent stuff
            mRenderer = new RendererGDI();
            mInput    = new InputGDI();
            mSound    = new SoundBase();

            Game.LoadContents();
            Game.GameOver += Game_GameOver;
            mRenderer.SetGameWindow(Game.DefaultGameWidth, Game.DefaultGameHeight, this.doubleBufferPanel1.ClientRectangle.Width, this.doubleBufferPanel1.ClientRectangle.Height);
        }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 public RendererBase()
 {
     Ref = this;
 }