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

            SetContentView((View)g.Services.GetService(typeof(View)));
            g.Run();
        }
Ejemplo n.º 2
0
 public StartScreen(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game) : base(contentManager, graphicsDevice, game)
 {
 }
Ejemplo n.º 3
0
 public EndScreen(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game, GameResult gameResult) : base(contentManager, graphicsDevice, game)
 {
     this.gameResult = gameResult;
 }
Ejemplo n.º 4
0
 public InGame(ContentManager contentManager, GraphicsDevice graphicsDevice, Robber2D game) : base(contentManager, graphicsDevice, game)
 {
     gameMode     = GameMode.Tank;
     CurrentWorld = 0;
 }
Ejemplo 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;
 }
Ejemplo n.º 8
0
 static void Main()
 {
     using (var game = new Robber2D())
         game.Run();
 }