public override void Setup() { viewableArea = AddWalls(0, 24, "brick"); AddWizard1(); display1 = AddPlayerScoreDisplay(PlayerIndex.One, "segoe"); display1.Position = ScreenHelper.TopLeftQuarter; wizard2 = AddFourDirectionPlayer(PlayerIndex.Two, "wizard"); wizard2.Category = "wizard2"; wizard2.DisplayPosition = ScreenHelper.CenterRightQuarter; wizard2.OverlayColor = Color.Orange; display2 = AddPlayerScoreDisplay(PlayerIndex.Two, "segoe"); display2.Position = ScreenHelper.TopRightQuarter; AddMonsters("blob", 2); AddMonsters("ghost", 2); AddMonsters("ogre", 2); AddTimedEvent(3, AddRandomMonster); AddRuby(); AddCollisionHandler("wizard", "ruby", WizardRubyCollision); AddBackgroundImage("tile", viewableArea); AddInputHandler(PlayerOneFireball, PlayerIndex.One, Keys.RightControl, Buttons.A); AddInputHandler(PlayerTwoFireball, PlayerIndex.Two, Keys.LeftControl, Buttons.A); AddCollisionHandler("magicball", "brick", FireballBrickCollision); AddCollisionHandler("magicball", "monster", FireballMonsterCollision); AddCollisionHandler("wizard", "monster", WizardMonsterCollision); }
public void AddWizard1() { wizard1 = AddFourDirectionPlayer(PlayerIndex.One, "wizard"); wizard1.DisplayPosition = ScreenHelper.CenterLeftQuarter; }