public StarMarioDecorator(IMario mario, Game1 game) { this.mario = mario; this.myGame = game; WorldManager.SetPlayer(this); BackgroundThemeManager.PlayStarTheme(); factory = new FireBallSpawner(game); }
public MarioInstance(Game1 game) { state = new SmallRightIdleState(this); myGame = game; physics = new MarioGamePhysics(); factory = new FireBallSpawner(game); isPressingDown = false; isDead = false; }
public LeftFire(FireBallSpawner factory, Game1 game) { myGame = game; FireSprite = ProjectileSpriteFactory.CreateFireSprite(); physics = new MarioGamePhysics(); physics.Velocity = new Vector2(ProjectileConstants.LEFTFIREINITIALXVELOCITY, physics.Velocity.Y); physics.VelocityMinimum = new Vector2(ProjectileConstants.LEFTFIREINITIALXVELOCITY, physics.VelocityMinimum.Y); isExploded = false; this.factory = factory; }
public InvisiMario(Game1 game) { state = new InvisibleState(this); myGame = game; physics = new MarioGamePhysics(); physics.Velocity = Vector2.Zero; physics.Acceleration = Vector2.Zero; factory = new FireBallSpawner(game); isPressingDown = false; isDead = false; }