-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
88 lines (86 loc) · 4.87 KB
/
index.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<title>The Unbelievable Mechanisms</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=1280">
<link rel="icon" href="images/favicon.svg" type="image/svg"/>
<link href="css/main.css" rel="stylesheet">
<script type='text/JavaScript' src='js/out.js'></script>
</head>
<body>
<!-- <button class="temporaryGodlyCreationButton">Creo!</button>
<input class="temporaryDirectionChange" type="number" name="" value="1"> -->
<video class="videoBackground" autoplay loop muted poster="images/factory.png">
<source src="video/factory.mp4" type="video/mp4">
</video>
<header class="headerWrapper">
<h1 class="headerTitle">The Unbelievable Mechanisms</h1>
<p class="headerText">The final project for Coder's Lab Front-end course</p>
</header>
<main class="mainWrapper">
<section class="menuWrapper">
<div class="level">Level: 1</div>
<div class="timer">00:00:00</div>
<button class="startLevelButton">start game</button>
<button class="resetButton">reset level</button>
</section>
<section class="instructionsWrapper">
<h3 class="instructionsTitle">Instructions</h3>
<div class="instructionsText">
<p>To win level, you need to move the ball to the goal (wheelbarrow).</p>
<p>Some elements can be moved - try clicking everything!</p>
<p>Green play button lets you "run" the ball and red pause button sets it back to it's initial position</p>
</div>
</section>
<section class="playfieldWrapper">
<!--Those images below ensure loading before game starts. Canvas uses them as images to draw -->
<div class="images">
<img src="images/barrier.png" id="barrier" class="canvasImage">
<img src="images/basketball.png" id="basketball" class="canvasImage">
<img src="images/billiard-ball.png" id="billiardsball" class="canvasImage">
<img src="images/football.png" id="football" class="canvasImage">
<img src="images/plank1.png" id="plank1" class="canvasImage">
<img src="images/plank2.png" id="plank2" class="canvasImage">
<img src="images/wheelbarrow.png" id="wheelbarrow" class="canvasImage">
<img src="images/spring.png" id="spring" class="canvasImage">
<img src="images/fan.png" id="fan" class="canvasImage">
</div>
<!-- <div class="noMobile">
Unfortunately, Canvas HTML element doesn't work on mobile. Please run the game on desktop browser.
</div> -->
<div class="welcomeTextWrapper">
<p class="welcomeText">Welcome to <span class="welcomeTitle">The Unbelievable Mechanisms</span></p>
<p class="welcomeText">Your goal: get the ball to it's destination.</p>
<p class="welcomeText">If you are ready to go, push the start button!</p>
</div>
<div class="winScreen">
<p class="winText">You won!</p>
<p class="winTextTime">Your time:</p>
<p class="winTimer"></p>
<p class="nextLevel">Click the button for next level!</p>
<button class="nextLevelButton">Next Level</button>
</div>
<div class="noMoreLevels">
<p class="noMoreLevelsText">Currently, there are no more levels.</p>
<p class="noMoreLevelsText">You have beaten them all!</p>
<p class="noMoreLevelsText">Well done!</p>
<p class="noMoreLevelsText">Thank you for playing!</p>
</div>
<canvas class="playfield" width="1000px" height="400px"></canvas>
<img src="images/play.png" class="playPauseButton"></img>
</section>
<section class="resetConfirmWrapper">
<p class="resetConfirmText">Are you sure?<br> Your current progress will be reset, <br> but time taken to resolve the puzzle will not change </p>
<div class="resetButtonsWrapper">
<button class="resetConfirmButton">Yes</button>
<button class="resetDeclineButton">No</button>
</div>
</section>
</main>
<footer class="footerWrapper">
<p class="footerText">Created by Karol Schweitzer; 2017 </p>
<a class="footerLink" href="https://github.com/Schkar" target="_blank"> Github Link</a>
</footer>
</body>
</html>