
cocos
文章平均质量分 73
lovesnowbest
打卡专用博客
展开
-
cocos-2d-x学习笔记
Cocos-2dx学习笔记1.create a spritecode: auto player=Sprite::create("player.png",rect(0,0,27,40));player->setPosition(Point(x,y));player->setscale(1.5); //代表显示的倍数this->addChild(player); //讲player添加到背原创 2017-04-10 16:58:25 · 563 阅读 · 2 评论 -
Cocos-2d-x 学习笔记二(Action篇)
Cocos-2d-x学习笔记二1.Action类 ActionInterval example:Flipx() ActionInstant是瞬时动作类,表示瞬间完成,中间没有动画效果,Flipx()就是它的一个例子,当物体走到障碍物时会有一个转向的过程,这可以通过Flipx的动作效果,以下是code: //创建移动动作ActionInterval *moveto = MoveTo::c原创 2017-04-12 00:33:56 · 283 阅读 · 0 评论 -
Cocos study notes-Menu
cocos study notes-Menureference: jellythink In cocos-2d-x, its menu UI system can be divided to three catageries: MenuItemLabel MenuItemSprite MenuItemToggle Now, let’t talk about them in deta原创 2017-05-02 22:23:45 · 248 阅读 · 0 评论 -
cocos study notes-Sprite
cocos study notes-SpriteReference: [jellythink](“http://www.jellythink.com/archives/742“) 1.Sprite class Sprite is a 2D picture object,which can be defined by using a picture or part of picture.A Spr原创 2017-05-03 23:18:05 · 245 阅读 · 0 评论 -
cocos study notes-Scene
cocos study notes-Scenereference: [jellythink](“http://www.jellythink.com/archives/733“)1.create a sceneUsually, we write like this:auto scene=Scene::create();We create a scene by this way and then add原创 2017-05-04 16:33:22 · 218 阅读 · 0 评论