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

 

 

posted @ 2017-08-31 09:51  happy_po  阅读(421)  评论(0编辑  收藏  举报