-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (30 loc) · 979 Bytes
/
index.html
File metadata and controls
38 lines (30 loc) · 979 Bytes
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
<head>
<style>
body {
background: rgb(31, 30, 26);
display: flex;
justify-content: center;
overflow: hidden;
/* Remove vertical centering */
}
</style>
</head>
<body>
<canvas id="gameCanvas" width="512" height="2000"></canvas>
<img id="background-image" src="assets/backgroundYes.png" alt="Background Image" style="height: 2000;width: 512;position: absolute; z-index: -1;">
<script src="js/frame_class.js"></script>
<script src="js/player_classes.js"></script>
<script src="js/platform_creation.js"></script>
<script src="index.js"></script>
<footer id="bottom"></footer>
<script>
// Function to scroll to the bottom of the page
function scrollToBottom() {
var element = document.getElementById("bottom");
element.scrollIntoView({ block: "end" });
}
// Call the function when the page loads
window.addEventListener("load", scrollToBottom);
</script>
</body>
</html>