-
Notifications
You must be signed in to change notification settings - Fork 833
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix mmap is null error (do not emulate frame without rom present) - use device native samplerate for correct speed and eliminate resampler lag - use static 60fps since NTSC (60Hz) cpu freq is already statically declared in papu embed example: - change default keybinds to the commonly used B=Z / A=X / START=ENTER / SELECT=SHIFT setup - make canvas pixel perfect (2x size) - add example functions for changing master volume and loading and saving nvram to window.localStorage
- Loading branch information
Showing
4 changed files
with
87 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>Embedding Example</title> | ||
|
||
<script type="text/javascript" src="https://unpkg.com/jsnes/dist/jsnes.min.js"></script> | ||
<script type="text/javascript" src="nes-embed.js"></script> | ||
<script>window.onload = function(){nes_load_url("nes-canvas", "InterglacticTransmissing.nes");}</script> | ||
</head> | ||
<body> | ||
<div style="margin: auto; width: 75%;"> | ||
<canvas id="nes-canvas" width="256" height="240" style="width: 100%"/> | ||
</div> | ||
<p>DPad: Arrow keys<br/>Start: Return, Select: Tab<br/>A Button: A, B Button: S</p> | ||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/> | ||
<title>Embedding Example</title> | ||
|
||
<script type="text/javascript" src="https://unpkg.com/jsnes/dist/jsnes.min.js"></script> | ||
<script type="text/javascript" src="nes-embed.js"></script> | ||
<script>window.onload = function(){nes_load_url("nes-canvas", "InterglacticTransmissing.nes");}</script> | ||
</head> | ||
<body> | ||
<center> | ||
<canvas id="nes-canvas" width="256" height="240" style="width: 512px; image-rendering: crisp-edges; image-rendering: pixelated; image-rendering: optimizespeed;"></canvas> | ||
</center> | ||
<p>DPad: Arrow keys<br/>Start: Return, Select: Shift<br/>A Button: X, B Button: Z</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters