示例#1
0
文件: IvyGame.cs 项目: endy/IvyXNA
        protected IvyGame()
        {
            State = GameState.Play;

            DrawCollisionRects = false;

            m_fpsValue = 0.0f;

            IvyGraphics = new GraphicsDeviceManager(this);
            IvyGraphics.PreferredBackBufferWidth = 800;
            IvyGraphics.PreferredBackBufferHeight = 600;
            IvyGraphics.ApplyChanges(); ///@todo is this needed?

            Content.RootDirectory = "Content";

            if (m_instance != null)
            {
                // @todo error! exception?
            }

            m_instance = this;
        }
示例#2
0
文件: Player.cs 项目: endy/IvyXNA
 public Player(IvyGame game)
     : base(game)
 {
 }