activepython

is it possible to run pygame or pyglet in a browser?

柔情痞子 提交于 2019-11-27 15:08:06
I have 3 game libraries installed on my PC: pyglet, pygame and Panda3D. I would like to create a 2D game and make it a web browser game so i can put it on facebook. I know that Panda3D has a web-browser-plugin. Panda3D is for 3D games mainly . Therefore, I'm asking, is it possible to play a pyglet or pygame game in a browser? If not, what Python library do you recommend? Neither pyglet nor pygame will run in a browser. I wouldn't really recommend using Python at all if you target is a web browser. JavaScript (with HTML5 Canvas), Flash, or Java applets are better suited for that environment. If

is it possible to run pygame or pyglet in a browser?

核能气质少年 提交于 2019-11-26 17:02:32
问题 I have 3 game libraries installed on my PC: pyglet, pygame and Panda3D. I would like to create a 2D game and make it a web browser game so i can put it on facebook. I know that Panda3D has a web-browser-plugin. Panda3D is for 3D games mainly . Therefore, I'm asking, is it possible to play a pyglet or pygame game in a browser? If not, what Python library do you recommend? 回答1: Neither pyglet nor pygame will run in a browser. I wouldn't really recommend using Python at all if you target is a