quick game

This commit is contained in:
skysthelimitt 2023-10-03 21:21:22 -04:00
parent 8ea7400608
commit 31769d996f
4 changed files with 32 additions and 0 deletions

View File

@ -734,5 +734,10 @@
"name": "Hextris",
"directory": "hextris",
"image": "images/icons/apple-touch-152.png"
},
{
"name": "Sprinter",
"directory": "sprinter",
"image": "icon.jpeg"
}
]

BIN
sprinter/icon.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

27
sprinter/index.html Normal file
View File

@ -0,0 +1,27 @@
<html>
<head>
<script src="/js/all.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Sprinter</title>
<style>html{background-color:#000;}</style>
</head>
<body>
<div id="ruffle" width="100%" height="100%"></div>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script>
window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener("load", (event) => {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
const container = document.getElementById("ruffle");
player.id = "player";
player.style.width = "100%";
player.style.height = "100%";
container.appendChild(player);
player.load("sprinter.swf");
});
</script>
</body>
</html>

BIN
sprinter/sprinter.swf Normal file

Binary file not shown.