示例#1
0
 public Graven()
 {
     // NOTE: This defines the order of the game loop as well
     resourceComponent = new ResourceComponent(this.Content, this); //new GameResources(this.Content, this);
     inputComponent    = new GameInput(this);
     //Some of our current physics should probably be in Game Physics
     physicsComponent  = new PhysicsComponent(this); //new GamePhysics(this);
     graphicsComponent = new GameGraphics(this);
     audioComponent    = new GameAudio(this);        //new GameAudio(this);
 }
 public RPGGame()
 {
     // NOTE: This defines the order of the game loop as well7
     resourceComponent = new GameResources(this.Content, this);
     inputComponent    = new GameInput(this);
     physicsComponent  = new GamePhysics(this);
     graphicsComponent = new GameGraphics(this);
     audioComponent    = new GameAudio(this);
     OnMain();
 }