Beispiel #1
0
		public GamePage()
        {
            this.InitializeComponent();

			// Create the game.
			var launchArguments = string.Empty;
            _game = MonoGame.Framework.XamlGame<Game1>.Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);
        }
Beispiel #2
0
 public Cowboy(Game1 game, IGameRunner runner)
     :base(game, runner)
 {
     animationIdle = new SpriteRenderable(game, cowboyIdle, 1, 1);
     animationWalk = new SpriteRenderable(game, cowboyRun, 10, 1);
     animationJump = new SpriteRenderable(game, cowboyJump, 11, 1);
     animationCelebrate = new SpriteRenderable(game, cowboyCelebrate, 11, 1);
     animationDie = new SpriteRenderable(game, cowboyDie, 12, 1);
 }
Beispiel #3
0
        public Scene(Game1 game, Vector2 baseScreenSize)
            : base(game, baseScreenSize)
        {
            //var background = new Background(game);
            //this.Add(background);

            //var cowboy = new Cowboy(game);
            //this.Add(cowboy);

            //var task = cowboy.Run();
        }
Beispiel #4
0
        public Background(Game1 game)
            : base(game)
        {

        }