clean up, more games, add deployment script
This commit is contained in:
parent
ba2fdd5caf
commit
5dcb8038c4
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
|||
.direnv
|
||||
smb.nes
|
||||
*.nes
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
@ -24,3 +24,5 @@ dist-ssr
|
|||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
junk
|
BIN
Tetris.nes
BIN
Tetris.nes
Binary file not shown.
|
@ -6,7 +6,7 @@
|
|||
<title>Meowio</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<div id="app">loading...</div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"rebuild": "cd jsnes && yarn && cd .. && yarn upgrade jsnes && vite --force"
|
||||
"rebuild": "cd jsnes && yarn && cd .. && yarn upgrade jsnes && vite --force",
|
||||
"deploy": "vite build && rsync -r --chown nginx:nginx dist/ information-superhighway.net:/var/www/information-superhighway/meowio"
|
||||
},
|
||||
"dependencies": {
|
||||
"jsnes": "file:./jsnes"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<script>
|
||||
import { loadSample } from './lib/sampload.js'
|
||||
import NES from './lib/NES.svelte'
|
||||
import SampleTweak from './lib/SampleTweak.svelte';
|
||||
|
||||
|
@ -37,12 +36,25 @@
|
|||
<main>
|
||||
<NES {rom} {opts}/>
|
||||
<button onclick={() => nes_load_url("smb.nes")}>Mario</button>
|
||||
<button onclick={() => nes_load_url("smb2.nes")}>Mariio</button>
|
||||
<button onclick={() => nes_load_url("smb3.nes")}>Mariiio</button>
|
||||
<button onclick={() => nes_load_url("zelda.nes")}>Zelda</button>
|
||||
<button onclick={() => nes_load_url("Tetris.nes")}>Tetris</button>
|
||||
<button onclick={() => nes_load_url("megaman2.nes")}>Mega Man 2</button>
|
||||
<button onclick={() => nes_load_url("ducktales.nes")}>Ducktales</button>
|
||||
<button onclick={() => nes_load_url("pictionary.nes")}>Pictionary</button>
|
||||
<button onclick={() => nes_load_url("granddad.nes")}>Grand Dad</button>
|
||||
<button onclick={() => nes_load_url("RadGravity.nes")}>Rad Gravity</button>
|
||||
<input bind:files={romfile} type="file" />
|
||||
<hr/>
|
||||
<p>DPad: Arrow keys<br/>B button: Z, A button: X, Select: Tab / C, Start: Return / V</p>
|
||||
<hr/>
|
||||
<SampleTweak bind:opts />
|
||||
<hr/>
|
||||
<div>
|
||||
made by <a href="https://gamemaking.social/@SpindleyQ/">jeremy penner</a> | based on <a href="https://jsnes.org">jsnes</a> | <a href="https://git.information-superhighway.net/SpindleyQ/meowio/">source code</a>
|
||||
</div>
|
||||
<div>no copyright intended, delete all roms after 48 hours or nintondo will getcha</div>
|
||||
</main>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -2,8 +2,10 @@ import { mount } from 'svelte'
|
|||
import './app.css'
|
||||
import App from './App.svelte'
|
||||
|
||||
const appElement = document.getElementById('app');
|
||||
appElement.innerHTML = "";
|
||||
const app = mount(App, {
|
||||
target: document.getElementById('app'),
|
||||
target: appElement,
|
||||
})
|
||||
|
||||
export default app
|
||||
|
|
|
@ -4,4 +4,5 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
base: "",
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue