我运行项目后没有出现pygame窗口
我为我的立方体安装了pygame和OpenGL,但我的问题是立方体永远不会弹出。
I install PyGame and OpenGL to my PyCharm for my cube but my problem is the cube never pop up.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们将需要一些代码来帮助您。
这是一个基本的清单,您是:
1.1。如果是,这个名字正确吗?
1.2。是否在正确的工作目录中(通过脚本给定路径访问)中的图像?
2.1。颜色与黑色不同吗?
5.1。如果是的,那是在命中任何东西之前放置吗?否则,您只会闪烁立方体并在此之后擦除
We will need some code to be able to help you.
Here is a basic checklist, did you:
1.1. If yes, is the name correct?
1.2. Is the image in the correct working directory (accessible by the script given its path)?
2.1. is the color something different than black?
5.1. if yes, is that placed before blitting anything? Otherwise you would just blit your cube and erase it right after