public BowserEntity(Vector2 loc, MarioEntity mario) : base(loc) { Mario = mario; EntityCollision = new EnemyCollision(this); Sprite = new Bowser(loc); State = new StandardBowserState(this); }
public BowserDeadState(Bowser bowser) { Systems.Events.TheInstance.BowserDied(); this.bowser = bowser; this.bowser.YSpeed = 3.0f; this.bowser.Sprite = this.bowser.SpriteFactory.CreateProduct(BossTypes.BowserDead); this.bowser.IsCollidable = false; }
// Use this for initialization void Start() { t_LevelManager = FindObjectOfType <LevelManager> (); mario = FindObjectOfType <Mario> (); bowser = FindObjectOfType <Bowser> (); foreach (Transform child in transform.parent.Find("Bridge Pieces")) { bridgePieces.Add(child.gameObject); } }
public BowserChargeState(Bowser bowser) { this.bowser = bowser; if (this.bowser.IsFacingLeft) { this.bowser.Sprite = this.bowser.SpriteFactory.CreateProduct(BossTypes.BowserChargeLeft); } else { this.bowser.Sprite = this.bowser.SpriteFactory.CreateProduct(BossTypes.BowserChargeRight); } }
public BowserShellState(Bowser bowser) { this.bowser = bowser; this.bowser.Sprite = this.bowser.SpriteFactory.CreateProduct(BossTypes.BowserShell); this.bowser.HitboxType = HitboxTypes.Half; if (this.bowser.IsFacingLeft) { this.bowser.XSpeed = -6.0f; } else { this.bowser.XSpeed = 6.0f; } }
public BowserIdleState(Bowser bowser) { this.bowser = bowser; this.bowser.XSpeed = 0; if (this.bowser.IsFacingLeft) { this.bowser.Sprite = this.bowser.SpriteFactory.CreateProduct(BossTypes.BowserIdleLeft); } else { this.bowser.Sprite = this.bowser.SpriteFactory.CreateProduct(BossTypes.BowserIdleRight); } }
public BowserFireBreathState(Bowser bowser) { Systems.Events.TheInstance.BowserFire(); this.bowser = bowser; if (this.bowser.IsFacingLeft) { this.bowser.Sprite = this.bowser.SpriteFactory.CreateProduct(BossTypes.BowserFireLeft); this.bowser.fireball = new BowserFireball(true, this.bowser.PositionInGame.X, this.bowser.PositionInGame.Y); } else { this.bowser.Sprite = this.bowser.SpriteFactory.CreateProduct(BossTypes.BowserFireRight); this.bowser.fireball = new BowserFireball(false, this.bowser.PositionInGame.X, this.bowser.PositionInGame.Y); } }
public IEntity AddEnemy(ContentManager content, GraphicsDevice graphics, Peach Peach) { switch (type) { case ("goomba"): entity = new Goomba(content, graphics); break; case ("redkoopatroopa"): entity = new KoopaTroopa(content, graphics, true); break; case ("greenkoopatroopa"): entity = new KoopaTroopa(content, graphics, false); break; case ("piranha"): entity = new Piranha(content, graphics, Peach); break; case ("bowser"): entity = new Bowser(content, graphics); bowser = (Bowser)entity; break; case ("mario"): entity = new Mario(content, graphics); break; case ("healthBar"): entity = new HealthBar(content, graphics, bowser); break; default: break; } return(entity); }
static void Main(string[] args) { Character character = new Character(); character.Move(); character.ShowDetails(); Mario mario = new Mario(); mario.Move(); mario.CollectMoneys(); mario.Jump(); mario.Swim(); mario.ShowDetails(); Bowser bowser = new Bowser(); bowser.Move(); bowser.DobleJump(); bowser.ShootFire(); bowser.ShowDetails(); MamaPinguino mp = new MamaPinguino(); mp.Move(); mp.ShowDetails(); }
public BowserController(Bowser e) : base(e) { //--- }