Ejemplo n.º 1
0
 public void Initialize(PinflowerGame _game, Player _player, Texture2D _texture)
 {
     game = _game;
     worldTexture = _texture;
     player = _player;
     viewport = new Rectangle(0, 0, PinflowerGame.viewportWidth, PinflowerGame.viewportHeight);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PinflowerGame game = new PinflowerGame())
     {
         game.Run();
     }
 }
Ejemplo n.º 3
0
        public void Initialize(PinflowerGame game, Vector2 position, string spriteSet)
        {
            this.game = game;

            Position = position;
            LoadContent(spriteSet);
        }
Ejemplo n.º 4
0
        public void Initialize(PinflowerGame game, Vector2 position)
        {
            this.game = game;

            Position = position;
            velocity = Vector2.Zero;
            isJumping = false;
            isOnGround = true;
            LoadContent("Players");
        }