效果如下图:package{ import flash.display.Sprite; import flash.events.MouseEvent; /** * @author chb * @Email 645338868@qq.com * @data 2015-8-28 * *...
分类:
其他好文 时间:
2015-08-28 19:29:44
阅读次数:
178
Cocos2dx的Sprite由Texure,frame和animation组成,由openes负责渲染。在游戏里,精灵是一个重要的概念,游戏背景、NPC、人物、道具等。在cocos2d-x引擎中,只要是用图片展示的,基本上需要使用精灵类。一、创建精灵常见的三种方法:1、直接使用Sprite的create方法创建autospri..
分类:
其他好文 时间:
2015-08-28 02:28:40
阅读次数:
233
1. 首先,声明一个2个大小的sprite数组class GameScreen : public cocos2d::Layer{public: ... cocos2d::Sprite *backgroundSpriteArray[2];};2. 完成初始化,1张图片用于当前显示,另1张用...
分类:
其他好文 时间:
2015-08-27 18:07:10
阅读次数:
117
摘要:根据传入不同的参数,智能的显示蜂窝式布局,效果如下图:制作步骤:1、在库中建一个mc 绑定名称为“myMC” 2、建一个文档类,代码如下: 1 package 2 { 3 import flash.display.Sprite; 4 5 /** 6 * @auth...
分类:
其他好文 时间:
2015-08-27 10:44:28
阅读次数:
201
DescriptionThe Sky is Sprite.The Birds is Fly in the Sky.The Wind is Wonderful.Blew Throw the TreesTrees are Shaking, Leaves are Falling.Lovers Walk p...
分类:
其他好文 时间:
2015-08-21 23:03:26
阅读次数:
206
线性方程Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionThe Sky is Sprite.The Birds is Fly in the Sky.The Wind is Wonderful.B...
分类:
其他好文 时间:
2015-08-21 21:04:21
阅读次数:
173
1 package com.views 2 { 3 import flash.display.Sprite; 4 import flash.events.Event; 5 import flash.geom.Point; 6 7 /** 8 * ...
分类:
其他好文 时间:
2015-08-20 18:33:12
阅读次数:
145
注:顶点坐标可以点击 1 package 2 { 3 import flash.display.Shape; 4 import flash.display.Sprite; 5 import flash.events.MouseEvent; 6 import...
分类:
其他好文 时间:
2015-08-20 14:37:53
阅读次数:
193
DescriptionThe Sky is Sprite.The Birds is Fly in the Sky.The Wind is Wonderful.Blew Throw the TreesTrees are Shaking, Leaves are Falling.Lovers Walk p...
分类:
其他好文 时间:
2015-08-20 12:42:59
阅读次数:
188
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescriptionThe Sky is Sprite. The Birds is Fly in the Sky. The Wind is Wonderful. ...
分类:
其他好文 时间:
2015-08-20 12:10:37
阅读次数:
185