Example #1
0
        protected override void Initialize()
        {
            textWriter=new XNAFont.XNAFont();
            BoxPadding = 50;
            BoxRightEdge = this.ScreenWidth;
            BoxBottomEdge = this.ScreenHeight;
            background backgroundControl = background.getInstance();

            graphics.PreferredBackBufferWidth = this.ScreenWidth;
            graphics.PreferredBackBufferHeight = this.ScreenHeight;
            graphics.IsFullScreen = false;
            graphics.ApplyChanges();
            Window.Title = "Rock on with Jcart & Charles232 Snail Empire";

            // set opening game state
            this.CurrentGameState = GameState.WORLD;

            // TODO: Add your initialization logic here
            this.mSpriteBatch = new SpriteBatch(this.graphics.GraphicsDevice);
            ContentManager aLoader = new ContentManager(Services);
            this.Player = new Player(this.graphics.GraphicsDevice, aLoader);
            this.PlayerMovement = new keyboardMovement();
            base.Initialize();
        }
Example #2
0
        protected override void LoadGraphicsContent(bool loadAllContent)
        {
            if (loadAllContent)
            {
                textWriter = XNAFont.XNAFont.LoadFont(this.graphics.GraphicsDevice, "Fonts\\test.xml");
            }

            // TODO: Load any ResourceManagementMode.Manual content
        }