AttributeError: module 'cocos' has no attribute 'layer

新手上路,请多包涵

运行报错AttributeError: module 'cocos' has no attribute 'layer'
该怎么解决呢?
另外cocos2d是0.6.5版本(源码博主推荐)

Traceback (most recent call last):
File "D:/pikaqiu/Game2.py", line 17, in <module>

class VCGame(cocos.layer.ColorLayer):

AttributeError: module 'cocos' has no attribute 'layer'

image.png

阅读 1.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进