public LuigiFireBallEntity(LuigiFactory factory, Vector2 position) { FireBall = (Mario1)factory.getSprite((int)MarioTypes.FIREBALL); Vector2 vel = new Vector2(20f, 0f); FireBall.Velocity = vel; FireBall.Position = position; }
public LuigiEntity(LuigiFactory factory, Vector2 position) : base() { spriteFactory = factory; HUD.LuigiLifeTracker.Subscribe(this); luigi = (Luigi)spriteFactory.getSprite((int)MarioTypes.NORMAL); luigi.Position = position; Sprite.Position = position; luigi.Velocity = new Vector2(0f, 0f); }