python + cocos2d + py2exe
学习过程中遇到的问题问题汇总:
1.ValueError: Can only assign sequence of same size
color = int(define.BLACK[0]) , int(define.BLACK[1]), int(define.BLACK[2]), 【255】(缺少参数) #画网格线的时候出现的问题
2.pyglet.resource.ResourceNotFoundException: Resource "draw_texture.png" was not found on the path. Ensure that the filename has the correct captialisation.
修改了path路径,无法找到 "draw_texture.png"
import os
os.path.join('.')
C:\Python27\Lib\site-packages\cocos\resources(draw_texture.png拷贝到游戏根目录) # 应用程序打包的时候出现的问题
网上学习源码:http://www.jb51.net/article/92092.htm
![](https://images2017.cnblogs.com/blog/934299/201708/934299-20170831094851999-850765541.png)
![](https://images2017.cnblogs.com/blog/934299/201708/934299-20170831094946343-1844306666.png)