예제 #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)
 {
 }