public void Initialize(PinflowerGame _game, Player _player, Texture2D _texture) { game = _game; worldTexture = _texture; player = _player; viewport = new Rectangle(0, 0, PinflowerGame.viewportWidth, PinflowerGame.viewportHeight); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (PinflowerGame game = new PinflowerGame()) { game.Run(); } }
public void Initialize(PinflowerGame game, Vector2 position, string spriteSet) { this.game = game; Position = position; LoadContent(spriteSet); }
public void Initialize(PinflowerGame game, Vector2 position) { this.game = game; Position = position; velocity = Vector2.Zero; isJumping = false; isOnGround = true; LoadContent("Players"); }