Skip to content

Commit

Permalink
added 3 new nds games
Browse files Browse the repository at this point in the history
  • Loading branch information
IamChristianS committed Sep 1, 2023
1 parent 4d05d1e commit 3fdc292
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 0 deletions.
Binary file not shown.
32 changes: 32 additions & 0 deletions games/animalcrossingwildworld/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Animal Crossing: Wild World</title>
<!--Google Analytics-->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M9KJ1XPKLF"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-M9KJ1XPKLF');
</script>
<!--Google Analytics-->
<style>
body {
background-color: #333333;
}
</style>
</head>
<body>
<desmond-player id="player"></desmond-player>
<script src="../../desmond/desmond.min.js"></script>
<script>
window.onload = function() {
document.querySelector("desmond-player").loadURL("animalcrossingwildworld.nds")
document.querySelector("desmond-player").shadowRoot.querySelector("#top").style = "position: fixed;transform: translate(-50%, -50%);width: 50%;left: 50%;top: 25%;height: 50%;";
document.querySelector("desmond-player").shadowRoot.querySelector("#bottom").style = "position: fixed;transform: translate(-50%, -50%);width: 50%;left: 50%;top: 75%;height: 50%;";
}
</script>
</body>
</html>
32 changes: 32 additions & 0 deletions games/supermariobros/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Super Mario Bros</title>
<!--Google Analytics-->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M9KJ1XPKLF"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-M9KJ1XPKLF');
</script>
<!--Google Analytics-->
<style>
body {
background-color: #333333;
}
</style>
</head>
<body>
<desmond-player id="player"></desmond-player>
<script src="../../desmond/desmond.min.js"></script>
<script>
window.onload = function() {
document.querySelector("desmond-player").loadURL("supermariobros.nds")
document.querySelector("desmond-player").shadowRoot.querySelector("#top").style = "position: fixed;transform: translate(-50%, -50%);width: 50%;left: 50%;top: 25%;height: 50%;";
document.querySelector("desmond-player").shadowRoot.querySelector("#bottom").style = "position: fixed;transform: translate(-50%, -50%);width: 50%;left: 50%;top: 75%;height: 50%;";
}
</script>
</body>
</html>
Binary file added games/supermariobros/supermariobros.nds
Binary file not shown.
32 changes: 32 additions & 0 deletions games/superscribblenauts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>Super Scribblenauts</title>
<!--Google Analytics-->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M9KJ1XPKLF"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-M9KJ1XPKLF');
</script>
<!--Google Analytics-->
<style>
body {
background-color: #333333;
}
</style>
</head>
<body>
<desmond-player id="player"></desmond-player>
<script src="../../desmond/desmond.min.js"></script>
<script>
window.onload = function() {
document.querySelector("desmond-player").loadURL("superscribblenauts.nds")
document.querySelector("desmond-player").shadowRoot.querySelector("#top").style = "position: fixed;transform: translate(-50%, -50%);width: 50%;left: 50%;top: 25%;height: 50%;";
document.querySelector("desmond-player").shadowRoot.querySelector("#bottom").style = "position: fixed;transform: translate(-50%, -50%);width: 50%;left: 50%;top: 75%;height: 50%;";
}
</script>
</body>
</html>
Binary file not shown.

0 comments on commit 3fdc292

Please sign in to comment.