-
-
Save elw00d/9989234 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
</head> | |
<body onload="onLoad()"> | |
<script type="text/javascript"> | |
var jsilConfig = { | |
printStackTrace: false, | |
xna: 4, | |
manifests: [ | |
"YOUR APPLICATION NAME.exe", | |
"Content/YOUR APPLICATION NAME.contentproj" | |
], | |
}; | |
</script> | |
<script src="../Libraries/JSIL.js" type="text/javascript"></script> | |
<canvas id="canvas" width="1280" height="720"> | |
</canvas><br> | |
<div id="log"></div> | |
<script type="text/javascript"> | |
function runMain () { | |
// We can't invoke Main() since it disposes the Game immediately, breaking everything. | |
var asm = JSIL.GetAssembly("YOUR APPLICATION NAME", true); | |
var game = new asm.YOURNAMESPACE.YOURGAME(); | |
game.Run(); | |
}; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment