D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
kg
Full window
Github gist
Basic JSIL HTML Template
<!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>