简体   繁体   中英

Can python be integrated into HTML, JavaScript… Online?

I have a python multiplayer game which I want to host online. So far I have only seen online games which use some kind of user downloaded library (such as a flash or the java runtime virtual box) of course, many gamers won't have python installed. For the game, it is using the multiplayer by the library socket, and the tcp protocol. I hope someone has some framework, or even just some links thats could help.

Thanks

This is just a thought, since I know nothing about your game, but have you heard of Django ? It is a Python-based web framework.

This may not solve the graphical portion of your game, if it does not interface well with Flash, HTML5, or JavaScript. But this would allow you to reference your Python classes and game libraries directly in your webpage's framework.

Does packaging your game is an option? If yes maybe http://www.tidesdk.org/ will help. As far as I know it allow to include python runtime in installer.

Also I have seen python implementation in javascript - http://www.skulpt.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM