开发者

Can I make a game using c++ that will run on the web?

开发者 https://www.devze.com 2023-02-27 00:44 出处:网络
There is some libraries that lets you run C++.So, it is it possible to run a 开发者_开发问答game that uses directx full mode screen?Google is developing a tool to allow this kind of thing via Chrome.

There is some libraries that lets you run C++. So, it is it possible to run a 开发者_开发问答game that uses directx full mode screen?


Google is developing a tool to allow this kind of thing via Chrome. It is called Chrome Native Client, or NACL for short. http://blog.chromium.org/2010/05/sneak-peek-at-native-client-sdk.html


In general, no. Most online games are written with Javascript, Flash, the newly hatchedd HTML5 and similar technologies. Perhaps C++ integration is possible on some level, but you definitely cannot write a browser-hosted game purely and entirely in C++.


it could also be done with an ActiveX control. ActiveX only works in IE. there are Netscape plugins that work in other browsers. so make a solution that contains both. you need a book on ActiveX/COM/OLE. Better yet, take a class if you can find one, you will learn far more, because COM is not an easy subject to just read about and then really do - versioning is a big problem.

nope, not supported in firefox. but read this: http://www.google.com/chrome/intl/en/webmasters-faq.html#activex

some people may have activex controls disabled. if this is the case, your game will not run. you will have to tell the user that they will need to change their security settings in IE. you can get feedback from the object element in javascript as to whether or not the activex loaded. there is code out there for that. http://msdn.microsoft.com/en-us/library/7sw4ddf8%28v=vs.85%29.aspx examples are all over the internet.

0

精彩评论

暂无评论...
验证码 换一张
取 消