Embed xna game in a webpage

被刻印的时光 ゝ 提交于 2020-01-14 18:47:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!