-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (39 loc) · 1.56 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
<html>
<head>
<link rel="stylesheet" href="style.css">
<!-- tailwind preflight -->
<link href="https://unpkg.com/tailwindcss@3.4.3/src/css/preflight.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/phaser@3.60.0/dist/phaser-arcade-physics.min.js"></script>
<script language="javascript" type="text/javascript" src="./lib/NEAT_browser.js"></script>
</head>
<body>
<img class="whiteblood-cell1" id="whiteblood-cell" src="./white_blood_cell_1.png" alt="Whiteblood Cell">
<img class="virus" id="virus" src="./greenvirus1.png" alt="virus">
<div class="title-bar">
<h1>ImmunoQuest: Evolution in the Bloodstream</h1>
</div>
<script src="bar.js"></script>
<script src="npc.js"></script>
<script src="game.js"></script>
<a class="github-link" href="https://github.com/karyeet/evolution" target="_blank">
<img src="./gh.png" alt="GitHub Logo">
</a>
<img class="whiteblood-cell-chase" id="chase-cell" src="./white_blood_cell_1.png" alt="Whiteblood Cell">
<script>
var wbcChaseImg = document.getElementById('chase-cell');
// Function to update the position of the white blood cell images
function updatePosition(x, y) {
wbcChaseImg.style.left = x + 'px';
wbcChaseImg.style.top = y + 'px';
}
// Listen for mousemove events
document.addEventListener('mousemove', function (event) {
updatePosition(event.clientX, event.clientY);
});
</script>
<!--<div class="floating-text-box">
Watch the white blood get better at navigating to
viruses through their daughters!
</div>-->
</body>
</html>