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