1
0
This commit is contained in:
David Miller
2021-07-29 12:23:00 +08:00
commit bebd579f62
3 changed files with 47 additions and 0 deletions

5
catch-the-cat.js Normal file

File diff suppressed because one or more lines are too long

41
index.html Normal file
View File

@@ -0,0 +1,41 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Catch The Cat</title>
<style>
* {
padding: 0;
margin: 0
}
body {
background-color: #eeeeee;
}
#catch-the-cat {
width: 100%;
margin-top: 32px;
text-align: center;
}
</style>
</head>
<body>
<script src="phaser.min.js"></script>
<script src="catch-the-cat.js"></script>
<div id="catch-the-cat"></div>
<script>
window.game = new CatchTheCatGame({
w: 11,
h: 11,
r: 20,
backgroundColor: 0xffffff,
parent: 'catch-the-cat',
statusBarAlign: 'center',
credit: 'David Miller'
});
</script>
</a>
<style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
</body>
</html>

1
phaser.min.js vendored Normal file

File diff suppressed because one or more lines are too long