the bustling town crammed full the crescent slice of level ground at the base of the slope , with the castle of good hope at its heart upon the shore , its outer walls forming a star-shape from above with the butter-yellow pentagon of the fort nested within , gleaming in the early morning as her cannon fired the welcoming salute to leeward .