Skip to content

Instantly share code, notes, and snippets.

@elw00d
Forked from kg/index.html
Created April 5, 2014 08:50
Show Gist options
  • Save elw00d/9989234 to your computer and use it in GitHub Desktop.
Save elw00d/9989234 to your computer and use it in GitHub Desktop.
<!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