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

			// Create the game.
			var launchArguments = string.Empty;
            _game = MonoGame.Framework.XamlGame<Game1>.Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);
        }
示例#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);
 }
示例#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();
        }
示例#4
0
        public Background(Game1 game)
            : base(game)
        {

        }