Exemplo n.º 1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            this.Core = new Core(new Vector2(1136, 640), graphics, Content);
            Core.SwitchState(new PlayState());
        }
Exemplo n.º 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            this.Core = new Core(new Vector2(1024, 768), graphics, Content);
            this.Core.SwitchState(new MenuState());

            // TODO: use this.Content to load your game content here
        }
Exemplo n.º 3
0
        public static void Initialize(Vector2 screenSize, GraphicsDeviceManager graphics, ContentManager content, Core core)
        {
            Controller.Gravity = 14;
            Controller.Graphics = graphics;
            Controller.Content = content;
            Controller.Input = new Input();
            Controller.LayerController = new LayerController();
            Controller.FontController = new FontController();

            Controller.ScreenSize = screenSize;
            Controller.Core = core;
            Controller.WorldBounds = Rectangle.Empty;
        }
Exemplo n.º 4
0
        public static void initialize(Vector2 screenSize, GraphicsDeviceManager graphics, ContentManager content, Core core)
        {
            GameManager.Gravity = 14;
            GameManager.Graphics = graphics;
            GameManager.Content = content;
            GameManager.Input = new Input();
            GameManager.ScreenSize = screenSize;
            GameManager.Core = core;
            GameManager.WorldBounds = Rectangle.Empty;
            GameManager.FontController = new FontController();

            //TODO (BR): needs to be done more nice
            fontDefault = content.Load<SpriteFont>("fontDefault");
        }