protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var g = new Robber2D();

            SetContentView((View)g.Services.GetService(typeof(View)));
            g.Run();
        }
Exemplo n.º 2
0
 public StartScreen(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game) : base(contentManager, graphicsDevice, game)
 {
 }
Exemplo n.º 3
0
 public EndScreen(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game, GameResult gameResult) : base(contentManager, graphicsDevice, game)
 {
     this.gameResult = gameResult;
 }
Exemplo n.º 4
0
 public InGame(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game) : base(contentManager, graphicsDevice, game)
 {
     gameMode     = GameMode.Tank;
     CurrentWorld = 0;
 }
Exemplo n.º 5
0
 public LevelScreen(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game, GameMode selectedGameMode) : base(contentManager, graphicsDevice, game)
 {
     this.selectedGameMode = selectedGameMode;
 }
 public InGame(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game, GameMode gameMode, int startWorld) : base(contentManager, graphicsDevice, game)
 {
     this.gameMode = gameMode;
     CurrentWorld  = startWorld;
 }
 public GameState(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game)
 {
     this.GraphicsDevice = graphicsDevice;
     this.ContentManager = contentManager;
     this.Game           = game;
 }
Exemplo n.º 8
0
 static void Main()
 {
     using (var game = new Robber2D())
         game.Run();
 }