Ejemplo n.º 1
0
        public MainPage()
        {
            InitializeComponent();

            game     = new FlappyBirdGame();
            baseSize = new SKSizeI(288, 512);

            SizeChanged += OnSizeChanged;

            _ = game.LoadContentAsync();
        }
Ejemplo n.º 2
0
 public SpriteSheet(FlappyBirdGame game, string sourceKey)
 {
     this.game           = game;
     this.contentManager = game.Content;
     this.spriteSheet    = contentManager.Load <Texture2D>(sourceKey);
 }
Ejemplo n.º 3
0
 public MenuScreen(FlappyBirdGame game) : base(game)
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructs a new Play Screen.
 /// </summary>
 /// <param name="game"></param>
 public PlayScreen(FlappyBirdGame game) : base(game)
 {
 }
 /// <summary>
 /// Constructs a new FlappyBirdSpriteSheet.
 /// </summary>
 /// <param name="game"></param>
 public FlappyBirdSpriteSheet(FlappyBirdGame game) : base(game, SPRITESHEET_NAME)
 {
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructs a new GameScreen.
 /// </summary>
 /// <param name="game">The game instance.</param>
 public GameScreen(FlappyBirdGame game)
 {
     this.game = game;
 }