예제 #1
0
파일: Game1.cs 프로젝트: daglundberg/neo
 public Game1(MonoGamePlatform platform)
 {
     CurrentPlatform       = platform;
     _graphics             = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     IsMouseVisible        = true;
 }
예제 #2
0
        public Neo(Game game, MonoGamePlatform platform) : base(null)
        {
            _game            = game;
            _currentPlatform = platform;

            _game.Window.ClientSizeChanged += OnResize;

            if (_currentPlatform == MonoGamePlatform.Android)
            {
                Scale = 2.5f;
            }
            else
            {
                Scale = 1f;
            }

            DefaultFont       = game.Content.Load <NeoFont>("output");
            DefaultFont.Atlas = game.Content.Load <Texture2D>("atlas");
            _neo = this;
        }