问题
Is there a way to run an xna game from a web page without installing anything? Something similiar to java, silverlight or very close to a wpf browser applications (XBAP).
Scenario:
Go on webpage, Get asked to install the game. Game installs, game screen shows up in webpage. Can full screen, etc.
The game is a full blown xna framework game, using 3d, has access to the system calls such as directx and other low level networking api. This is probably more of having javascript working with windows system if anything.
回答1:
SilverSprite seems to do what you want. I have never used it but see XNA 2D games come to the browser via Silverlight.
Essentially it allows XNA game developers to run their games in Silverlight 2, though there is a limitation: the games that can be converted may only have SpriteBatch-based graphics, meaning no 3D games.
回答2:
If your game needs access at the level you describe then it can't really run from within the browser. It will need to be properly installed on the users machine.
回答3:
You can use a ClickOnce installer to launch your came FROM a web page, but not run it IN a webpage.
回答4:
The Unity game engine (and designer) is pretty darned fabulous for doing exactly what you describe. You can do all the logic in C# if desired.
来源:https://stackoverflow.com/questions/1528468/embed-xna-game-in-a-webpage