public static void Start() { Player player = CharacterBuilder.BuildCharacter(); LineHelpers.StoryPrint("As you enter the town you a man comes up to you and asks if you are the hero they hired. You tell them no but ask what the issue is. He tells you of creatures leaving a cave to the west and a bounty of 10000 gold on a Troll Warlord in the cave.", player); Town.Enter(player); }
/// <summary> /// Monster or 'enemy' entity for the game. /// </summary> /// <param name="game">Current game instance.</param> public Monster(Game game) : base(game) { //Initial values Texture = Game.Content.Load <Texture2D>("Player/blob_Characters"); SetAnimationAtlas(CharacterBuilder.BuildCharacter("Blue")); SpriteTitle.Text = "Evil Librarian"; SpriteTitle.RenderColor = Color.OrangeRed; LeftCollided += CollidedWithLeft; RightCollided += CollidedWithRight; Speed = 4; JumpHeight = 6; }
/// <summary> /// Player object controlled by game user. /// </summary> /// <param name="game">Current game instance.</param> public Player(Game game) : base(game) { //Initial values Texture = Game.Content.Load <Texture2D>("Player/blob_Characters"); SetAnimationAtlas(CharacterBuilder.BuildCharacter("Yellow")); SpriteTitle.Text = "Tosker"; SpriteTitle.RenderColor = Color.Green; IsStatic = false; Width = 64; Height = 64; Speed = 6; JumpHeight = 8; //Delegate game object collison events BottomCollided += Landed; }