Esempio n. 1
0
 public DKGame()
 {
     instance = this;
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     inputControllers      = new List <IGameController> {
         new GameKeyboardController(this)
     };
     graphics.PreferredBackBufferWidth  = (int)WINDOW_SIZE.X;
     graphics.PreferredBackBufferHeight = (int)WINDOW_SIZE.Y;
 }
 public PlayerCPBarrelCommand(DKGame dkGame)
 {
     game = dkGame;
 }
Esempio n. 3
0
 static void Main()
 {
     using (var game = new DKGame())
         game.Run();
 }
 public CollisionHandler(DKGame dkgame)
 {
     game = dkgame;
     LoadCollisionResponse();
 }