コード例 #1
0
        public Tankiller()
        {
            game = new src.Game(20, 20);

            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = 720;
            graphics.PreferredBackBufferHeight = 720;

            Content.RootDirectory = "Content";
        }
コード例 #2
0
        /// <summary>
        /// Relance une nouvelle partie
        /// </summary>
        protected void Restart()
        {
            game       = null;
            pause      = false;
            finished   = false;
            finishTask = null;

            explodedTiles.Clear();
            explodedWalls.Clear();

            game = new src.Game(20, 20);
        }