forked from kasperpeulen/euclidthegame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BonusLevel2.html
67 lines (52 loc) · 1.66 KB
/
BonusLevel2.html
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
---
layout: default
title: Level 25
lang: en
number: 25
---
<p id="goal">
<b>Goal:</b> Construct a regular pentagon inscribed in a circle
</p>
<p id="winningimg">
<img src="http://i.snag.gy/c8598.jpg"/ >
</p>
<div id="hidden" style="display: none">
<p id="level">
Euclid would be proud of you. You completed ALL levels !!!
</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/Level25.ggb %}" ;
parameters.language = "en"
</script>
<div id="applet_container">
</div>
<script type="text/javascript">
{% include testobjects.js %}
checkobject("pointL",0,0);
checkobject("pointLB",0,0);
checkobject("pointR",0,0);
checkobject("pointRB",0,0);
checkobject("pointT",0,0);
checkdirection("segmentB");
checkdirection("segmentLB");
checkdirection("segmentRB");
checkdirection("segmentRT");
checkdirection("segmentLT");
if (drawn("segmentB") + drawn("segmentLB") + drawn("segmentRB") + drawn("segmentRT") + drawn("segmentLT") === 1){
Command('progress = 20');
}
if (drawn("segmentB") + drawn("segmentLB") + drawn("segmentRB") + drawn("segmentRT") + drawn("segmentLT") === 2){
Command('progress = 40');
}
if (drawn("segmentB") + drawn("segmentLB") + drawn("segmentRB") + drawn("segmentRT") + drawn("segmentLT") === 3){
Command('progress = 60');
}
if (drawn("segmentB") + drawn("segmentLB") + drawn("segmentRB") + drawn("segmentRT") + drawn("segmentLT") === 4){
Command('progress = 80');
}
LevelCompleted(drawn("segmentB") && drawn("segmentLB") && drawn("segmentRB") && drawn("segmentRT") && drawn("segmentLT"),10);
}
</script>