forked from kasperpeulen/euclidthegame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial.html
More file actions
68 lines (54 loc) · 1.88 KB
/
Copy pathtutorial.html
File metadata and controls
68 lines (54 loc) · 1.88 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
layout: default
title: Tutorial
cat: Tutorial
---
<p id="goal">
<b>Goal:</b>
<ol>
<li>Construct a line segment from A to B.</li>
<li>Construct a ray from C to D.</li>
<li>Construct a circle with center E and radius EF.</li>
<li>Construct a circle with center F and radius EF.</li>
<li>Construct a (black) point at the intersection of AB and the ray CD.</li>
</ol>
</p>
<p id="winningimg">
<img src="data:image/png;base64, {% base64 img/tutorial.png %}">
</p>
<p><b>Hint:</b> Hold your mouse on a tool to get a brief instruction how the tool works.</p>
<div id="hidden" style="display: none">
<p id="level">
Well done ! You are now ready to begin with <a href="/Level1/">Level 1</a>
</p>
</div>
<script type="text/javascript">
{% include parameters480p.js %}
parameters.customToolBar = "501 | 5 | 15 | 18 | 10"; //| 100001 | 100002 | 9 | 4 | 3 | 100003 | 53";
parameters.ggbBase64 = "{% base64 ggb/tutorial.ggb %}" ;
parameters.language = "en"
</script>
<div id="applet_container">
</div>
<script type="text/javascript">
{% include testobjects.js %}
checkobject("ray1",0.5,0);
checkobject("circle1",-1,0);
checkobject("circle2",0.5,0);
checkobject("intersect1",0.5,0);
checksegment("segment1",0.5,0);
if (drawn("ray1") + drawn("circle1") + drawn("circle2") + drawn("intersect1") + drawn("segment1") ===1 ) {
Command('progress = 20');
}
if (drawn("ray1") + drawn("circle1") + drawn("circle2") + drawn("intersect1") + drawn("segment1") === 2 ) {
Command('progress = 40');
}
if (drawn("ray1") + drawn("circle1") + drawn("circle2") + drawn("intersect1") + drawn("segment1") ===3 ) {
Command('progress = 60');
}
if (drawn("ray1") + drawn("circle1") + drawn("circle2") + drawn("intersect1") + drawn("segment1") ===4 ) {
Command('progress = 80');
}
LevelCompleted(drawn("ray1") && drawn("circle1") && drawn("circle2") && drawn("intersect1") && drawn("segment1"),4);
}
</script>