tutorial update

This commit is contained in:
ntr 2018-12-31 17:31:50 +11:00
parent 3095a8723b
commit 7883a3c030

View File

@ -25,29 +25,30 @@ Once you have a team ready press the New PVE Game button to start playing.
`; `;
const SKILL_PHASE_MESSAGE = ` const SKILL_PHASE_MESSAGE = `
A cryps battle has three main phases. This first phase is called the SKILL PHASE. A cryps battle has two main phases. This first phase is called the SKILL PHASE.
Your cryps are positioned on the left, your opponent's are on the right. Your cryps are positioned on the left, your opponent's are on the right.
In the centre are your cryps' SKILLS, grayed out SKILLS are currently ON COOLDOWN. In the centre are your cryps' SKILLS, grayed out SKILLS are currently ON COOLDOWN.
A skill's cooldown reduces on every turn that cryp does not use a skill with a cooldown. A skill's cooldown reduces on every turn that cryp does not use a skill with a cooldown.
For the moment, drag ATTACK onto the opponent team to have your cryps attack them with physical damage. For the moment, drag ATTACK onto the opponent team to have your cryps attack them with physical damage.
`; `;
const TARGET_PHASE_MESSAGE = ` // const TARGET_PHASE_MESSAGE = `
This phase is the TARGET PHASE. // This phase is the TARGET PHASE.
In cryps you do not directly attack your opponent's cryps, you attack the opponent as a team // In cryps you do not directly attack your opponent's cryps, you attack the opponent as a team
and you and your opponent choose which cryp is the TARGET of each ability. // and you and your opponent choose which cryp is the TARGET of each ability.
Drag the incoming ATTACKS from the right hand side onto your own cryps. // Drag the incoming ATTACKS from the right hand side onto your own cryps.
It's wise to spread the damage around! // It's wise to spread the damage around!
`; // `;
const RESOLUTION_PHASE_MESSAGE = ` const RESOLUTION_PHASE_MESSAGE = `
Finally we come to the RESOLUTION PHASE. The second phase is called the RESOLUTION PHASE.
This phase happens automatically, every skill is RESOLVED in order of its SPEED. This phase happens automatically, every skill is RESOLVED in order of its SPEED.
This is important because attacks only RESOVLE while their caster is still able to use the skill, This is important because attacks only RESOLVE while their caster is still able to use the skill,
a fast skill that does a small amount of damage may KO an opponent cryp, causing any SKILLS a fast skill that does a small amount of damage may KO an opponent cryp, causing any SKILLS
they have used to no longer RESOLVE! they have used to no longer RESOLVE!
Another example of this is the skill STUN. STUN causes an opponent cryp to be unable to use any Another example of this is the skill STUN. STUN causes an opponent cryp to be unable to use any
abilities for TWO TURNS (including the turn it resolves on). abilities for TWO TURNS including the turn it resolves on. In other words it lasts for the rest of the turn it resolves on
and the whole next turn.
Try it now! Try it now!
`; `;
@ -65,7 +66,7 @@ const STEPS = [
'welcome', 'welcome',
'homepage', 'homepage',
'skillPhase', 'skillPhase',
'targetPhase', // 'targetPhase',
'resolutionPhase', 'resolutionPhase',
'finishPhase', 'finishPhase',
'none', 'none',
@ -119,7 +120,7 @@ function tutorial() {
if (step === 'welcome') return showTutorial(WELCOME_MESSAGE, 'welcome', 'homepage'); if (step === 'welcome') return showTutorial(WELCOME_MESSAGE, 'welcome', 'homepage');
if (step === 'homepage') return showTutorial(HOMEPAGE_MESSAGE, 'homepage', 'skillPhase'); if (step === 'homepage') return showTutorial(HOMEPAGE_MESSAGE, 'homepage', 'skillPhase');
if (step === 'skillPhase') return showTutorial(SKILL_PHASE_MESSAGE, 'skillPhase', 'targetPhase'); if (step === 'skillPhase') return showTutorial(SKILL_PHASE_MESSAGE, 'skillPhase', 'targetPhase');
if (step === 'targetPhase') return showTutorial(TARGET_PHASE_MESSAGE, 'targetPhase', 'resolutionPhase'); // if (step === 'targetPhase') return showTutorial(TARGET_PHASE_MESSAGE, 'targetPhase', 'resolutionPhase');
if (step === 'resolutionPhase') return showTutorial(RESOLUTION_PHASE_MESSAGE, 'resolutionPhase', 'finishPhase'); if (step === 'resolutionPhase') return showTutorial(RESOLUTION_PHASE_MESSAGE, 'resolutionPhase', 'finishPhase');
if (step === 'finishPhase') return showTutorial(FINISH_PHASE_MESSAGE, 'finishPhase', 'none'); if (step === 'finishPhase') return showTutorial(FINISH_PHASE_MESSAGE, 'finishPhase', 'none');