forked from zero-to-mastery/ZTM-Quest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomputer.interaction.js
More file actions
37 lines (33 loc) · 1.11 KB
/
Copy pathcomputer.interaction.js
File metadata and controls
37 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { displayDialogue } from '../../utils';
const careerPathDialogue = [
`
<div>
<h2>Zero To Mastery Career Paths</h2>
<p>
Whether you’re a complete beginner or an experienced professional, figuring out the
next step in your career can be overwhelming.
</p>
<p>
Our curated Career Paths provide you with the step-by-step roadmap you need to take you from any level, to getting hired
and advancing your career.
</p>
<p>
<a href="https://zerotomastery.io/career-paths/" style="color: #007BFF; text-decoration: none;" target='_blank'>Pick a Career Path here</a> and start your journey.
</p>
</div>
`,
];
export const interactionWithComputer = (player, k, map) => {
const [computer] = map.query({ include: 'computer' });
player.onCollide('computer', () => {
computer.play('on');
displayDialogue({
k,
player,
text: careerPathDialogue,
});
});
player.onCollideEnd('computer', () => {
computer.play('off');
});
};