摘要:
如果不设置reslovedesign,的话,只设置framesize,会表现为原始的像素级别就是,800*600.framesize只是窗口的大小,如果只设置窗口的大小,像素会聚集在一起。如果是400*300,那么点击右上角获取到的位置还是800*600 阅读全文
posted @ 2014-12-28 11:40
yufenghou
阅读(157)
评论(0)
推荐(0)
摘要:
auto animation = Animation::create(); animation->addSpriteFrameWithFile("NPC/hero.png"); animation->addSpriteFrameWithFile("NPC/hero1.png")... 阅读全文
posted @ 2014-12-28 09:03
yufenghou
阅读(415)
评论(0)
推荐(0)
摘要:
做碰撞检测的时候,首先把opengl的坐标点转化为tiledmap的 tiled 坐标,然后从layer中看这个地方的精灵,如果这个地方有精灵不嫩通过。 阅读全文
posted @ 2014-12-28 08:19
yufenghou
阅读(224)
评论(0)
推荐(0)

浙公网安备 33010602011771号