感谢点评与关注,欢迎转载与分享。
勤奋努力,持之以恒!
1、创建自定义类SongCpp.cpp
SongCpp.h
#ifndef __SongToLua__SongCpp__
#define __SongToLua__SongCpp__
#include <iostream>
#include "cocos2d.h"
using namespace cocos2d;
class SongCpp : public CCSprite {
public:
static SongCpp* createSongImage(const char* fileName);
CCLabelTTF* createSongName(const char* name,int fon