一、创建卡片类
首先想想卡片是一个精灵,那么我们就继承精灵类。然后还要有数字,背景颜色。基本就这些,那么看代码吧。
Card.h代码
#ifndef _CARD_H_
#define _CARD_H_
#include "cocos2d.h"
USING_NS_CC ;
class CardSprite : public Sprite
{
public :
...
分类:
其他好文 时间:
2014-05-10 09:25:46
阅读次数:
280
打算每天抽出一点时间学习音频方面的知识,在此做下汇总:1. 多媒体层预览
根据结构,明确学习内容。
分类:
移动开发 时间:
2014-05-08 21:30:44
阅读次数:
359
以下是一些ABC Radio
的pls链接:vlc打开网络串流,输入pls链接,确定即可。Direct LinksIf you are unable to use our default
players, you can use these links.Windows Audio StreamsAB...
分类:
其他好文 时间:
2014-05-08 21:01:30
阅读次数:
446
1、坐标系 >屏幕坐标系(UIKit):原点在左上角!
>OpenGl坐标系:原点在屏幕的左下角!2、游戏设计:Director——Scene——Layer——Sprite。
>CCDirector:导演类,相当于是游戏策划,负责整个游戏的布局和运行规则的制定。 >CCScene:场景类,每...
分类:
其他好文 时间:
2014-05-07 19:34:16
阅读次数:
378
这是一个关于使用cocostudio实现动画自由切换的小demo
auto sprite =Sprite::create("background.png");
sprite->setAnchorPoint(Point(0,0));
this->addChild(sprite);
ArmatureDataManager::getInstance()->addArmatureFi...
分类:
其他好文 时间:
2014-05-04 09:17:46
阅读次数:
344
Playback control of audio/video files and streams is managed as a state machine. The following diagram shows the life cycle and the states of a MediaPlayer object driven by the supported playback cont...
分类:
移动开发 时间:
2014-05-03 21:36:21
阅读次数:
568
虽然媒体元素可以实现音频和视频功能,但是并不是所有浏览器都支持video标签和audio标签的所有编解码器,这意味着开发人员必须提供很多歌媒体来源。在JavaScript API中能够检测浏览器是否支持某种格式和编解码器。这两个媒体元素都有一个canPlayType()方法,该方法接收一种格式/编解码器字符串,返回”probably”、”maybe”...
分类:
Web程序 时间:
2014-05-01 21:55:05
阅读次数:
408
通过程序获取android系统手机的铃声和音量。同样,设置铃声和音量的方法也很简单!AudioManager am = (AudioManager)
getSystemService(Context.AUDIO_SERVICE);//通话音量 int max = am.getStreamMaxVol...
分类:
移动开发 时间:
2014-04-30 02:26:46
阅读次数:
586
【获取iPod library中的媒体文件】 The Media Player
framework provides facilities for playing movie, music, audio podcast, and audio
book files. This framework a....
分类:
其他好文 时间:
2014-04-30 00:15:17
阅读次数:
591