Beispiel #1
0
 public DialogProperty(DialogText text, DialogArrow arrow, bool shouldChangePositionOnNextDialog, bool showArrowOnNextDialog, float time)
 {
     this.dialogText     = text;
     this.dialogArrow    = arrow;
     this.changePosition = shouldChangePositionOnNextDialog;
     this.showArrow      = showArrowOnNextDialog;
     this.elapsedTime    = time;
 }
Beispiel #2
0
        private void Initialize()
        {
            Vector2     center          = new Vector2((Screen.width - 300f) / 2f, -(Screen.height + 95f) / 2f).NormalizePosition();
            Vector2     upperLeftCorner = new Vector2(0f, -(Screen.height / 2f - 100f)).NormalizePosition();
            DialogArrow empty           = new DialogArrow(0f, 0f, 0f);

            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Hello! Let's get started on how to play this game."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "If you don't want to continue, press ESCAPE key at any time."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(83.82f, -259.75f, "This is your unit."), new DialogArrow(-193.24f, -91.92f, 110.5f), true, true, 0f));
            this.properties.Add(new DialogProperty(new DialogText(83.82f, -259.75f, "There are no other types of units you get to play with."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(400f, -259.75f, "This is your opponent's unit."), new DialogArrow(174.92f, 101.9f, 287.9f), true, true, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "All units behave the same, regardless of faction."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Lesson 1: Unit Selection."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "To select your unit, left click on the unit."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "To deselect your unit, left click on the ground."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "You can also select your unit by dragging a box over them."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Lesson 2: Camera Panning."), new DialogArrow(0f, 0f, 0f), true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "To pan the camera around, move the mouse cursor near the edge."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Lesson 3: Moving your unit."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "Select the unit, and right click on the ground to move."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Lesson 4: Getting to know unit abilities."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "There are three abilities: Attack, Split, and Merge."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Let's start with Attacking."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "At the top of each unit, it shows the current health and the maximum health."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "When a unit is attacked, it will flash red briefly, and its current health will deplete 1 by 1."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "When a unit's health is zero, the unit will disappear."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "Now, let's start. First, select your unit."), new DialogArrow(-193.24f, -91.92f, 110.5f), true, true, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "Then, right click near your opponent's unit to attack."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "That is how you attack your opponent."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "For the next ability, let's work on Splitting."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "To split, select your unit and press the S key."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "Your unit will then clone itself. Try and see!"), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "You get a large army if you keep repeating and splitting."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Finally, there's Merging."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "Select 2 units by box selecting them."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(upperLeftCorner.x, upperLeftCorner.y, "When you have 2 units selected, press the D key."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "As you merge, your unit grows larger."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "The larger the unit, the stronger its attack power, and the more health points (HP) it has."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "However, you cannot split a merged unit."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Lesson 5: Winning and Losing."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "Your goal is to attack all of your opponent's units until there is no more enemy units."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "To win, you must reach your goal."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "You lose when you are wiped out by your opponent."), empty, true, false, 0f));
            this.properties.Add(new DialogProperty(new DialogText(center.x, center.y, "That is all I will teach you. Enjoy!"), empty, true, false, 0f));
        }