├── .cocos-project.json ├── CMakeLists.txt ├── Classes ├── AboutScene.cpp ├── AboutScene.h ├── AppDelegate.cpp ├── AppDelegate.h ├── Article.cpp ├── Article.h ├── Aware.cpp ├── Aware.h ├── Bird.cpp ├── Bird.h ├── Brick.cpp ├── Brick.h ├── Cocos2dx │ ├── .DS_Store │ ├── Android │ │ ├── CCUMSocialController.cpp │ │ └── CCUMSocialController.h │ ├── Common │ │ ├── CCUMSocialSDK.cpp │ │ ├── CCUMSocialSDK.h │ │ └── ccumtypedef.h │ ├── ShareButton │ │ ├── UMShareButton.cpp │ │ └── UMShareButton.h │ └── iOS │ │ ├── UMSocialUIObject.h │ │ ├── UMSocialUIObject.mm │ │ ├── UmSocialControllerIOS.h │ │ └── UmSocialControllerIOS.mm ├── Coin.cpp ├── Coin.h ├── Config.h ├── ConfigData.cpp ├── ConfigData.h ├── DeadRoof.cpp ├── DeadRoof.h ├── Dog.cpp ├── Dog.h ├── Door.cpp ├── Door.h ├── DynamicData.cpp ├── DynamicData.h ├── FinishScene.cpp ├── FinishScene.h ├── FlyingSlime.cpp ├── FlyingSlime.h ├── Fragment.cpp ├── Fragment.h ├── GameManager.cpp ├── GameManager.h ├── GameObject.cpp ├── GameObject.h ├── GameScene.cpp ├── GameScene.h ├── Grenade.cpp ├── Grenade.h ├── HelloWorldScene.cpp ├── HelloWorldScene.h ├── Hero.cpp ├── Hero.h ├── HudLayer.cpp ├── HudLayer.h ├── JINTools.cpp ├── JINTools.h ├── JumpBoard.cpp ├── JumpBoard.h ├── LevelScene.cpp ├── LevelScene.h ├── LifeObject.cpp ├── LifeObject.h ├── MapAnalysis.cpp ├── MapAnalysis.h ├── Monster.cpp ├── Monster.h ├── MonsterEx.cpp ├── MonsterEx.h ├── PhysicsSprite.cpp ├── PhysicsSprite.h ├── Scoreboard.cpp ├── Scoreboard.h ├── Slime.cpp ├── Slime.h ├── Spikes.cpp ├── Spikes.h ├── StaticData.cpp ├── StaticData.h ├── StaticDataEx.cpp ├── StaticDataEx.h ├── TextData.cpp ├── TextData.h ├── Wall.cpp ├── Wall.h ├── Weapon.cpp ├── Weapon.h └── pxman.h ├── README.md ├── Resources ├── ArticleBomb.plist ├── ArticleBomb.png ├── Bird.plist ├── Bird.png ├── BirdFly.plist ├── BirdFly.png ├── BirdMap.png ├── CloseNormal.png ├── CloseSelected.png ├── Coin.plist ├── Coin.png ├── Enemies │ ├── fly01_dead.plist │ ├── fly01_dead.png │ ├── fly01_fly_left.plist │ ├── fly01_fly_left.png │ ├── fly01_fly_right.plist │ ├── fly01_fly_right.png │ ├── slime_dead.plist │ ├── slime_dead.png │ ├── slime_walk_left.plist │ ├── slime_walk_left.png │ ├── slime_walk_right.plist │ └── slime_walk_right.png ├── Five.png ├── FlyingSlime.plist ├── FlyingSlime.png ├── FlyingSlimeMap.png ├── Grenade.png ├── HUD │ ├── button_down_A.png │ ├── button_down_B.png │ ├── button_down_left.png │ ├── button_down_right.png │ ├── button_up_A.png │ ├── button_up_B.png │ ├── button_up_left.png │ ├── button_up_right.png │ ├── hud_coins.png │ ├── hud_heartEmpty.png │ ├── hud_heartFull.png │ └── hud_num.png ├── HelloWorld.png ├── Hero.plist ├── Hero.png ├── Hero │ ├── hero_dead.plist │ ├── hero_dead.png │ ├── hero_stop.plist │ ├── hero_stop.png │ ├── hero_walk_left.plist │ ├── hero_walk_left.png │ ├── hero_walk_right.plist │ └── hero_walk_right.png ├── HeroDie.plist ├── HeroDie.png ├── Items │ ├── bomb.png │ ├── bomb_dead.plist │ ├── bomb_dead.png │ ├── box.png │ ├── box_1.png │ ├── cloud1.png │ ├── cloud2.png │ ├── cloud3.png │ ├── coin.png │ ├── door.png │ ├── door_openMid.png │ ├── door_openTop.png │ ├── spikes.png │ ├── springboardDown.png │ ├── springboardDown_ok.png │ └── springboardUp.png ├── Missile.plist ├── Missile.png ├── Monster.plist ├── Monster.png ├── MonsterDie.plist ├── MonsterDie.png ├── MonsterMap.png ├── Tiles │ ├── boxAlt.png │ ├── grassCenter.png │ ├── grassHalf.png │ ├── grassHalfLeft.png │ ├── grassHalfMid.png │ ├── grassHalfRight.png │ ├── grassMid.png │ ├── some-a.png │ ├── some.png │ └── tiles_spritesheet.png ├── UI │ ├── ABOUT │ │ └── about.png │ ├── FINISH │ │ └── redBk.png │ ├── GAME │ │ ├── bk.png │ │ ├── down_back.png │ │ ├── down_break.png │ │ ├── down_home.png │ │ ├── next1.png │ │ ├── next2.png │ │ ├── pause.png │ │ ├── pause_button.png │ │ ├── up_back.png │ │ ├── up_break.png │ │ └── up_home.png │ ├── LEVEL │ │ ├── LEVEL_UI_DOWN_0000s_0000_BACK_BUTTON.png │ │ ├── LEVEL_UI_UP_0000s_0000_BACK_BUTTON.png │ │ ├── LEVEL_UI_UP_0000s_0001_LOGO.png │ │ ├── LEVEL_UI_UP_0000s_0002_BK.png │ │ ├── button_1_down.png │ │ ├── button_1_up.png │ │ ├── button_2_down.png │ │ ├── button_2_up.png │ │ ├── button_3_down.png │ │ ├── button_3_up.png │ │ ├── button_4_down.png │ │ ├── button_4_up.png │ │ ├── button_5_down.png │ │ ├── button_5_up.png │ │ ├── button_6_down.png │ │ ├── button_6_up.png │ │ ├── button_7_down.png │ │ ├── button_7_up.png │ │ ├── button_8_down.png │ │ ├── button_8_up.png │ │ └── button_not_level.png │ └── START │ │ ├── START_UI_DOWN_0000_setting.png │ │ ├── START_UI_DOWN_0002_...-.png │ │ ├── START_UI_DOWN_0002_....png │ │ ├── START_UI_DOWN_0003__.png │ │ ├── START_UI_DOWN_0004_LeftFoot.png │ │ ├── START_UI_DOWN_0005_BAD-GAME.png │ │ ├── START_UI_DOWN_0006_StartButton.png │ │ ├── START_UI_UP_0000_setting.png │ │ ├── START_UI_UP_0002_....png │ │ ├── START_UI_UP_0003__.png │ │ ├── START_UI_UP_0004_LeftFoot.png │ │ ├── START_UI_UP_0005_BAD-GAME.png │ │ ├── START_UI_UP_0006_StartButton.png │ │ ├── background.png │ │ ├── exit1.png │ │ ├── exit2.png │ │ ├── msg1.png │ │ ├── msg2.png │ │ └── share.png ├── bbb │ ├── level_1.tmx │ ├── level_2.tmx │ ├── level_3.tmx │ ├── level_4.tmx │ ├── level_5.tmx │ ├── level_6.tmx │ └── level_7.tmx ├── config.xml ├── fl.png ├── fonts │ ├── Marker Felt.ttf │ └── font.ttf ├── level_1.tmx ├── level_2.tmx ├── level_3.tmx ├── level_4.tmx ├── level_5.tmx ├── level_6.tmx ├── level_7.tmx ├── level_8.tmx ├── load.xml ├── miss.png ├── share.png ├── test.xml └── text.xml └── _image ├── 1.png ├── 2.png ├── 5.png └── 6.png /.cocos-project.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_type": "cpp" 3 | } -------------------------------------------------------------------------------- /Classes/AboutScene.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/AboutScene.cpp -------------------------------------------------------------------------------- /Classes/AboutScene.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABOUT_SCENE_H 2 | #define _ABOUT_SCENE_H 3 | 4 | #include "cocos2d.h" 5 | 6 | class AboutScene : cocos2d::LayerColor 7 | { 8 | public: 9 | static cocos2d::Scene* createScene(); 10 | 11 | virtual bool init(); 12 | 13 | CREATE_FUNC(AboutScene); 14 | }; 15 | 16 | #endif -------------------------------------------------------------------------------- /Classes/AppDelegate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/AppDelegate.cpp -------------------------------------------------------------------------------- /Classes/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #ifndef _APP_DELEGATE_H_ 2 | #define _APP_DELEGATE_H_ 3 | 4 | #include "cocos2d.h" 5 | 6 | /** 7 | @brief The cocos2d Application. 8 | 9 | The reason for implement as private inheritance is to hide some interface call by Director. 10 | */ 11 | class AppDelegate : private cocos2d::Application 12 | { 13 | public: 14 | AppDelegate(); 15 | virtual ~AppDelegate(); 16 | 17 | /** 18 | @brief Implement Director and Scene init code here. 19 | @return true Initialize success, app continue. 20 | @return false Initialize failed, app terminate. 21 | */ 22 | virtual bool applicationDidFinishLaunching(); 23 | 24 | /** 25 | @brief The function be called when the application enter background 26 | @param the pointer of the application 27 | */ 28 | virtual void applicationDidEnterBackground(); 29 | 30 | /** 31 | @brief The function be called when the application enter foreground 32 | @param the pointer of the application 33 | */ 34 | virtual void applicationWillEnterForeground(); 35 | }; 36 | 37 | #endif // _APP_DELEGATE_H_ 38 | 39 | -------------------------------------------------------------------------------- /Classes/Article.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Article.cpp -------------------------------------------------------------------------------- /Classes/Article.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Article.h -------------------------------------------------------------------------------- /Classes/Aware.cpp: -------------------------------------------------------------------------------- 1 | #include "Aware.h" 2 | 3 | USING_NS_CC; 4 | 5 | -------------------------------------------------------------------------------- /Classes/Aware.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Aware.h -------------------------------------------------------------------------------- /Classes/Bird.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Bird.cpp -------------------------------------------------------------------------------- /Classes/Bird.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Bird.h -------------------------------------------------------------------------------- /Classes/Brick.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Brick.cpp -------------------------------------------------------------------------------- /Classes/Brick.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Brick.h -------------------------------------------------------------------------------- /Classes/Cocos2dx/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Cocos2dx/.DS_Store -------------------------------------------------------------------------------- /Classes/Cocos2dx/Android/CCUMSocialController.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | #include "platform/android/jni/JniHelper.h" 4 | #include 5 | #include "cocos2d.h" 6 | #include "Cocos2dx/Common/CCUMTypeDef.h" 7 | #include 8 | #include 9 | #include 10 | 11 | /* Header for class com_umeng_social_CCUMSocialController */ 12 | USING_NS_CC; 13 | using namespace std; 14 | USING_NS_UM_SOCIAL; 15 | 16 | #ifndef _Included_com_umeng_social_CCUMSocialController 17 | #define _Included_com_umeng_social_CCUMSocialController 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | /* 22 | * Class: com_umeng_social_CCUMSocialController 23 | * Method: OnAuthorizeStart 24 | * Function : 授权开始的回调函数, jint参数为要授权的平台 25 | * Signature: (I)V 26 | */ 27 | JNIEXPORT void JNICALL Java_com_umeng_social_CCUMSocialController_OnAuthorizeStart 28 | (JNIEnv *, jclass, jint); 29 | 30 | 31 | /* 32 | * Class: com_umeng_social_CCUMSocialController 33 | * Method: OnAuthorizeComplete 34 | * Function : 授权结束的回调函数, 参数二的jint为要授权的平台, 参数三的jint为返回码,其中200为授权成功, 35 | jobjectArray为授权成功时返回的数据,长度为2, 第一个数据为token, 第二个数据为过期时间。 36 | 如果授权失败则返回的长度为1,包含了错误信息. 37 | * Signature: ([Ljava/lang/String;I)V 38 | */ 39 | JNIEXPORT void JNICALL Java_com_umeng_social_CCUMSocialController_OnAuthorizeComplete 40 | (JNIEnv *, jclass, jint, jint, jobjectArray); 41 | 42 | /* 43 | * Class: com_umeng_social_CCUMSocialController 44 | * Method: OnShareStart 45 | * Function : 开始分享的回调函数 46 | * Signature: ()V 47 | */ 48 | JNIEXPORT void JNICALL Java_com_umeng_social_CCUMSocialController_OnShareStart 49 | (JNIEnv *, jclass); 50 | 51 | /* 52 | * Class: com_umeng_social_CCUMSocialController 53 | * Method: OnShareComplete 54 | * Function : 分享结束的回调函数, 参数2为分享的平台; 参数3为返回码, 200为分享成功. 55 | * Signature: (IILjava/lang/String;)V 56 | */ 57 | JNIEXPORT void JNICALL Java_com_umeng_social_CCUMSocialController_OnShareComplete 58 | (JNIEnv *, jclass, jint, jint, jstring); 59 | 60 | 61 | /* 62 | * 获取某个方法的对象 63 | * @param mi 方法对象, 传递的是引用 64 | * @param methodName 方法名 65 | * @param sig 方法签名 66 | */ 67 | bool getMethod(JniMethodInfo &mi, const char *methodName, const char *sig); 68 | 69 | /* 70 | * 释放方法对象 71 | * @param mi 要释放的方法对象 72 | */ 73 | void releaseMethod(JniMethodInfo &mi); 74 | 75 | /* 76 | * 设置友盟app key 77 | * @param appKey 友盟app key 78 | */ 79 | void setUmengAppkey(const char* appkey); 80 | 81 | /* 82 | * 对某平台进行授权 83 | * @param platfrom 要授权的平台, 参考CCUMTypeDef.h中的Platform枚举定义 84 | * @param callback 授权回调, 具体参考CCUMTypeDef.h中的定义 85 | */ 86 | void doAuthorize(int platform, AuthEventHandler callback); 87 | /* 88 | * 删除某平台的授权信息 89 | * @param callback 删除授权的回调, 具体参考CCUMTypeDef.h中的定义 90 | */ 91 | void deletePlatformAuthorization(int platform, AuthEventHandler callback); 92 | 93 | /* 94 | * 判断某平台是否已经授权 95 | * @param platform 要判定的平台, 参考CCUMTypeDef.h中的Platform枚举定义 96 | */ 97 | bool isPlatformAuthorized(int platform); 98 | 99 | /* 100 | * 打开分享面板 101 | * @param callback 分享回调,具体参考CCUMTypeDef.h中的定义 102 | */ 103 | void doOpenShare(ShareEventHandler callback); 104 | 105 | /* 106 | * 直接分享到某个平台,不打开分享面板和内容编辑页面 107 | * @param platform 要分享到的目标平台, 参考CCUMTypeDef.h中的Platform枚举定义 108 | * @param callback 分享回调,具体参考CCUMTypeDef.h中的定义 109 | */ 110 | void doDirectShare(int platform, ShareEventHandler callback); 111 | 112 | 113 | /* 114 | * 设置要分享的文字内容 115 | * @param text 要分享的文字内容 116 | */ 117 | void setShareTextContent(const char* text); 118 | 119 | /* 120 | * 设置要分享的图片的本地路径或者url 121 | * @param pathOrUrl 图片的本地路径或者url, 如果是url必须则必须以http://或者https://开头 122 | */ 123 | void setShareImageName(const char* pathOrUrl); 124 | 125 | /* 126 | * 设置SDK支持的平台 127 | * @param platforms SDK支持的平台, 参考CCUMTypeDef.h中的Platform枚举定义 128 | */ 129 | void setSocialPlatforms(vector* platforms); 130 | 131 | 132 | /** 133 | * 初始化Cocos2dx SDK 134 | * 135 | * @param type 类型 136 | @param version 版本号 137 | */ 138 | void initCocos2dxSDKFromJni(const char* type, const char* version) ; 139 | 140 | 141 | /** 142 | * 设置QQ互联平台的的app id,包括QQ和QQ空间 143 | * 144 | * @param appid 145 | */ 146 | void setQQAndQzoneAppIdWithAppKey(const char* appid, const char* appKey) ; 147 | 148 | /** 149 | * 设置微信和微信朋友圈的app id 150 | * 151 | * @param appid 152 | */ 153 | void setWeiXinPlatformAppId(const char* appid) ; 154 | 155 | /** 156 | * 设置易信和易信朋友圈的app id 157 | * 158 | * @param appid 159 | */ 160 | void setYiXinPlatformAppKey(const char* appid) ; 161 | 162 | /** 163 | * 设置来往和来往动态的app id 164 | * 165 | * @param appid 166 | */ 167 | void setLaiwangPlatformAppId(const char* appid); 168 | 169 | /** 170 | * 设置来往和来往动态的app key 171 | * 172 | * @param appid 173 | */ 174 | void setLaiwangPlatformAppKey(const char* appkey) ; 175 | 176 | /** 177 | * 设置来往和来往动态的app key 178 | * 179 | * @param appid 180 | */ 181 | void setLaiwangPlatformAppName(const char* appName) ; 182 | 183 | /** 184 | * 设置facebook app id 185 | * 186 | * @param appid 187 | */ 188 | void setFacebookPlatformAppId(const char* appId); 189 | 190 | 191 | /* 192 | * 设置SDK的target url, 即用户点击某条分享时跳转到的目标页面 193 | * @param url 用户点击某条分享时跳转到的目标页面通常为app的主页或者下载链接等 194 | */ 195 | void setShareTargetUrl(const char* url) ; 196 | 197 | /** 198 | * 是否开启log 199 | * @param flag 如果为true则开启log, 否则关闭. 200 | */ 201 | void setAndroidLogEnable(bool flag); 202 | 203 | // /** 204 | // * 添加平台支持 205 | // * @param platform 要添加的目标平台 206 | // */ 207 | // void supportPlatform(int platform) ; 208 | 209 | 210 | void getData(JNIEnv *env, jobjectArray data, map& outputMap) ; 211 | 212 | 213 | #ifdef __cplusplus 214 | } 215 | #endif 216 | #endif 217 | -------------------------------------------------------------------------------- /Classes/Cocos2dx/Common/CCUMSocialSDK.h: -------------------------------------------------------------------------------- 1 | /* 2 | * FileName : CCUMScoialSDK.h 3 | * Author : hehonghui 4 | * Company : umeng.com 5 | * 6 | */ 7 | 8 | #ifndef __CCUMSOCIALSDK__ 9 | #define __CCUMSOCIALSDK__ 10 | 11 | #include "cocos2d.h" 12 | #include "CCUMTypeDef.h" 13 | #include 14 | 15 | USING_NS_CC; 16 | using namespace std; 17 | 18 | namespace umeng { 19 | /** 20 | * Umeng Social命名空间, 使用该SDK必须加上USING_NS_UM_SOCIAL 21 | */ 22 | namespace social { 23 | /** 24 | * 该类为友盟社会化组件的Cocos2d-x版本,在友盟社会化组件Android、iOS原生SDK上进行适配,支持打开分享面板分享、直接分享、授权某平台、删除某平台授权、判断某平台是否授权这几个核心功能, 25 | * 如果有进一步的需求请参考本SDK进行实现。 26 | * 27 | * Android 平台实现的代码参考UmengSocial/Android目录下的实现, IOS平台的参考UmengSocial/IOS目录下的实现。 28 | * 29 | */ 30 | class CCUMSocialSDK { 31 | private: 32 | CCUMSocialSDK(const char* umAppKey); 33 | void initSDK(); 34 | public: 35 | 36 | /** 37 | * 构建CCUMSocialSDK对象 38 | * @param appKey 友盟app key 39 | */ 40 | static CCUMSocialSDK* create(const char* appKey); 41 | 42 | /* 43 | * 设置友盟app key 44 | * @param appKey 友盟app key 45 | */ 46 | void setAppKey(const char* appkey); 47 | 48 | /** 49 | * 对某平台进行授权 50 | * @param platfrom 要授权的平台, 参考CCUMTypeDef.h中的Platform枚举定义 51 | * @param callback 授权回调, 具体参考CCUMTypeDef.h中的定义 52 | */ 53 | void authorize(int platform, AuthEventHandler callback); 54 | 55 | /** 56 | * 删除某平台的授权信息 57 | * @param platform 要删除授权的平台 58 | * @param callback 删除授权的回调, 具体参考CCUMTypeDef.h中的定义 59 | */ 60 | void deleteAuthorization(int platform, AuthEventHandler callback); 61 | 62 | /** 63 | * 判断某平台是否已经授权 64 | *@param platform 判断某平台是否已经授权 65 | */ 66 | bool isAuthorized(int platform); 67 | 68 | /** 69 | * 设置SDK中的所有平台 70 | *@param platforms SDK中包含的所有平台 71 | */ 72 | void setPlatforms(vector* platforms); 73 | 74 | /** 75 | * 返回SDK中设置的所有平台 76 | * @return SDK中设置的所有平台 77 | */ 78 | vector* getPlatforms(); 79 | 80 | /** 81 | * 打开友盟分享面板, 在调用该方法前请先调用setPlatforms函数来设置分享SDK支持的所有平台. 82 | * @param text 要分享的文字内容 83 | * @param imgName 要分享的图片的本地路径或者url, 如果是url必须则必须以http://或者https://开头 84 | * @param callback 分享回调,具体参考CCUMTypeDef.h中的定义 85 | */ 86 | void openShare(const char* text, 87 | const char* imgName, ShareEventHandler callback); 88 | 89 | /** 90 | * 直接分享到某个平台,不打开分享面板和内容编辑页面 91 | * @param platform 要分享到的目标平台,参考CCUMTypeDef.h中的Platform枚举定义 92 | * @param text 要分享的文字内容 93 | * @param imgName 要分享的图片的本地路径或者url, 如果是url必须则必须以http://开头 94 | * @param callback 分享回调,具体参考CCUMTypeDef.h中的定义 95 | */ 96 | void directShare(int platform, const char* text, const char* imgName, 97 | ShareEventHandler callback); 98 | 99 | /** 100 | * 设置SDK的target url, 即用户点击某条分享时跳转到的目标页面 101 | * @param url 用户点击某条分享时跳转到的目标页面通常为app的主页或者下载链接等 102 | */ 103 | void setTargetUrl(const char* targetUrl); 104 | 105 | /** 106 | * 设置QQ和QQ空间的app id, 两个平台共用套app id, appKey 107 | * 108 | * @param appid QQ空间或者QQ的app id 109 | * @param appKey QQ空间或者QQ的app key 110 | */ 111 | void setQQAppIdAndAppKey(const char* appid, const char* appkey); 112 | 113 | /** 114 | * 设置微信和微信朋友圈的app id 115 | * 116 | * @param appid 微信或者微信朋友圈的appid 117 | */ 118 | void setWeiXinAppId(const char* appid); 119 | 120 | /** 121 | * 设置易信和易信朋友圈的app id 122 | * 123 | * @param appid 易信或者易信朋友圈的app id 124 | */ 125 | void setYiXinAppKey(const char* appid); 126 | 127 | /** 128 | * 设置来往和来往动态的app id 129 | * 130 | * @param appid 来往的app id 131 | * @param appKey 来往的app key 132 | * @param appid 应用名, 一般为你的应用名 133 | */ 134 | void setLaiwangAppInfo(const char* appid, const char* appkey, 135 | const char* appName); 136 | 137 | /** 138 | * 设置Facebook的appid 139 | * 140 | * @param appid Facebook应用的app id 141 | */ 142 | void setFacebookAppId(const char *appid); 143 | 144 | /** 145 | * 打开Twitter开关,只对iOS平台生效 146 | * 147 | */ 148 | void openTwitterForiOS(); 149 | 150 | /** 151 | * 打开Instagram开关,只对iOS平台生效 152 | * 153 | */ 154 | void openInstagramForiOS(); 155 | 156 | /** 157 | * 是否开启log 158 | * @param flag 如果为true则开启log, 否则关闭. 159 | */ 160 | void setLogEnable(bool flag); 161 | 162 | private: 163 | static CCUMSocialSDK *_instance; 164 | vector* mPlatforms; 165 | char* _wrapperType; 166 | char* _wrapperVersion; 167 | 168 | }; 169 | } 170 | } 171 | 172 | #endif 173 | -------------------------------------------------------------------------------- /Classes/Cocos2dx/Common/ccumtypedef.h: -------------------------------------------------------------------------------- 1 | /** 2 | * CCUMTypeDef.h 3 | * 类型定义文件, 定义了平台枚举,分享回调、授权回调等类型. 4 | * 5 | */ 6 | #include 7 | #include 8 | using namespace std; 9 | 10 | #ifndef _CCUMTypeDef_h 11 | #define _CCUMTypeDef_h 12 | 13 | /// 简化引入社会化组件SDK命名空间的宏 14 | #ifdef __cplusplus 15 | 16 | #define USING_NS_UM_SOCIAL using namespace umeng::social 17 | #else 18 | #define USING_NS_SOCIAL 19 | #endif 20 | 21 | namespace umeng { 22 | //////////////////////////////////////////////////////////////////////////////////// 23 | /// @namespace social 24 | /// @brief 友盟社会化组件Cocos2d-x SDK命名空间 25 | 26 | namespace social { 27 | 28 | /// 各个分享平台的枚举 29 | // enum Platform { 30 | // SINA = 0, 31 | // WEIXIN = 1, 32 | // WEIXIN_CIRCLE = 2, 33 | // QQ = 3, 34 | // QZONE = 4, 35 | // RENREN = 5, 36 | // DOUBAN = 6, 37 | // LAIWANG = 7, 38 | // LAIWANG_CIRCLE = 8, 39 | // YIXIN = 9, 40 | // YIXIN_CIRCLE = 10, 41 | // FACEBOOK = 11, 42 | // TWITTER = 12, 43 | // INSTAGRAM = 13, 44 | // SMS = 14, 45 | // EMAIL = 15, 46 | // TENCENT_WEIBO = 16 47 | // }; 48 | enum Platform 49 | { 50 | SINA = 0, 51 | WEIXIN = 1, 52 | WEIXIN_CIRCLE = 2, 53 | QQ = 3, 54 | QZONE = 4, 55 | RENREN = 5, 56 | DOUBAN = 6, 57 | LAIWANG = 7, 58 | LAIWANG_CIRCLE = 8, 59 | YIXIN = 9, 60 | YIXIN_CIRCLE = 10, 61 | FACEBOOK = 11, 62 | TWITTER = 12, 63 | INSTAGRAM = 13, 64 | SMS = 14, 65 | EMAIL = 15, 66 | TENCENT_WEIBO = 16 67 | }; 68 | /** 69 | * 授权回调函数指针类型 70 | * @param platform 平台 71 | * @param stCode 状态码, 200代表授权成功, 100代表开始授权, 0代表授权出错, -1代表取消授权 72 | * @param data 授权数据 73 | */ 74 | typedef void (*AuthEventHandler)(int platform, int stCode, 75 | const map& data); 76 | /** 77 | * 分享回调函数指针类型 78 | * @param platform 平台 79 | * @param stCode 状态码, 200代表分享成功, 100代表开始分享 80 | * @param errorMsg 错误信息, Android平台中没有错误信息返回 81 | */ 82 | typedef void (*ShareEventHandler)(int platform, int stCode, 83 | const string& errorMsg); 84 | 85 | /// 授权回调selector 86 | #define auth_selector(_SELECTOR) (AuthEventHandler)(&_SELECTOR) 87 | 88 | /// 分享回调selector 89 | 90 | #define share_selector(_SELECTOR) (ShareEventHandler)(&_SELECTOR) 91 | 92 | } 93 | } 94 | 95 | #endif 96 | -------------------------------------------------------------------------------- /Classes/Cocos2dx/ShareButton/UMShareButton.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // UMShareButton.cpp 3 | // Umeng Social SDK ShareButton 4 | // 5 | // Created by mrsimple on 3/18/14. 6 | // 7 | // 8 | 9 | #include "UMShareButton.h" 10 | #include "cocos2d.h" 11 | #include 12 | 13 | USING_NS_CC; 14 | using namespace std; 15 | // 使用友盟命令空间 16 | USING_NS_UM_SOCIAL; 17 | 18 | /* 19 | * 构造函数 20 | */ 21 | UMShareButton::UMShareButton() { 22 | new (this) UMShareButton("", "", ""); 23 | } 24 | 25 | /* 26 | * 构造函数, 没有使用cocos2d-x的内存管理, 需要开发者自行管理内存 27 | * @param normalImage 按钮正常情况下显示的图片 28 | * @param selectedImage 按钮选中情况下显示的图片 29 | * @param umAppKey 友盟AppKey 30 | */ 31 | UMShareButton::UMShareButton(const char *normalImage, const char *selectedImage, 32 | const char* umAppKey) : 33 | mShareText(""), mImageName(""), mSocialSDK(NULL), mCallback( 34 | NULL) { 35 | CCLog("UMShareButton图片: normalImage = %s, selectedImage = %s.", normalImage, 36 | selectedImage); 37 | #ifdef CC_CALLBACK_1 38 | // 初始化图片按钮 39 | initWithNormalImage(normalImage, selectedImage, "", CC_CALLBACK_1(UMShareButton::shareCallback, this)) ; 40 | // initWithNormalImage(normalImage, selectedImage, "", [&](Ref* pSender) -> 41 | // { 42 | // CCLog("Cocos2d-x V3.X ShareButton. in lambda."); 43 | // this->openShareBoard(); 44 | // }, this)); 45 | #else 46 | // 初始化图片按钮 47 | initWithNormalImage(normalImage, selectedImage, "", this, 48 | menu_selector(UMShareButton::shareCallback)); 49 | #endif 50 | // 构造CCUMSocialSDK对象 51 | mSocialSDK = CCUMSocialSDK::create(umAppKey); 52 | } 53 | 54 | /* 55 | * 创建一个UMShareButton对象 56 | * @param normalImage 按钮正常情况下显示的图片 57 | * @param selectedImage 按钮选中情况下显示的图片 58 | * @param umAppKey 友盟AppKey 59 | * @param callback 分享回调函数 60 | */ 61 | UMShareButton* UMShareButton::create(const char *normalImage, 62 | const char *selectedImage, const char* umAppKey, 63 | ShareEventHandler callback) { 64 | 65 | UMShareButton* shareButton = new UMShareButton(normalImage, selectedImage, 66 | umAppKey); 67 | shareButton->setShareCallback(callback); 68 | return shareButton; 69 | } 70 | 71 | /* 72 | * 析构函数,释放内存 73 | */ 74 | UMShareButton::~UMShareButton() { 75 | delete mSocialSDK; 76 | } 77 | 78 | /* 79 | * 获取CCUMSocialSDK对象 80 | */ 81 | CCUMSocialSDK* UMShareButton::getSocialSDK() { 82 | return mSocialSDK; 83 | } 84 | 85 | /* 86 | * 设置文本内容 87 | * @param text 88 | */ 89 | void UMShareButton::setShareContent(const char* text) { 90 | if (text != NULL) { 91 | this->mShareText = text; 92 | } 93 | 94 | } 95 | 96 | /* 97 | * 设置本地图片和url图片, url图片必须以http://或者https://开头 98 | * @param imgName 图片的本地路径或者url地址. 99 | */ 100 | void UMShareButton::setShareImage(const char* imgName) { 101 | if (imgName != NULL) { 102 | this->mImageName = imgName; 103 | } 104 | } 105 | 106 | /* 107 | * 设置分享回调回调 108 | * @param callback 分享回调 109 | */ 110 | void UMShareButton::setShareCallback(ShareEventHandler callback) { 111 | mCallback = callback; 112 | } 113 | 114 | /* 115 | * 设置友盟SDK支持的平台, 平台的申明参考CCUMTypeDef.h中的Platform枚举 116 | * @param platforms 友盟SDK支持的平台 117 | */ 118 | void UMShareButton::setPlatforms(vector* platforms) { 119 | if (mSocialSDK != NULL) { 120 | mSocialSDK->setPlatforms(platforms); 121 | } 122 | } 123 | 124 | /* 125 | * 打开分享面板 126 | */ 127 | void UMShareButton::openShareBoard() { 128 | if (mSocialSDK != NULL) { 129 | mSocialSDK->openShare(mShareText.c_str(), mImageName.c_str(), 130 | mCallback); 131 | } 132 | } 133 | 134 | #ifdef CC_CALLBACK_1 135 | /* 136 | * 点击该按钮时的回调, 这里实现为调用打开分享面板 137 | * @param pSender 138 | */ 139 | void UMShareButton::shareCallback(Ref* pSender) 140 | { 141 | CCLog("Cocos2d-x V3.X ShareButton."); 142 | this->openShareBoard(); 143 | } 144 | #else 145 | /* 146 | * 点击该按钮时的回调, 这里实现为调用打开分享面板 147 | * @param pSender 148 | */ 149 | void UMShareButton::shareCallback(CCNode* pSender) { 150 | CCLog("Cocos2d-x V2.X ShareButton."); 151 | this->openShareBoard(); 152 | } 153 | #endif 154 | -------------------------------------------------------------------------------- /Classes/Cocos2dx/ShareButton/UMShareButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // UMShareButton.h 3 | // UMShareButton, 封装了CCUMSocialSDK的分享功能 ( 通过分享面板分享 ). 没有使用Cocos2d-x的内存管理策略,开发者自行管理该Button的内存释放. 4 | // 5 | // Created by mrsimple on 3/18/14. 6 | // 7 | // 8 | 9 | #ifndef __crossdemo__UMShareButton__ 10 | #define __crossdemo__UMShareButton__ 11 | 12 | #include 13 | #include "cocos2d.h" 14 | #include "Cocos2dx/Common/CCUMSocialSDK.h" 15 | #include 16 | 17 | USING_NS_CC; 18 | using namespace std; 19 | 20 | namespace umeng { 21 | namespace social { 22 | 23 | /** 24 | * 该类集成自Cocos2d-x的图片按钮类,但是没有使用Cocos2d-x的内存管理,开发者许自行进行内存释放。该类封装了CCUMSocialSDK的openShare功能, 25 | * 当用户点击按钮时打开友盟分享面板, 具体实现请参考源码。 26 | * 27 | */ 28 | #ifdef CC_CALLBACK_1 29 | class UMShareButton : public cocos2d::MenuItemImage 30 | { 31 | #else 32 | class UMShareButton : public cocos2d::CCMenuItemImage { 33 | #endif 34 | public: 35 | /** 36 | * 析构函数,释放内存 37 | */ 38 | virtual ~UMShareButton(); 39 | /** 40 | * 创建一个UMShareButton对象 41 | * @param normalImage 按钮正常情况下显示的图片 42 | * @param selectedImage 按钮选中情况下显示的图片 43 | * @param umAppKey 友盟AppKey 44 | * @param callback 分享回调函数 45 | */ 46 | static UMShareButton* create(const char* normalImage, const char *selectedImage, const char* umAppKey, ShareEventHandler callback); 47 | 48 | /** 49 | * 设置要分享的文本内容 50 | * @param text 要分享的文本内容 51 | */ 52 | void setShareContent(const char* text); 53 | /** 54 | * 设置要分享的图片路径或者url 55 | * @param imgName 本地图片和url图片, url图片则必须以http://或者https://开头 56 | */ 57 | void setShareImage(const char* imgName); 58 | /** 59 | * 设置分享回调回调 60 | * @param callback 分享回调 61 | */ 62 | void setShareCallback(ShareEventHandler callback); 63 | /** 64 | * 设置友盟SDK支持的平台,分享面板上也会显示这些平板,如果这些平台没有添加相应的依赖则不会显示。平台的申明参考CCUMTypeDef.h中的Platform枚举 65 | * @param platforms 友盟SDK支持的平台 66 | */ 67 | void setPlatforms(vector* platforms); 68 | /** 69 | * 获取CCUMSocialSDK对象 70 | * @return 返回CCUMSocialSDK单例对象 71 | */ 72 | CCUMSocialSDK* getSocialSDK(); 73 | private: 74 | UMShareButton(); 75 | // 构造函数 76 | UMShareButton(const char *normalImage, const char *selectedImage, 77 | const char* umAppKey); 78 | // 打开分享面板 79 | void openShareBoard(); 80 | #ifdef CC_CALLBACK_1 81 | // 分享按钮回调, 打开友盟分享面板 82 | void shareCallback(cocos2d::Ref* pSender); 83 | #else 84 | // 分享按钮回调, 打开友盟分享面板 85 | void shareCallback(CCNode* pSender); 86 | #endif 87 | 88 | private: 89 | // 友盟分享组件SDK 90 | CCUMSocialSDK* mSocialSDK; 91 | // 要添加支持的平台 92 | // vector* mPlatforms; 93 | // 要分享的文本内容 94 | string mShareText; 95 | // 要分享的图片本地路径或者url 96 | string mImageName; 97 | // 分享回调 98 | ShareEventHandler mCallback; 99 | }; 100 | } 101 | } 102 | 103 | #endif /* defined(__crossdemo__UMShareButton__) */ 104 | -------------------------------------------------------------------------------- /Classes/Cocos2dx/iOS/UMSocialUIObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // UMSocialUIObject.h 3 | // UmengGame 4 | // 5 | // Created by yeahugo on 14-3-28. 6 | // 7 | // 8 | 9 | #import 10 | #import "UMSocial.h" 11 | #include "CCUMTypeDef.h" 12 | 13 | using namespace umeng::social; 14 | 15 | @interface UMSocialUIObject : NSObject 16 | { 17 | ShareEventHandler handler; 18 | } 19 | 20 | -(id)initWithCallback:(ShareEventHandler)callBack; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Classes/Cocos2dx/iOS/UMSocialUIObject.mm: -------------------------------------------------------------------------------- 1 | // 2 | // UMSocialUIObject.m 3 | // UmengGame 4 | // 5 | // Created by yeahugo on 14-3-28. 6 | // 7 | // 8 | 9 | #import "UMSocialUIObject.h" 10 | #include "cocos2d.h" 11 | using namespace cocos2d; 12 | 13 | @implementation UMSocialUIObject 14 | 15 | -(id)initWithCallback:(ShareEventHandler)callBack 16 | { 17 | self = [super init]; 18 | if (self) { 19 | handler = callBack; 20 | } 21 | return self; 22 | } 23 | 24 | -(void)didFinishGetUMSocialDataInViewController:(UMSocialResponseEntity *)response 25 | { 26 | int stCode = response.responseCode; 27 | int platform = -1; 28 | if ([response.data allKeys].count > 0) { 29 | NSString *platformName = [[response.data allKeys] objectAtIndex:0]; 30 | if ([platformName isEqualToString:UMShareToSina]) { 31 | platform = SINA; 32 | } else if ([platformName isEqualToString:UMShareToTencent]) { 33 | platform = TENCENT_WEIBO; 34 | } else if ([platformName isEqualToString:UMShareToQzone]){ 35 | platform = QZONE; 36 | } else if ([platformName isEqualToString:UMShareToQQ]){ 37 | platform = QQ; 38 | } else if ([platformName isEqualToString:UMShareToRenren]){ 39 | platform = RENREN; 40 | } else if ([platformName isEqualToString:UMShareToDouban]){ 41 | platform = DOUBAN; 42 | } else if ([platformName isEqualToString:UMShareToWechatSession]){ 43 | platform = WEIXIN; 44 | } else if ([platformName isEqualToString:UMShareToWechatTimeline]){ 45 | platform = WEIXIN_CIRCLE; 46 | } else if ([platformName isEqualToString:UMShareToLWSession]){ 47 | platform = LAIWANG; 48 | } else if ([platformName isEqualToString:UMShareToLWTimeline]){ 49 | platform = LAIWANG_CIRCLE; 50 | } else if ([platformName isEqualToString:UMShareToYXSession]){ 51 | platform = YIXIN; 52 | } else if ([platformName isEqualToString:UMShareToYXTimeline]){ 53 | platform = YIXIN_CIRCLE; 54 | } else if ([platformName isEqualToString:UMShareToSms]){ 55 | platform = SMS; 56 | } else if ([platformName isEqualToString:UMShareToEmail]){ 57 | platform = EMAIL; 58 | } else if ([platformName isEqualToString:UMShareToFacebook]){ 59 | platform = FACEBOOK; 60 | } else if ([platformName isEqualToString:UMShareToTwitter]){ 61 | platform = TWITTER; 62 | } 63 | } 64 | if (handler) { 65 | string message = string(); 66 | if (response.message) { 67 | message = string([response.message UTF8String]); 68 | } 69 | handler(platform,stCode,message); 70 | } 71 | } 72 | 73 | @end 74 | -------------------------------------------------------------------------------- /Classes/Cocos2dx/iOS/UmSocialControllerIOS.h: -------------------------------------------------------------------------------- 1 | // 2 | // UmSocialControllerIOS.h 3 | // UmengGame 4 | // 5 | // Created by 张梓琦 on 14-3-16. 6 | // 7 | // 8 | 9 | #ifndef __UmengGame__UmSocialControllerIOS__ 10 | #define __UmengGame__UmSocialControllerIOS__ 11 | 12 | #include "CCUMTypeDef.h" 13 | #include 14 | #include 15 | 16 | #define CC_ShareToWechat 1 17 | #define CC_ShareToQQOrQzone 1 18 | #define CC_ShareToLaiWang 1 19 | #define CC_ShareToYiXin 1 20 | #define CC_ShareToFacebook 1 21 | #define CC_ShareToTwitter 1 22 | #define CC_ShareToInstagram 1 23 | 24 | using namespace std; 25 | using namespace umeng::social; 26 | 27 | class UmSocialControllerIOS { 28 | public: 29 | 30 | //设置SDK的appkey 31 | static void setAppKey(const char* appKey); 32 | 33 | //初始化sdk 34 | static void initCocos2dxSDK(const char *sdkType, const char *version); 35 | 36 | //设置分享的url 37 | static void setTargetUrl(const char * targetUrl); 38 | 39 | //授权某社交平台 40 | static void authorize(int platform, AuthEventHandler callback); 41 | 42 | //解除某平台授权 43 | static void deleteAuthorization(int platform,AuthEventHandler callback); 44 | 45 | //是否已经授权某平台 46 | static bool isAuthorized(int platform); 47 | 48 | //打开分享面板 49 | static void openShareWithImagePath(vector* platform, const char* text, const char* imagePath,ShareEventHandler callback); 50 | 51 | // //设置分享的平台 52 | // static void setSharePlatforms(vector* platform); 53 | 54 | //直接分享到各个社交平台 55 | static void directShare(const char* text, const char* imagePath, int platform, ShareEventHandler callback); 56 | 57 | //打开SDK的log输出 58 | static void openLog(bool flag); 59 | 60 | //设置QQ互联appid,appkey 61 | static void setQQAppIdAndAppKey(const char *appId,const char *appKey); 62 | 63 | //设置微信appid 64 | static void setWechatAppId(const char *appId); 65 | 66 | //设置来往appid,appkey 67 | static void setLaiwangAppInfo(const char *appId, const char *appKey, const char * appName); 68 | 69 | //设置易信appid 70 | static void setYiXinAppKey(const char *appKey); 71 | 72 | //设置Facebook的appid 73 | static void setFacebookAppId(const char *appId); 74 | 75 | //打开Twitter的开关 76 | static void openTwitter(); 77 | 78 | //打开Instagram的开关 79 | static void openInstagram(); 80 | 81 | private: 82 | static string m_appKey; 83 | }; 84 | 85 | #endif /* defined(__UmengGame__UmSocialControllerIOS__) */ 86 | -------------------------------------------------------------------------------- /Classes/Coin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Coin.cpp -------------------------------------------------------------------------------- /Classes/Coin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Coin.h -------------------------------------------------------------------------------- /Classes/Config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Config.h -------------------------------------------------------------------------------- /Classes/ConfigData.cpp: -------------------------------------------------------------------------------- 1 | #include "ConfigData.h" 2 | 3 | USING_NS_CC; 4 | 5 | ConfigData* ConfigData::staticData = nullptr; 6 | 7 | ConfigData* ConfigData::getInstance() 8 | { 9 | if (staticData == nullptr) 10 | { 11 | staticData = new ConfigData(); 12 | staticData->init(); 13 | } 14 | return staticData; 15 | } 16 | 17 | void ConfigData::init() 18 | { 19 | std::string path = FileUtils::getInstance()->fullPathForFilename(STATIC_DATA_PATH); 20 | vm = FileUtils::getInstance()->getValueMapFromFile(path); 21 | } 22 | 23 | ConfigData::ConfigData() 24 | { 25 | } 26 | 27 | ConfigData::~ConfigData() 28 | { 29 | } 30 | 31 | void ConfigData::purge() 32 | { 33 | } 34 | ////////////////////////////////////////////////////// 35 | const std::string ConfigData::stringFromKey(std::string key) 36 | { 37 | return vm.at(key).asString(); 38 | } 39 | 40 | int ConfigData::intFromKey(std::string key) 41 | { 42 | return vm.at(key).asInt(); 43 | } 44 | 45 | float ConfigData::floatFromKey(std::string key) 46 | { 47 | return vm.at(key).asFloat(); 48 | } 49 | 50 | bool ConfigData::booleanFromKey(std::string key) 51 | { 52 | return vm.at(key).asBool(); 53 | } 54 | 55 | cocos2d::Vec2 ConfigData::vec2FromKey(std::string key) 56 | { 57 | return PointFromString(vm.at(key).asString().c_str()); 58 | } 59 | 60 | cocos2d::Rect ConfigData::rectFromKey(std::string key) 61 | { 62 | return RectFromString(vm.at(key).asString().c_str()); 63 | } 64 | 65 | cocos2d::Size ConfigData::sizeFromKey(std::string key) 66 | { 67 | return SizeFromString(vm.at(key).asString().c_str()); 68 | } -------------------------------------------------------------------------------- /Classes/ConfigData.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/ConfigData.h -------------------------------------------------------------------------------- /Classes/DeadRoof.cpp: -------------------------------------------------------------------------------- 1 | #include "DeadRoof.h" 2 | #include "Hero.h" 3 | 4 | USING_NS_CC; 5 | 6 | bool DeadRoof::init(float x, float y, float width, float height) 7 | { 8 | if (!GameObject::init(x, y, width, height)) 9 | { 10 | return false; 11 | } 12 | 13 | this->getBody()->SetType(b2_staticBody); 14 | this->setType(TYPE_BRICK); 15 | this->setMask(TYPE_HERO); 16 | return true; 17 | } 18 | 19 | void DeadRoof::PreSolve(GameObject* other, b2Contact* contact, const b2Manifold* oldManifold) 20 | { 21 | contact->SetEnabled(false); 22 | if (other->getType() == TYPE_HERO) 23 | { 24 | Hero* hero = (Hero*)other; 25 | hero->dead(); 26 | log("ddddddddddddddd"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Classes/DeadRoof.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/DeadRoof.h -------------------------------------------------------------------------------- /Classes/Dog.cpp: -------------------------------------------------------------------------------- 1 | #include "Dog.h" 2 | 3 | USING_NS_CC; 4 | 5 | bool Dog::init() 6 | { 7 | if(!GameObject::init(500, 500, 30, 30)) 8 | return false; 9 | 10 | count = 0; 11 | 12 | this->setTexture("fl.png"); 13 | 14 | return true; 15 | } 16 | 17 | void Dog::interactive(GameObject* other) 18 | { 19 | log("dog%d", count++); 20 | } 21 | -------------------------------------------------------------------------------- /Classes/Dog.h: -------------------------------------------------------------------------------- 1 | #ifndef _DOG_H_ 2 | #define _DOG_H_ 3 | 4 | #include "cocos2d.h" 5 | #include "GameObject.h" 6 | //class GameObject; 7 | 8 | class Dog : public GameObject 9 | { 10 | public: 11 | int count; 12 | virtual bool init(); 13 | 14 | CREATE_FUNC(Dog); 15 | 16 | virtual void interactive(GameObject* other); 17 | }; 18 | 19 | #endif -------------------------------------------------------------------------------- /Classes/Door.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Door.cpp -------------------------------------------------------------------------------- /Classes/Door.h: -------------------------------------------------------------------------------- 1 | #ifndef _DOOR_H_ 2 | #define _DOOR_H_ 3 | 4 | #include "GameObject.h" 5 | 6 | class Door : public GameObject 7 | { 8 | public: 9 | virtual bool init(float x, float y, float width, float height); 10 | CREATE_FUNC_4(Door, float, float, float, float); 11 | 12 | virtual void BeginContact(GameObject* other, b2Contact* contact); 13 | }; 14 | 15 | #endif -------------------------------------------------------------------------------- /Classes/DynamicData.cpp: -------------------------------------------------------------------------------- 1 | #include "DynamicData.h" 2 | 3 | USING_NS_CC; 4 | 5 | DynamicData* DynamicData::dynamicData = nullptr; 6 | 7 | DynamicData::DynamicData() 8 | { 9 | } 10 | 11 | DynamicData* DynamicData::getInstance() 12 | { 13 | if (dynamicData == nullptr) 14 | { 15 | dynamicData = new DynamicData(); 16 | dynamicData->init(); 17 | } 18 | return dynamicData; 19 | } 20 | 21 | void DynamicData::init() 22 | { 23 | userData = UserDefault::getInstance(); 24 | } 25 | 26 | DynamicData::~DynamicData() 27 | { 28 | 29 | } 30 | 31 | void DynamicData::destroyInstance() 32 | { 33 | CC_SAFE_DELETE(dynamicData); 34 | } 35 | 36 | void DynamicData::setLevel(int level) 37 | { 38 | userData->setIntegerForKey("level", level); 39 | userData->flush(); 40 | } 41 | 42 | int DynamicData::getLevel() 43 | { 44 | return userData->getIntegerForKey("level", 1); 45 | } 46 | 47 | void DynamicData::setCoin(int coin) 48 | { 49 | userData->setIntegerForKey("coin", coin); 50 | userData->flush(); 51 | } 52 | 53 | void DynamicData::addCoin(int coin) 54 | { 55 | userData->setIntegerForKey("coin", coin + getCoin()); 56 | userData->flush(); 57 | } 58 | 59 | int DynamicData::getCoin() 60 | { 61 | return userData->getIntegerForKey("coin", 0); 62 | } 63 | -------------------------------------------------------------------------------- /Classes/DynamicData.h: -------------------------------------------------------------------------------- 1 | #ifndef _DYNAMIC_DATA_H_ 2 | #define _DYNAMIC_DATA_H_ 3 | 4 | #include "cocos2d.h" 5 | 6 | class DynamicData : public cocos2d::Ref 7 | { 8 | private: 9 | static DynamicData* dynamicData; 10 | cocos2d::UserDefault* userData; 11 | 12 | DynamicData(); 13 | public: 14 | static DynamicData* getInstance(); 15 | static void destroyInstance(); 16 | ~DynamicData(); 17 | 18 | void init(); 19 | 20 | void setLevel(int level); 21 | int getLevel(); 22 | 23 | void setCoin(int coin); 24 | void addCoin(int coin); 25 | int getCoin(); 26 | }; 27 | 28 | #endif -------------------------------------------------------------------------------- /Classes/FinishScene.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/FinishScene.cpp -------------------------------------------------------------------------------- /Classes/FinishScene.h: -------------------------------------------------------------------------------- 1 | #ifndef _FINISH_SCENE_H_ 2 | #define _FINISH_SCENE_H_ 3 | 4 | #include "cocos2d.h" 5 | #include "PhysicsSprite.h" 6 | 7 | class FinishScene : public cocos2d::LayerColor 8 | { 9 | private: 10 | bool win; 11 | int coin; 12 | //int level; 13 | public: 14 | static cocos2d::Scene* createScene(int coin); 15 | 16 | virtual bool init(int coin); 17 | 18 | //CREATE_FUNC(FinishScene); 19 | CREATE_FUNC_1(FinishScene, int); 20 | 21 | void setCoin(int coin); 22 | 23 | //void setLevel(int Level); 24 | 25 | void nextCallBack(cocos2d::Ref* ref); 26 | void againCallBack(cocos2d::Ref* ref); 27 | }; 28 | 29 | #endif -------------------------------------------------------------------------------- /Classes/FlyingSlime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/FlyingSlime.cpp -------------------------------------------------------------------------------- /Classes/FlyingSlime.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/FlyingSlime.h -------------------------------------------------------------------------------- /Classes/Fragment.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Fragment.cpp -------------------------------------------------------------------------------- /Classes/Fragment.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Fragment.h -------------------------------------------------------------------------------- /Classes/GameManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/GameManager.cpp -------------------------------------------------------------------------------- /Classes/GameManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/GameManager.h -------------------------------------------------------------------------------- /Classes/GameObject.cpp: -------------------------------------------------------------------------------- 1 | #include "GameObject.h" 2 | 3 | USING_NS_CC; 4 | 5 | bool GameObject::init(float x, float y, float width, float height) 6 | { 7 | if(!PhysicsSprite::init(x, y, width, height)) 8 | return false; 9 | 10 | return true; 11 | } 12 | 13 | bool GameObject::init(float x, float y, b2Vec2* points, int count) 14 | { 15 | if(!PhysicsSprite::init(x, y, points, count)) 16 | return false; 17 | 18 | return true; 19 | } 20 | 21 | void GameObject::BeginContact(GameObject* other, b2Contact* contact) 22 | { 23 | } 24 | 25 | void GameObject::EndContact(GameObject* other, b2Contact* contact) 26 | { 27 | } 28 | 29 | void GameObject::PreSolve(GameObject* other, b2Contact* contact, const b2Manifold* oldManifold) 30 | { 31 | } 32 | 33 | void GameObject::PostSolve(GameObject* other, b2Contact* contact, const b2ContactImpulse* impulse) 34 | { 35 | } 36 | -------------------------------------------------------------------------------- /Classes/GameObject.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/GameObject.h -------------------------------------------------------------------------------- /Classes/GameScene.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/GameScene.cpp -------------------------------------------------------------------------------- /Classes/GameScene.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/GameScene.h -------------------------------------------------------------------------------- /Classes/Grenade.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Grenade.cpp -------------------------------------------------------------------------------- /Classes/Grenade.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Grenade.h -------------------------------------------------------------------------------- /Classes/HelloWorldScene.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/HelloWorldScene.cpp -------------------------------------------------------------------------------- /Classes/HelloWorldScene.h: -------------------------------------------------------------------------------- 1 | #ifndef __HELLOWORLD_SCENE_H__ 2 | #define __HELLOWORLD_SCENE_H__ 3 | 4 | #include "cocos2d.h" 5 | #include "Box2D/Box2D.h" 6 | #include "GameManager.h" 7 | #include "GameObject.h" 8 | #include "LifeObject.h" 9 | #include "Hero.h" 10 | #include "Brick.h" 11 | 12 | class HelloWorld : public cocos2d::LayerColor 13 | { 14 | public: 15 | // there's no 'id' in cpp, so we recommend returning the class instance pointer 16 | static cocos2d::Scene* createScene(); 17 | 18 | // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone 19 | virtual bool init(); 20 | 21 | // implement the "static create()" method manually 22 | CREATE_FUNC(HelloWorld); 23 | 24 | void aboutCallBack(cocos2d::Ref* ref); 25 | void settingCallBack(cocos2d::Ref* ref); 26 | void startCallBack(cocos2d::Ref* ref); 27 | void exitCallBack(cocos2d::Ref* ref); 28 | void msgCallBack(cocos2d::Ref* ref); 29 | 30 | 31 | void dyncLogo(float time); 32 | void deleteNode(cocos2d::Node* sender); 33 | }; 34 | 35 | 36 | #endif // __HELLOWORLD_SCENE_H__ 37 | -------------------------------------------------------------------------------- /Classes/Hero.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Hero.cpp -------------------------------------------------------------------------------- /Classes/Hero.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Hero.h -------------------------------------------------------------------------------- /Classes/HudLayer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/HudLayer.cpp -------------------------------------------------------------------------------- /Classes/HudLayer.h: -------------------------------------------------------------------------------- 1 | #ifndef _HUD_LAYER_H_ 2 | #define _HUD_LAYER_H_ 3 | 4 | #include "cocos2d.h" 5 | 6 | class HudLayer : public cocos2d::Layer 7 | { 8 | protected: 9 | cocos2d::LabelAtlas* plabelAtlas; 10 | public: 11 | virtual bool init() override; 12 | 13 | CREATE_FUNC(HudLayer); 14 | 15 | void replaceHpHud(); 16 | void replaceCoinHud(); 17 | }; 18 | #endif -------------------------------------------------------------------------------- /Classes/JINTools.cpp: -------------------------------------------------------------------------------- 1 | #include "JINTools.h" 2 | JINTools::JINTools(){} 3 | JINTools::~JINTools(){} 4 | 5 | void JINTools::showAdScreen() 6 | { 7 | #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) 8 | JniMethodInfo adScreenInfo; 9 | bool isHave = JniHelper::getStaticMethodInfo(adScreenInfo,"org/cocos2dx/cpp/AppActivity","showAdScreen","()V"); 10 | if (!isHave) { 11 | CCLog("jni:showAdScreen false"); 12 | }else{ 13 | adScreenInfo.env->CallStaticVoidMethod(adScreenInfo.classID, adScreenInfo.methodID); 14 | } 15 | #endif 16 | } 17 | 18 | void JINTools::closeAdScreen() 19 | { 20 | 21 | } 22 | 23 | void JINTools::umengUpdate() 24 | { 25 | #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) 26 | JniMethodInfo updateInfo; 27 | bool isHave = JniHelper::getStaticMethodInfo(updateInfo,"org/cocos2dx/cpp/AppActivity","umengUpdate","()V"); 28 | if (!isHave) { 29 | CCLog("jni:updateInfo false"); 30 | }else{ 31 | updateInfo.env->CallStaticVoidMethod(updateInfo.classID, updateInfo.methodID); 32 | } 33 | #endif 34 | } 35 | 36 | void JINTools::openFeedback() 37 | { 38 | #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) 39 | JniMethodInfo openFeedbackInfo; 40 | bool isHave = JniHelper::getStaticMethodInfo(openFeedbackInfo,"org/cocos2dx/cpp/AppActivity","openFeedback","()V"); 41 | if (!isHave) { 42 | CCLog("jni:openFeedbackInfo false"); 43 | }else{ 44 | openFeedbackInfo.env->CallStaticVoidMethod(openFeedbackInfo.classID, openFeedbackInfo.methodID); 45 | } 46 | #endif 47 | } 48 | -------------------------------------------------------------------------------- /Classes/JINTools.h: -------------------------------------------------------------------------------- 1 | #include "cocos2d.h" 2 | #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) 3 | #include 4 | #include "platform/android/jni/JniHelper.h" 5 | #endif 6 | 7 | using namespace cocos2d; 8 | 9 | class JINTools 10 | { 11 | public: 12 | JINTools(); 13 | virtual ~JINTools(); 14 | static void showAdScreen(); 15 | static void closeAdScreen(); 16 | 17 | static void umengUpdate(); 18 | static void openFeedback(); 19 | }; 20 | -------------------------------------------------------------------------------- /Classes/JumpBoard.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/JumpBoard.cpp -------------------------------------------------------------------------------- /Classes/JumpBoard.h: -------------------------------------------------------------------------------- 1 | #ifndef _JUMP_BOARD_H_ 2 | #define _JUMP_BOARD_H_ 3 | 4 | #include "GameObject.h" 5 | 6 | class JumpBoard : public GameObject 7 | { 8 | public: 9 | virtual bool init(float x, float y, float width, float height) override; 10 | 11 | CREATE_FUNC_4(JumpBoard, float, float, float, float); 12 | 13 | virtual void BeginContact(GameObject* other, b2Contact* contact); 14 | 15 | }; 16 | 17 | #endif -------------------------------------------------------------------------------- /Classes/LevelScene.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/LevelScene.cpp -------------------------------------------------------------------------------- /Classes/LevelScene.h: -------------------------------------------------------------------------------- 1 | #ifndef _LEVEL_H_ 2 | #define _LEVEL_H_ 3 | 4 | #include "cocos2d.h" 5 | 6 | class LevelScene : cocos2d::LayerColor 7 | { 8 | private: 9 | 10 | public: 11 | static cocos2d::Scene* createScene(); 12 | 13 | virtual bool init(); 14 | 15 | CREATE_FUNC(LevelScene); 16 | 17 | void backCallBack(cocos2d::Ref* ref); 18 | void levelsCallBack(cocos2d::Ref* ref); 19 | }; 20 | 21 | #endif -------------------------------------------------------------------------------- /Classes/LifeObject.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/LifeObject.cpp -------------------------------------------------------------------------------- /Classes/LifeObject.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/LifeObject.h -------------------------------------------------------------------------------- /Classes/MapAnalysis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/MapAnalysis.cpp -------------------------------------------------------------------------------- /Classes/MapAnalysis.h: -------------------------------------------------------------------------------- 1 | #ifndef _MAP_ANALYSIS_H_ 2 | #define _MAP_ANALYSIS_H_ 3 | 4 | #include "cocos2d.h" 5 | 6 | class MapAnalysis : public cocos2d::Ref 7 | { 8 | private: 9 | MapAnalysis(); 10 | protected: 11 | static MapAnalysis* _mapAnalysis; 12 | public: 13 | static MapAnalysis* getInstance(); 14 | ~MapAnalysis(); 15 | void initMap(char* leveName); 16 | void initMap(int level); 17 | }; 18 | 19 | #endif -------------------------------------------------------------------------------- /Classes/Monster.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Monster.cpp -------------------------------------------------------------------------------- /Classes/Monster.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Monster.h -------------------------------------------------------------------------------- /Classes/MonsterEx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/MonsterEx.cpp -------------------------------------------------------------------------------- /Classes/MonsterEx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/MonsterEx.h -------------------------------------------------------------------------------- /Classes/PhysicsSprite.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/PhysicsSprite.cpp -------------------------------------------------------------------------------- /Classes/PhysicsSprite.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/PhysicsSprite.h -------------------------------------------------------------------------------- /Classes/Scoreboard.cpp: -------------------------------------------------------------------------------- 1 | #include "Scoreboard.h" 2 | 3 | USING_NS_CC; 4 | 5 | Scoreboard* Scoreboard::_board = nullptr; 6 | 7 | Scoreboard* Scoreboard::getInstance() 8 | { 9 | if (_board == nullptr) 10 | { 11 | _board = new Scoreboard(); 12 | _board->init(); 13 | } 14 | return _board; 15 | } 16 | 17 | void Scoreboard::init() 18 | { 19 | UserDefault* userData = UserDefault::getInstance(); 20 | money = userData->getIntegerForKey("money", 0); 21 | killMonster = userData->getIntegerForKey("killMonster", 0); 22 | exp = userData->getIntegerForKey("exp", 0); 23 | level = userData->getIntegerForKey("level", 1); 24 | } 25 | 26 | void Scoreboard::save() 27 | { 28 | UserDefault* userData = UserDefault::getInstance(); 29 | userData->setIntegerForKey("money", money); 30 | userData->setIntegerForKey("killMonster", killMonster); 31 | userData->setIntegerForKey("exp", exp); 32 | userData->setIntegerForKey("level", level); 33 | userData->flush(); 34 | } 35 | 36 | Scoreboard::~Scoreboard() 37 | { 38 | } 39 | 40 | void Scoreboard::addMoney(int count) 41 | { 42 | if (count < 0) 43 | { 44 | log("addMoney worng"); 45 | return; 46 | } 47 | money += count; 48 | } 49 | 50 | void Scoreboard::deleteMoney(int count) 51 | { 52 | if (count < 0) 53 | { 54 | log("deleteMoney worng"); 55 | return; 56 | } 57 | money -= count; 58 | } 59 | 60 | int Scoreboard::getMoney() 61 | { 62 | return money; 63 | } 64 | 65 | void Scoreboard::addKillMonster(int count) 66 | { 67 | if (count < 0) 68 | { 69 | log("addKillMonster worng"); 70 | return; 71 | } 72 | killMonster += count; 73 | } 74 | 75 | int Scoreboard::getKillMonster() 76 | { 77 | return killMonster; 78 | } 79 | 80 | void Scoreboard::addExp(int count) 81 | { 82 | if (count < 0) 83 | { 84 | log("addExp worng"); 85 | return; 86 | } 87 | exp += count; 88 | } 89 | 90 | int Scoreboard::getExp() 91 | { 92 | return exp; 93 | } 94 | 95 | 96 | void Scoreboard::setLevel(int level) 97 | { 98 | Scoreboard::level = level; 99 | } 100 | 101 | int Scoreboard::getLevel() 102 | { 103 | return level; 104 | } 105 | 106 | 107 | Scoreboard::Scoreboard() 108 | { 109 | 110 | } 111 | 112 | void Scoreboard::destroyInstance() 113 | { 114 | CC_SAFE_DELETE(_board); 115 | } 116 | 117 | -------------------------------------------------------------------------------- /Classes/Scoreboard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Scoreboard.h -------------------------------------------------------------------------------- /Classes/Slime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Slime.cpp -------------------------------------------------------------------------------- /Classes/Slime.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Slime.h -------------------------------------------------------------------------------- /Classes/Spikes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Spikes.cpp -------------------------------------------------------------------------------- /Classes/Spikes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Spikes.h -------------------------------------------------------------------------------- /Classes/StaticData.cpp: -------------------------------------------------------------------------------- 1 | #include "StaticData.h" 2 | 3 | USING_NS_CC; 4 | 5 | StaticData* StaticData::staticData = nullptr; 6 | 7 | StaticData* StaticData::getInstance() 8 | { 9 | if (staticData == nullptr) 10 | { 11 | staticData = new StaticData(); 12 | staticData->init(); 13 | } 14 | return staticData; 15 | } 16 | 17 | void StaticData::init() 18 | { 19 | std::string path = FileUtils::getInstance()->fullPathForFilename(STATIC_STATIC_DATA_PATH); 20 | vm = FileUtils::getInstance()->getValueMapFromFile(path); 21 | } 22 | 23 | StaticData::StaticData() 24 | { 25 | } 26 | 27 | StaticData::~StaticData() 28 | { 29 | } 30 | 31 | void StaticData::purge() 32 | { 33 | } 34 | ////////////////////////////////////////////////////// 35 | const std::string StaticData::stringFromKey(std::string key) 36 | { 37 | return vm.at(key).asString(); 38 | } 39 | 40 | int StaticData::intFromKey(std::string key) 41 | { 42 | return vm.at(key).asInt(); 43 | } 44 | 45 | float StaticData::floatFromKey(std::string key) 46 | { 47 | return vm.at(key).asFloat(); 48 | } 49 | 50 | bool StaticData::booleanFromKey(std::string key) 51 | { 52 | return vm.at(key).asBool(); 53 | } 54 | 55 | cocos2d::Vec2 StaticData::vec2FromKey(std::string key) 56 | { 57 | return PointFromString(vm.at(key).asString().c_str()); 58 | } 59 | 60 | cocos2d::Rect StaticData::rectFromKey(std::string key) 61 | { 62 | return RectFromString(vm.at(key).asString().c_str()); 63 | } 64 | 65 | cocos2d::Size StaticData::sizeFromKey(std::string key) 66 | { 67 | return SizeFromString(vm.at(key).asString().c_str()); 68 | } -------------------------------------------------------------------------------- /Classes/StaticData.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/StaticData.h -------------------------------------------------------------------------------- /Classes/StaticDataEx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/StaticDataEx.cpp -------------------------------------------------------------------------------- /Classes/StaticDataEx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/StaticDataEx.h -------------------------------------------------------------------------------- /Classes/TextData.cpp: -------------------------------------------------------------------------------- 1 | #include "TextData.h" 2 | 3 | USING_NS_CC; 4 | 5 | TextData* TextData::staticData = nullptr; 6 | 7 | TextData* TextData::getInstance() 8 | { 9 | if (staticData == nullptr) 10 | { 11 | staticData = new TextData(); 12 | staticData->init(); 13 | } 14 | return staticData; 15 | } 16 | 17 | void TextData::init() 18 | { 19 | std::string path = FileUtils::getInstance()->fullPathForFilename(TEXT_DATA_PATH); 20 | vm = FileUtils::getInstance()->getValueMapFromFile(path); 21 | } 22 | 23 | TextData::TextData() 24 | { 25 | } 26 | 27 | TextData::~TextData() 28 | { 29 | } 30 | 31 | void TextData::purge() 32 | { 33 | } 34 | ////////////////////////////////////////////////////// 35 | const std::string TextData::stringFromKey(std::string key) 36 | { 37 | return vm.at(key).asString(); 38 | } 39 | 40 | float TextData::floatFromKey(std::string key) 41 | { 42 | return vm.at(key).asFloat(); 43 | } 44 | -------------------------------------------------------------------------------- /Classes/TextData.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/TextData.h -------------------------------------------------------------------------------- /Classes/Wall.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Wall.cpp -------------------------------------------------------------------------------- /Classes/Wall.h: -------------------------------------------------------------------------------- 1 | #ifndef _WALL_H_ 2 | #define _WALL_H_ 3 | 4 | #include "GameObject.h" 5 | 6 | class Wall : public GameObject 7 | { 8 | public: 9 | void initParam(); 10 | virtual bool init(float x, float y, float width, float height) override; 11 | CREATE_FUNC_4(Wall, float, float, float, float); 12 | 13 | virtual bool init(float x, float y, b2Vec2* points, int count) override; 14 | CREATE_FUNC_4(Wall, float, float, b2Vec2*, int); 15 | }; 16 | 17 | #endif -------------------------------------------------------------------------------- /Classes/Weapon.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Weapon.cpp -------------------------------------------------------------------------------- /Classes/Weapon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/Weapon.h -------------------------------------------------------------------------------- /Classes/pxman.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Classes/pxman.h -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | BadGame 《烂游戏》 2 | =================================== 3 | by WilhanTian email wilhan.tian@gmail.com 4 | 5 | 本游戏使用cocos2d-x 3.2 Final版本开发。 6 | 为了节省git同步时间,我只保留了Classes文件夹和Res资源文件夹。 7 | 8 | 最开始打算直接使用cocos2d-x3.X内部封装好的物理精灵,不过两个物体碰撞会出现互相嵌入的现象, 9 | 想了好久也没有头绪怎样解决~ 然后我就毅然决然的使用了Box2d物理引擎,将2d-x中的Sprite和Box2D的 10 | 刚体进行封装。 11 | 另外我也将Box2d的碰撞事件进行了分发回调,从而大大减少了耦合度。 12 | 13 | p.s. 本人职业学生,代码稚嫩、和各种不标准的地方,还请大家见谅! 14 | and p.s. 所有BadGame的图片资源大多都来自共享的资源,所以我没有资格把它们据为己有。故任何人都可以复制,修改,重新发表,甚至以自己的名义发表,我都不会追究,但你在做以上事情的时候必须保证内容的完整性。最后,任何人不能以这些源码与资源的任何部分,谋取任何形式的报酬。 15 | 16 | 主要类说明: 17 | ---------------------------- 18 | ConfigData 单例 通过此类获取各种配置信息
19 | DynamicData 单例 动态数据类
20 | GameManager 单例 游戏管理器 用来驱动游戏和物理引擎 封装事件的分发在此实现
21 | GameObject 游戏对象 /*这个不用解释了吧?*/
22 | JINTools JNI相关的东西 大部分是静态方法 这个JINTools的名字当时写错了...应该是JNITools...哈哈!
23 | LifeObject 具有生命的对象
24 | MapAnalysis 游戏地图解析类 就是专门用来解析地图的,我是用TiledMap做的游戏地图编辑器~~
25 | PhysicsSprite 物理精灵 将Sprite和box2d进行了二次封装
26 | StaticData 静态数据类 废弃了...
27 | StaticDataEx 静态数据类
28 | TextData 专门保存字符串数据的
29 | 30 | ![image](https://github.com/wilhantian/BadGame/blob/master/_image/1.png) 31 | ![image](https://github.com/wilhantian/BadGame/blob/master/_image/2.png) 32 | ![image](https://github.com/wilhantian/BadGame/blob/master/_image/5.png) 33 | ![image](https://github.com/wilhantian/BadGame/blob/master/_image/6.png) 34 | 35 | [好乎-好玩的不亦乐乎](http://www.haohuu.com) 36 | [498工具盒子](http://www.498box.com) 37 | -------------------------------------------------------------------------------- /Resources/ArticleBomb.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | ArticleBomb0000 8 | 9 | frame 10 | {{3,3},{151,126}} 11 | offset 12 | {0,0} 13 | rotated 14 | 15 | sourceColorRect 16 | {{0,0},{151,126}} 17 | sourceSize 18 | {151,126} 19 | 20 | ArticleBomb0001 21 | 22 | frame 23 | {{157,3},{151,126}} 24 | offset 25 | {0,0} 26 | rotated 27 | 28 | sourceColorRect 29 | {{0,0},{151,126}} 30 | sourceSize 31 | {151,126} 32 | 33 | ArticleBomb0002 34 | 35 | frame 36 | {{311,3},{151,126}} 37 | offset 38 | {0,0} 39 | rotated 40 | 41 | sourceColorRect 42 | {{0,0},{151,126}} 43 | sourceSize 44 | {151,126} 45 | 46 | ArticleBomb0003 47 | 48 | frame 49 | {{3,132},{151,126}} 50 | offset 51 | {0,0} 52 | rotated 53 | 54 | sourceColorRect 55 | {{0,0},{151,126}} 56 | sourceSize 57 | {151,126} 58 | 59 | ArticleBomb0004 60 | 61 | frame 62 | {{157,132},{151,126}} 63 | offset 64 | {0,0} 65 | rotated 66 | 67 | sourceColorRect 68 | {{0,0},{151,126}} 69 | sourceSize 70 | {151,126} 71 | 72 | ArticleBomb0005 73 | 74 | frame 75 | {{311,132},{151,126}} 76 | offset 77 | {0,0} 78 | rotated 79 | 80 | sourceColorRect 81 | {{0,0},{151,126}} 82 | sourceSize 83 | {151,126} 84 | 85 | ArticleBomb0006 86 | 87 | frame 88 | {{3,261},{151,126}} 89 | offset 90 | {0,0} 91 | rotated 92 | 93 | sourceColorRect 94 | {{0,0},{151,126}} 95 | sourceSize 96 | {151,126} 97 | 98 | 99 | metadata 100 | 101 | format 102 | 2 103 | realTextureFileName 104 | ArticleBomb.png 105 | size 106 | {512,512} 107 | textureFileName 108 | ArticleBomb.png 109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Resources/ArticleBomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/ArticleBomb.png -------------------------------------------------------------------------------- /Resources/Bird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Bird.png -------------------------------------------------------------------------------- /Resources/BirdFly.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | BirdFly0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{56,69}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {56,69} 17 | spriteSourceSize 18 | {56,69} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{56,69}} 23 | textureRotated 24 | 25 | 26 | BirdFly0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{56,69}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {56,69} 36 | spriteSourceSize 37 | {56,69} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{3,3},{56,69}} 42 | textureRotated 43 | 44 | 45 | BirdFly0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{0,0},{56,69}} 51 | spriteOffset 52 | {0,0} 53 | spriteSize 54 | {56,69} 55 | spriteSourceSize 56 | {56,69} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{3,3},{56,69}} 61 | textureRotated 62 | 63 | 64 | BirdFly0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{56,69}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {56,69} 74 | spriteSourceSize 75 | {56,69} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{3,3},{56,69}} 80 | textureRotated 81 | 82 | 83 | BirdFly0004 84 | 85 | aliases 86 | 87 | sourceColorRect 88 | {{0,0},{56,69}} 89 | spriteOffset 90 | {0,0} 91 | spriteSize 92 | {56,69} 93 | spriteSourceSize 94 | {56,69} 95 | spriteTrimmed 96 | 97 | textureRect 98 | {{62,3},{56,69}} 99 | textureRotated 100 | 101 | 102 | BirdFly0005 103 | 104 | aliases 105 | 106 | sourceColorRect 107 | {{0,0},{56,69}} 108 | spriteOffset 109 | {0,0} 110 | spriteSize 111 | {56,69} 112 | spriteSourceSize 113 | {56,69} 114 | spriteTrimmed 115 | 116 | textureRect 117 | {{62,3},{56,69}} 118 | textureRotated 119 | 120 | 121 | BirdFly0006 122 | 123 | aliases 124 | 125 | sourceColorRect 126 | {{0,0},{56,69}} 127 | spriteOffset 128 | {0,0} 129 | spriteSize 130 | {56,69} 131 | spriteSourceSize 132 | {56,69} 133 | spriteTrimmed 134 | 135 | textureRect 136 | {{62,3},{56,69}} 137 | textureRotated 138 | 139 | 140 | BirdFly0007 141 | 142 | aliases 143 | 144 | sourceColorRect 145 | {{0,0},{56,69}} 146 | spriteOffset 147 | {0,0} 148 | spriteSize 149 | {56,69} 150 | spriteSourceSize 151 | {56,69} 152 | spriteTrimmed 153 | 154 | textureRect 155 | {{62,3},{56,69}} 156 | textureRotated 157 | 158 | 159 | 160 | metadata 161 | 162 | format 163 | 3 164 | size 165 | {122,75} 166 | target 167 | 168 | name 169 | BirdFly.png 170 | textureFileName 171 | BirdFly 172 | textureFileExtension 173 | png 174 | premultipliedAlpha 175 | 176 | 177 | 178 | 179 | 180 | -------------------------------------------------------------------------------- /Resources/BirdFly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/BirdFly.png -------------------------------------------------------------------------------- /Resources/BirdMap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/BirdMap.png -------------------------------------------------------------------------------- /Resources/CloseNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/CloseNormal.png -------------------------------------------------------------------------------- /Resources/CloseSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/CloseSelected.png -------------------------------------------------------------------------------- /Resources/Coin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Coin.png -------------------------------------------------------------------------------- /Resources/Enemies/fly01_dead.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | fly01_dead0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{60,34}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {60,34} 17 | spriteSourceSize 18 | {60,34} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{60,34}} 23 | textureRotated 24 | 25 | 26 | fly01_dead0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{60,34}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {60,34} 36 | spriteSourceSize 37 | {60,34} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{3,3},{60,34}} 42 | textureRotated 43 | 44 | 45 | 46 | metadata 47 | 48 | format 49 | 3 50 | size 51 | {75,46} 52 | target 53 | 54 | name 55 | fly01_dead.png 56 | textureFileName 57 | fly01_dead 58 | textureFileExtension 59 | png 60 | premultipliedAlpha 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Resources/Enemies/fly01_dead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Enemies/fly01_dead.png -------------------------------------------------------------------------------- /Resources/Enemies/fly01_fly_left.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | fly01_fly_left0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{75,36}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {75,36} 17 | spriteSourceSize 18 | {75,36} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{75,36}} 23 | textureRotated 24 | 25 | 26 | fly01_fly_left0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{75,36}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {75,36} 36 | spriteSourceSize 37 | {75,36} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{3,42},{75,36}} 42 | textureRotated 43 | 44 | 45 | 46 | metadata 47 | 48 | format 49 | 3 50 | size 51 | {82,84} 52 | target 53 | 54 | name 55 | fly01_fly_left.png 56 | textureFileName 57 | fly01_fly_left 58 | textureFileExtension 59 | png 60 | premultipliedAlpha 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Resources/Enemies/fly01_fly_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Enemies/fly01_fly_left.png -------------------------------------------------------------------------------- /Resources/Enemies/fly01_fly_right.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | fly01_fly_right0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{76,36}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {76,36} 17 | spriteSourceSize 18 | {76,36} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{76,36}} 23 | textureRotated 24 | 25 | 26 | fly01_fly_right0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{76,36}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {76,36} 36 | spriteSourceSize 37 | {76,36} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{3,42},{76,36}} 42 | textureRotated 43 | 44 | 45 | 46 | metadata 47 | 48 | format 49 | 3 50 | size 51 | {82,84} 52 | target 53 | 54 | name 55 | fly01_fly_right.png 56 | textureFileName 57 | fly01_fly_right 58 | textureFileExtension 59 | png 60 | premultipliedAlpha 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Resources/Enemies/fly01_fly_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Enemies/fly01_fly_right.png -------------------------------------------------------------------------------- /Resources/Enemies/slime_dead.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | slime_dead0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{60,12}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {60,12} 17 | spriteSourceSize 18 | {60,12} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{60,12}} 23 | textureRotated 24 | 25 | 26 | 27 | metadata 28 | 29 | format 30 | 3 31 | size 32 | {69,18} 33 | target 34 | 35 | name 36 | slime_dead.png 37 | textureFileName 38 | slime_dead 39 | textureFileExtension 40 | png 41 | premultipliedAlpha 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Resources/Enemies/slime_dead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Enemies/slime_dead.png -------------------------------------------------------------------------------- /Resources/Enemies/slime_walk_left.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | slime_walk_left0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{52,28}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {52,28} 17 | spriteSourceSize 18 | {52,28} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{52,28}} 23 | textureRotated 24 | 25 | 26 | slime_walk_left0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{52,28}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {52,28} 36 | spriteSourceSize 37 | {52,28} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{3,34},{52,28}} 42 | textureRotated 43 | 44 | 45 | 46 | metadata 47 | 48 | format 49 | 3 50 | size 51 | {59,66} 52 | target 53 | 54 | name 55 | slime_walk_left.png 56 | textureFileName 57 | slime_walk_left 58 | textureFileExtension 59 | png 60 | premultipliedAlpha 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Resources/Enemies/slime_walk_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Enemies/slime_walk_left.png -------------------------------------------------------------------------------- /Resources/Enemies/slime_walk_right.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | slime_walk_right0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{52,28}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {52,28} 17 | spriteSourceSize 18 | {52,28} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{52,28}} 23 | textureRotated 24 | 25 | 26 | slime_walk_right0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{52,28}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {52,28} 36 | spriteSourceSize 37 | {52,28} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{3,34},{52,28}} 42 | textureRotated 43 | 44 | 45 | 46 | metadata 47 | 48 | format 49 | 3 50 | size 51 | {59,66} 52 | target 53 | 54 | name 55 | slime_walk_right.png 56 | textureFileName 57 | slime_walk_right 58 | textureFileExtension 59 | png 60 | premultipliedAlpha 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Resources/Enemies/slime_walk_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Enemies/slime_walk_right.png -------------------------------------------------------------------------------- /Resources/Five.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Five.png -------------------------------------------------------------------------------- /Resources/FlyingSlime.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | FlyingSlime0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{89,45}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {89,45} 17 | spriteSourceSize 18 | {89,45} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{89,45}} 23 | textureRotated 24 | 25 | 26 | FlyingSlime0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{89,45}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {89,45} 36 | spriteSourceSize 37 | {89,45} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{95,3},{89,45}} 42 | textureRotated 43 | 44 | 45 | FlyingSlime0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{0,0},{89,45}} 51 | spriteOffset 52 | {0,0} 53 | spriteSize 54 | {89,45} 55 | spriteSourceSize 56 | {89,45} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{3,51},{89,45}} 61 | textureRotated 62 | 63 | 64 | FlyingSlime0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{89,45}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {89,45} 74 | spriteSourceSize 75 | {89,45} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{95,51},{89,45}} 80 | textureRotated 81 | 82 | 83 | FlyingSlime0004 84 | 85 | aliases 86 | 87 | sourceColorRect 88 | {{0,0},{89,45}} 89 | spriteOffset 90 | {0,0} 91 | spriteSize 92 | {89,45} 93 | spriteSourceSize 94 | {89,45} 95 | spriteTrimmed 96 | 97 | textureRect 98 | {{3,99},{89,45}} 99 | textureRotated 100 | 101 | 102 | FlyingSlime0005 103 | 104 | aliases 105 | 106 | sourceColorRect 107 | {{0,0},{89,45}} 108 | spriteOffset 109 | {0,0} 110 | spriteSize 111 | {89,45} 112 | spriteSourceSize 113 | {89,45} 114 | spriteTrimmed 115 | 116 | textureRect 117 | {{95,99},{89,45}} 118 | textureRotated 119 | 120 | 121 | FlyingSlime0006 122 | 123 | aliases 124 | 125 | sourceColorRect 126 | {{0,0},{89,45}} 127 | spriteOffset 128 | {0,0} 129 | spriteSize 130 | {89,45} 131 | spriteSourceSize 132 | {89,45} 133 | spriteTrimmed 134 | 135 | textureRect 136 | {{3,147},{89,45}} 137 | textureRotated 138 | 139 | 140 | FlyingSlime0007 141 | 142 | aliases 143 | 144 | sourceColorRect 145 | {{0,0},{89,45}} 146 | spriteOffset 147 | {0,0} 148 | spriteSize 149 | {89,45} 150 | spriteSourceSize 151 | {89,45} 152 | spriteTrimmed 153 | 154 | textureRect 155 | {{95,147},{89,45}} 156 | textureRotated 157 | 158 | 159 | FlyingSlime0008 160 | 161 | aliases 162 | 163 | sourceColorRect 164 | {{0,0},{89,45}} 165 | spriteOffset 166 | {0,0} 167 | spriteSize 168 | {89,45} 169 | spriteSourceSize 170 | {89,45} 171 | spriteTrimmed 172 | 173 | textureRect 174 | {{3,195},{89,45}} 175 | textureRotated 176 | 177 | 178 | FlyingSlime0009 179 | 180 | aliases 181 | 182 | sourceColorRect 183 | {{0,0},{89,45}} 184 | spriteOffset 185 | {0,0} 186 | spriteSize 187 | {89,45} 188 | spriteSourceSize 189 | {89,45} 190 | spriteTrimmed 191 | 192 | textureRect 193 | {{3,3},{89,45}} 194 | textureRotated 195 | 196 | 197 | 198 | metadata 199 | 200 | format 201 | 3 202 | size 203 | {189,244} 204 | target 205 | 206 | name 207 | FlyingSlime.png 208 | textureFileName 209 | FlyingSlime 210 | textureFileExtension 211 | png 212 | premultipliedAlpha 213 | 214 | 215 | 216 | 217 | 218 | -------------------------------------------------------------------------------- /Resources/FlyingSlime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/FlyingSlime.png -------------------------------------------------------------------------------- /Resources/FlyingSlimeMap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/FlyingSlimeMap.png -------------------------------------------------------------------------------- /Resources/Grenade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Grenade.png -------------------------------------------------------------------------------- /Resources/HUD/button_down_A.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/button_down_A.png -------------------------------------------------------------------------------- /Resources/HUD/button_down_B.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/button_down_B.png -------------------------------------------------------------------------------- /Resources/HUD/button_down_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/button_down_left.png -------------------------------------------------------------------------------- /Resources/HUD/button_down_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/button_down_right.png -------------------------------------------------------------------------------- /Resources/HUD/button_up_A.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/button_up_A.png -------------------------------------------------------------------------------- /Resources/HUD/button_up_B.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/button_up_B.png -------------------------------------------------------------------------------- /Resources/HUD/button_up_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/button_up_left.png -------------------------------------------------------------------------------- /Resources/HUD/button_up_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/button_up_right.png -------------------------------------------------------------------------------- /Resources/HUD/hud_coins.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/hud_coins.png -------------------------------------------------------------------------------- /Resources/HUD/hud_heartEmpty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/hud_heartEmpty.png -------------------------------------------------------------------------------- /Resources/HUD/hud_heartFull.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/hud_heartFull.png -------------------------------------------------------------------------------- /Resources/HUD/hud_num.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HUD/hud_num.png -------------------------------------------------------------------------------- /Resources/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HelloWorld.png -------------------------------------------------------------------------------- /Resources/Hero.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | Hero0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{46,99}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {46,99} 17 | spriteSourceSize 18 | {46,99} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{46,99}} 23 | textureRotated 24 | 25 | 26 | Hero0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{1,0},{45,99}} 32 | spriteOffset 33 | {-1,0} 34 | spriteSize 35 | {46,99} 36 | spriteSourceSize 37 | {45,99} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{52,3},{45,99}} 42 | textureRotated 43 | 44 | 45 | Hero0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{1,1},{45,98}} 51 | spriteOffset 52 | {-1,-1} 53 | spriteSize 54 | {46,99} 55 | spriteSourceSize 56 | {45,98} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{3,105},{45,98}} 61 | textureRotated 62 | 63 | 64 | Hero0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{46,99}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {46,99} 74 | spriteSourceSize 75 | {46,99} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{3,3},{46,99}} 80 | textureRotated 81 | 82 | 83 | 84 | metadata 85 | 86 | format 87 | 3 88 | size 89 | {128,207} 90 | target 91 | 92 | name 93 | Hero.png 94 | textureFileName 95 | Hero 96 | textureFileExtension 97 | png 98 | premultipliedAlpha 99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /Resources/Hero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Hero.png -------------------------------------------------------------------------------- /Resources/Hero/hero_dead.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | hero_dead0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{66,92}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {66,92} 17 | spriteSourceSize 18 | {66,92} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{66,92}} 23 | textureRotated 24 | 25 | 26 | hero_dead0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{66,92}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {66,92} 36 | spriteSourceSize 37 | {66,92} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{3,3},{66,92}} 42 | textureRotated 43 | 44 | 45 | 46 | metadata 47 | 48 | format 49 | 3 50 | size 51 | {80,109} 52 | target 53 | 54 | name 55 | hero_dead.png 56 | textureFileName 57 | hero_dead 58 | textureFileExtension 59 | png 60 | premultipliedAlpha 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Resources/Hero/hero_dead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Hero/hero_dead.png -------------------------------------------------------------------------------- /Resources/Hero/hero_stop.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | hero_stop0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{66,93}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {66,93} 17 | spriteSourceSize 18 | {66,93} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{66,93}} 23 | textureRotated 24 | 25 | 26 | hero_stop0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{66,93}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {66,93} 36 | spriteSourceSize 37 | {66,93} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{72,3},{66,93}} 42 | textureRotated 43 | 44 | 45 | 46 | metadata 47 | 48 | format 49 | 3 50 | size 51 | {153,101} 52 | target 53 | 54 | name 55 | hero_stop.png 56 | textureFileName 57 | hero_stop 58 | textureFileExtension 59 | png 60 | premultipliedAlpha 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /Resources/Hero/hero_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Hero/hero_stop.png -------------------------------------------------------------------------------- /Resources/Hero/hero_walk_left.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | hero_walk_left0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{72,101}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {72,101} 17 | spriteSourceSize 18 | {72,101} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{72,101}} 23 | textureRotated 24 | 25 | 26 | hero_walk_left0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{72,101}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {72,101} 36 | spriteSourceSize 37 | {72,101} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{78,3},{72,101}} 42 | textureRotated 43 | 44 | 45 | hero_walk_left0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{0,0},{72,101}} 51 | spriteOffset 52 | {0,0} 53 | spriteSize 54 | {72,101} 55 | spriteSourceSize 56 | {72,101} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{3,107},{72,101}} 61 | textureRotated 62 | 63 | 64 | hero_walk_left0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{72,101}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {72,101} 74 | spriteSourceSize 75 | {72,101} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{78,107},{72,101}} 80 | textureRotated 81 | 82 | 83 | hero_walk_left0004 84 | 85 | aliases 86 | 87 | sourceColorRect 88 | {{0,0},{72,101}} 89 | spriteOffset 90 | {0,0} 91 | spriteSize 92 | {72,101} 93 | spriteSourceSize 94 | {72,101} 95 | spriteTrimmed 96 | 97 | textureRect 98 | {{3,107},{72,101}} 99 | textureRotated 100 | 101 | 102 | hero_walk_left0005 103 | 104 | aliases 105 | 106 | sourceColorRect 107 | {{0,0},{72,101}} 108 | spriteOffset 109 | {0,0} 110 | spriteSize 111 | {72,101} 112 | spriteSourceSize 113 | {72,101} 114 | spriteTrimmed 115 | 116 | textureRect 117 | {{78,3},{72,101}} 118 | textureRotated 119 | 120 | 121 | 122 | metadata 123 | 124 | format 125 | 3 126 | size 127 | {153,214} 128 | target 129 | 130 | name 131 | hero_walk_left.png 132 | textureFileName 133 | hero_walk_left 134 | textureFileExtension 135 | png 136 | premultipliedAlpha 137 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /Resources/Hero/hero_walk_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Hero/hero_walk_left.png -------------------------------------------------------------------------------- /Resources/Hero/hero_walk_right.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | hero_walk_right0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{72,101}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {72,101} 17 | spriteSourceSize 18 | {72,101} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{72,101}} 23 | textureRotated 24 | 25 | 26 | hero_walk_right0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{72,101}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {72,101} 36 | spriteSourceSize 37 | {72,101} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{78,3},{72,101}} 42 | textureRotated 43 | 44 | 45 | hero_walk_right0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{0,0},{72,101}} 51 | spriteOffset 52 | {0,0} 53 | spriteSize 54 | {72,101} 55 | spriteSourceSize 56 | {72,101} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{3,107},{72,101}} 61 | textureRotated 62 | 63 | 64 | hero_walk_right0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{72,101}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {72,101} 74 | spriteSourceSize 75 | {72,101} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{78,107},{72,101}} 80 | textureRotated 81 | 82 | 83 | hero_walk_right0004 84 | 85 | aliases 86 | 87 | sourceColorRect 88 | {{0,0},{72,101}} 89 | spriteOffset 90 | {0,0} 91 | spriteSize 92 | {72,101} 93 | spriteSourceSize 94 | {72,101} 95 | spriteTrimmed 96 | 97 | textureRect 98 | {{3,107},{72,101}} 99 | textureRotated 100 | 101 | 102 | hero_walk_right0005 103 | 104 | aliases 105 | 106 | sourceColorRect 107 | {{0,0},{72,101}} 108 | spriteOffset 109 | {0,0} 110 | spriteSize 111 | {72,101} 112 | spriteSourceSize 113 | {72,101} 114 | spriteTrimmed 115 | 116 | textureRect 117 | {{78,3},{72,101}} 118 | textureRotated 119 | 120 | 121 | 122 | metadata 123 | 124 | format 125 | 3 126 | size 127 | {153,214} 128 | target 129 | 130 | name 131 | hero_walk_right.png 132 | textureFileName 133 | hero_walk_right 134 | textureFileExtension 135 | png 136 | premultipliedAlpha 137 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /Resources/Hero/hero_walk_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Hero/hero_walk_right.png -------------------------------------------------------------------------------- /Resources/HeroDie.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | HeroDie0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{76,109}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {76,109} 17 | spriteSourceSize 18 | {76,109} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{76,109}} 23 | textureRotated 24 | 25 | 26 | HeroDie0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{76,109}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {76,109} 36 | spriteSourceSize 37 | {76,109} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{82,3},{76,109}} 42 | textureRotated 43 | 44 | 45 | HeroDie0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{0,0},{76,109}} 51 | spriteOffset 52 | {0,0} 53 | spriteSize 54 | {76,109} 55 | spriteSourceSize 56 | {76,109} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{161,3},{76,109}} 61 | textureRotated 62 | 63 | 64 | HeroDie0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{76,109}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {76,109} 74 | spriteSourceSize 75 | {76,109} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{3,115},{76,109}} 80 | textureRotated 81 | 82 | 83 | HeroDie0004 84 | 85 | aliases 86 | 87 | sourceColorRect 88 | {{0,0},{76,109}} 89 | spriteOffset 90 | {0,0} 91 | spriteSize 92 | {76,109} 93 | spriteSourceSize 94 | {76,109} 95 | spriteTrimmed 96 | 97 | textureRect 98 | {{82,115},{76,109}} 99 | textureRotated 100 | 101 | 102 | 103 | metadata 104 | 105 | format 106 | 3 107 | size 108 | {256,256} 109 | target 110 | 111 | name 112 | HeroDie.png 113 | textureFileName 114 | HeroDie 115 | textureFileExtension 116 | png 117 | premultipliedAlpha 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /Resources/HeroDie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/HeroDie.png -------------------------------------------------------------------------------- /Resources/Items/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/bomb.png -------------------------------------------------------------------------------- /Resources/Items/bomb_dead.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | bomb_dead0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{179,144}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {179,144} 17 | spriteSourceSize 18 | {179,144} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{179,144}} 23 | textureRotated 24 | 25 | 26 | bomb_dead0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{179,144}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {179,144} 36 | spriteSourceSize 37 | {179,144} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{3,3},{179,144}} 42 | textureRotated 43 | 44 | 45 | bomb_dead0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{0,0},{179,144}} 51 | spriteOffset 52 | {0,0} 53 | spriteSize 54 | {179,144} 55 | spriteSourceSize 56 | {179,144} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{185,3},{179,144}} 61 | textureRotated 62 | 63 | 64 | bomb_dead0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{179,144}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {179,144} 74 | spriteSourceSize 75 | {179,144} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{185,3},{179,144}} 80 | textureRotated 81 | 82 | 83 | bomb_dead0004 84 | 85 | aliases 86 | 87 | sourceColorRect 88 | {{0,0},{179,144}} 89 | spriteOffset 90 | {0,0} 91 | spriteSize 92 | {179,144} 93 | spriteSourceSize 94 | {179,144} 95 | spriteTrimmed 96 | 97 | textureRect 98 | {{3,150},{179,144}} 99 | textureRotated 100 | 101 | 102 | bomb_dead0005 103 | 104 | aliases 105 | 106 | sourceColorRect 107 | {{0,0},{179,144}} 108 | spriteOffset 109 | {0,0} 110 | spriteSize 111 | {179,144} 112 | spriteSourceSize 113 | {179,144} 114 | spriteTrimmed 115 | 116 | textureRect 117 | {{3,150},{179,144}} 118 | textureRotated 119 | 120 | 121 | bomb_dead0006 122 | 123 | aliases 124 | 125 | sourceColorRect 126 | {{0,0},{179,144}} 127 | spriteOffset 128 | {0,0} 129 | spriteSize 130 | {179,144} 131 | spriteSourceSize 132 | {179,144} 133 | spriteTrimmed 134 | 135 | textureRect 136 | {{185,150},{179,144}} 137 | textureRotated 138 | 139 | 140 | bomb_dead0007 141 | 142 | aliases 143 | 144 | sourceColorRect 145 | {{0,0},{179,144}} 146 | spriteOffset 147 | {0,0} 148 | spriteSize 149 | {179,144} 150 | spriteSourceSize 151 | {179,144} 152 | spriteTrimmed 153 | 154 | textureRect 155 | {{185,150},{179,144}} 156 | textureRotated 157 | 158 | 159 | bomb_dead0008 160 | 161 | aliases 162 | 163 | sourceColorRect 164 | {{0,0},{179,144}} 165 | spriteOffset 166 | {0,0} 167 | spriteSize 168 | {179,144} 169 | spriteSourceSize 170 | {179,144} 171 | spriteTrimmed 172 | 173 | textureRect 174 | {{3,297},{179,144}} 175 | textureRotated 176 | 177 | 178 | bomb_dead0009 179 | 180 | aliases 181 | 182 | sourceColorRect 183 | {{0,0},{179,144}} 184 | spriteOffset 185 | {0,0} 186 | spriteSize 187 | {179,144} 188 | spriteSourceSize 189 | {179,144} 190 | spriteTrimmed 191 | 192 | textureRect 193 | {{3,297},{179,144}} 194 | textureRotated 195 | 196 | 197 | 198 | metadata 199 | 200 | format 201 | 3 202 | size 203 | {374,449} 204 | target 205 | 206 | name 207 | bomb_dead.png 208 | textureFileName 209 | bomb_dead 210 | textureFileExtension 211 | png 212 | premultipliedAlpha 213 | 214 | 215 | 216 | 217 | 218 | -------------------------------------------------------------------------------- /Resources/Items/bomb_dead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/bomb_dead.png -------------------------------------------------------------------------------- /Resources/Items/box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/box.png -------------------------------------------------------------------------------- /Resources/Items/box_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/box_1.png -------------------------------------------------------------------------------- /Resources/Items/cloud1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/cloud1.png -------------------------------------------------------------------------------- /Resources/Items/cloud2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/cloud2.png -------------------------------------------------------------------------------- /Resources/Items/cloud3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/cloud3.png -------------------------------------------------------------------------------- /Resources/Items/coin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/coin.png -------------------------------------------------------------------------------- /Resources/Items/door.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/door.png -------------------------------------------------------------------------------- /Resources/Items/door_openMid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/door_openMid.png -------------------------------------------------------------------------------- /Resources/Items/door_openTop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/door_openTop.png -------------------------------------------------------------------------------- /Resources/Items/spikes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/spikes.png -------------------------------------------------------------------------------- /Resources/Items/springboardDown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/springboardDown.png -------------------------------------------------------------------------------- /Resources/Items/springboardDown_ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/springboardDown_ok.png -------------------------------------------------------------------------------- /Resources/Items/springboardUp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Items/springboardUp.png -------------------------------------------------------------------------------- /Resources/Missile.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | Missile0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{86,58},{21,26}} 13 | spriteOffset 14 | {-41,-33} 15 | spriteSize 16 | {107,84} 17 | spriteSourceSize 18 | {21,26} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{93,90},{21,26}} 23 | textureRotated 24 | 25 | 26 | Missile0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{72,38},{35,46}} 32 | spriteOffset 33 | {-31,-25} 34 | spriteSize 35 | {107,84} 36 | spriteSourceSize 37 | {35,46} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{72,159},{35,46}} 42 | textureRotated 43 | 44 | 45 | Missile0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{41,34},{66,50}} 51 | spriteOffset 52 | {-21,-17} 53 | spriteSize 54 | {107,84} 55 | spriteSourceSize 56 | {66,50} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{3,159},{66,50}} 61 | textureRotated 62 | 63 | 64 | Missile0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{20,18},{87,66}} 70 | spriteOffset 71 | {-10,-9} 72 | spriteSize 73 | {107,84} 74 | spriteSourceSize 75 | {87,66} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{3,90},{87,66}} 80 | textureRotated 81 | 82 | 83 | Missile0004 84 | 85 | aliases 86 | 87 | sourceColorRect 88 | {{0,0},{107,84}} 89 | spriteOffset 90 | {0,0} 91 | spriteSize 92 | {107,84} 93 | spriteSourceSize 94 | {107,84} 95 | spriteTrimmed 96 | 97 | textureRect 98 | {{3,3},{107,84}} 99 | textureRotated 100 | 101 | 102 | 103 | metadata 104 | 105 | format 106 | 3 107 | size 108 | {128,218} 109 | target 110 | 111 | name 112 | Missile.png 113 | textureFileName 114 | Missile 115 | textureFileExtension 116 | png 117 | premultipliedAlpha 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /Resources/Missile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Missile.png -------------------------------------------------------------------------------- /Resources/Monster.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | Hero0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{46,99}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {46,99} 17 | spriteSourceSize 18 | {46,99} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{46,99}} 23 | textureRotated 24 | 25 | 26 | Hero0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{1,0},{45,99}} 32 | spriteOffset 33 | {-1,0} 34 | spriteSize 35 | {46,99} 36 | spriteSourceSize 37 | {45,99} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{52,3},{45,99}} 42 | textureRotated 43 | 44 | 45 | Hero0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{1,1},{45,98}} 51 | spriteOffset 52 | {-1,-1} 53 | spriteSize 54 | {46,99} 55 | spriteSourceSize 56 | {45,98} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{3,105},{45,98}} 61 | textureRotated 62 | 63 | 64 | Hero0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{46,99}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {46,99} 74 | spriteSourceSize 75 | {46,99} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{3,3},{46,99}} 80 | textureRotated 81 | 82 | 83 | 84 | metadata 85 | 86 | format 87 | 3 88 | size 89 | {128,207} 90 | target 91 | 92 | name 93 | Hero.png 94 | textureFileName 95 | Hero 96 | textureFileExtension 97 | png 98 | premultipliedAlpha 99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /Resources/Monster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Monster.png -------------------------------------------------------------------------------- /Resources/MonsterDie.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | frames 6 | 7 | HeroDie0000 8 | 9 | aliases 10 | 11 | sourceColorRect 12 | {{0,0},{76,109}} 13 | spriteOffset 14 | {0,0} 15 | spriteSize 16 | {76,109} 17 | spriteSourceSize 18 | {76,109} 19 | spriteTrimmed 20 | 21 | textureRect 22 | {{3,3},{76,109}} 23 | textureRotated 24 | 25 | 26 | HeroDie0001 27 | 28 | aliases 29 | 30 | sourceColorRect 31 | {{0,0},{76,109}} 32 | spriteOffset 33 | {0,0} 34 | spriteSize 35 | {76,109} 36 | spriteSourceSize 37 | {76,109} 38 | spriteTrimmed 39 | 40 | textureRect 41 | {{82,3},{76,109}} 42 | textureRotated 43 | 44 | 45 | HeroDie0002 46 | 47 | aliases 48 | 49 | sourceColorRect 50 | {{0,0},{76,109}} 51 | spriteOffset 52 | {0,0} 53 | spriteSize 54 | {76,109} 55 | spriteSourceSize 56 | {76,109} 57 | spriteTrimmed 58 | 59 | textureRect 60 | {{161,3},{76,109}} 61 | textureRotated 62 | 63 | 64 | HeroDie0003 65 | 66 | aliases 67 | 68 | sourceColorRect 69 | {{0,0},{76,109}} 70 | spriteOffset 71 | {0,0} 72 | spriteSize 73 | {76,109} 74 | spriteSourceSize 75 | {76,109} 76 | spriteTrimmed 77 | 78 | textureRect 79 | {{3,115},{76,109}} 80 | textureRotated 81 | 82 | 83 | HeroDie0004 84 | 85 | aliases 86 | 87 | sourceColorRect 88 | {{0,0},{76,109}} 89 | spriteOffset 90 | {0,0} 91 | spriteSize 92 | {76,109} 93 | spriteSourceSize 94 | {76,109} 95 | spriteTrimmed 96 | 97 | textureRect 98 | {{82,115},{76,109}} 99 | textureRotated 100 | 101 | 102 | 103 | metadata 104 | 105 | format 106 | 3 107 | size 108 | {256,256} 109 | target 110 | 111 | name 112 | HeroDie.png 113 | textureFileName 114 | HeroDie 115 | textureFileExtension 116 | png 117 | premultipliedAlpha 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /Resources/MonsterDie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/MonsterDie.png -------------------------------------------------------------------------------- /Resources/MonsterMap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/MonsterMap.png -------------------------------------------------------------------------------- /Resources/Tiles/boxAlt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/boxAlt.png -------------------------------------------------------------------------------- /Resources/Tiles/grassCenter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/grassCenter.png -------------------------------------------------------------------------------- /Resources/Tiles/grassHalf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/grassHalf.png -------------------------------------------------------------------------------- /Resources/Tiles/grassHalfLeft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/grassHalfLeft.png -------------------------------------------------------------------------------- /Resources/Tiles/grassHalfMid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/grassHalfMid.png -------------------------------------------------------------------------------- /Resources/Tiles/grassHalfRight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/grassHalfRight.png -------------------------------------------------------------------------------- /Resources/Tiles/grassMid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/grassMid.png -------------------------------------------------------------------------------- /Resources/Tiles/some-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/some-a.png -------------------------------------------------------------------------------- /Resources/Tiles/some.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/some.png -------------------------------------------------------------------------------- /Resources/Tiles/tiles_spritesheet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/Tiles/tiles_spritesheet.png -------------------------------------------------------------------------------- /Resources/UI/ABOUT/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/ABOUT/about.png -------------------------------------------------------------------------------- /Resources/UI/FINISH/redBk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/FINISH/redBk.png -------------------------------------------------------------------------------- /Resources/UI/GAME/bk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/bk.png -------------------------------------------------------------------------------- /Resources/UI/GAME/down_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/down_back.png -------------------------------------------------------------------------------- /Resources/UI/GAME/down_break.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/down_break.png -------------------------------------------------------------------------------- /Resources/UI/GAME/down_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/down_home.png -------------------------------------------------------------------------------- /Resources/UI/GAME/next1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/next1.png -------------------------------------------------------------------------------- /Resources/UI/GAME/next2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/next2.png -------------------------------------------------------------------------------- /Resources/UI/GAME/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/pause.png -------------------------------------------------------------------------------- /Resources/UI/GAME/pause_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/pause_button.png -------------------------------------------------------------------------------- /Resources/UI/GAME/up_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/up_back.png -------------------------------------------------------------------------------- /Resources/UI/GAME/up_break.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/up_break.png -------------------------------------------------------------------------------- /Resources/UI/GAME/up_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/GAME/up_home.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/LEVEL_UI_DOWN_0000s_0000_BACK_BUTTON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/LEVEL_UI_DOWN_0000s_0000_BACK_BUTTON.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/LEVEL_UI_UP_0000s_0000_BACK_BUTTON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/LEVEL_UI_UP_0000s_0000_BACK_BUTTON.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/LEVEL_UI_UP_0000s_0001_LOGO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/LEVEL_UI_UP_0000s_0001_LOGO.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/LEVEL_UI_UP_0000s_0002_BK.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/LEVEL_UI_UP_0000s_0002_BK.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_1_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_1_down.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_1_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_1_up.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_2_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_2_down.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_2_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_2_up.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_3_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_3_down.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_3_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_3_up.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_4_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_4_down.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_4_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_4_up.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_5_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_5_down.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_5_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_5_up.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_6_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_6_down.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_6_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_6_up.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_7_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_7_down.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_7_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_7_up.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_8_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_8_down.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_8_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_8_up.png -------------------------------------------------------------------------------- /Resources/UI/LEVEL/button_not_level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/LEVEL/button_not_level.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_DOWN_0000_setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_DOWN_0000_setting.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_DOWN_0002_...-.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_DOWN_0002_...-.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_DOWN_0002_....png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_DOWN_0002_....png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_DOWN_0003__.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_DOWN_0003__.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_DOWN_0004_LeftFoot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_DOWN_0004_LeftFoot.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_DOWN_0005_BAD-GAME.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_DOWN_0005_BAD-GAME.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_DOWN_0006_StartButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_DOWN_0006_StartButton.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_UP_0000_setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_UP_0000_setting.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_UP_0002_....png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_UP_0002_....png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_UP_0003__.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_UP_0003__.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_UP_0004_LeftFoot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_UP_0004_LeftFoot.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_UP_0005_BAD-GAME.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_UP_0005_BAD-GAME.png -------------------------------------------------------------------------------- /Resources/UI/START/START_UI_UP_0006_StartButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/START_UI_UP_0006_StartButton.png -------------------------------------------------------------------------------- /Resources/UI/START/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/background.png -------------------------------------------------------------------------------- /Resources/UI/START/exit1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/exit1.png -------------------------------------------------------------------------------- /Resources/UI/START/exit2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/exit2.png -------------------------------------------------------------------------------- /Resources/UI/START/msg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/msg1.png -------------------------------------------------------------------------------- /Resources/UI/START/msg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/msg2.png -------------------------------------------------------------------------------- /Resources/UI/START/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/UI/START/share.png -------------------------------------------------------------------------------- /Resources/bbb/level_1.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | eJzt2SEOgDAUBcFy/0sjKkgNSQV0xUyCf1nMD4wBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMF2Bh8fpHt7JqtCisKGi0KKwoaLQorChotCisKHi79vJjfWu0KKwoaLQorChotCisKGi0KKwoaLQorCh4ssWOzcXU6FFYUNFoUVhQ0WhRWFDRaFFYUNFoUVhQ0WhRWFDxel/tb4nrm7RHwCL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Resources/bbb/level_2.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | eJzt2SEOgDAUBcFy/0sjKkgNSQV0xUyCf1nMD4wBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMF2Bh8fpHt7JqtCisKGi0KKwoaLQorChotCisKHi79vJjfWu0KKwoaLQorChotCisKGi0KKwoaLQorCh4ssWOzcXU6FFYUNFoUVhQ0WhRWFDRaFFYUNFoUVhQ0WhRWFDxel/tb4nrm7RHwCL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Resources/bbb/level_3.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | eJzt2SEOgDAUBcFy/0sjKkgNSQV0xUyCf1nMD4wBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMF2Bh8fpHt7JqtCisKGi0KKwoaLQorChotCisKHi79vJjfWu0KKwoaLQorChotCisKGi0KKwoaLQorCh4ssWOzcXU6FFYUNFoUVhQ0WhRWFDRaFFYUNFoUVhQ0WhRWFDxel/tb4nrm7RHwCL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Resources/bbb/level_4.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | eJzt2SEOgDAUBcFy/0sjKkgNSQV0xUyCf1nMD4wBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMF2Bh8fpHt7JqtCisKGi0KKwoaLQorChotCisKHi79vJjfWu0KKwoaLQorChotCisKGi0KKwoaLQorCh4ssWOzcXU6FFYUNFoUVhQ0WhRWFDRaFFYUNFoUVhQ0WhRWFDxel/tb4nrm7RHwCL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Resources/bbb/level_5.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | eJzt2SEOgDAUBcFy/0sjKkgNSQV0xUyCf1nMD4wBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMF2Bh8fpHt7JqtCisKGi0KKwoaLQorChotCisKHi79vJjfWu0KKwoaLQorChotCisKGi0KKwoaLQorCh4ssWOzcXU6FFYUNFoUVhQ0WhRWFDRaFFYUNFoUVhQ0WhRWFDxel/tb4nrm7RHwCL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Resources/bbb/level_6.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | eJzt2SEOgDAUBcFy/0sjKkgNSQV0xUyCf1nMD4wBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMF2Bh8fpHt7JqtCisKGi0KKwoaLQorChotCisKHi79vJjfWu0KKwoaLQorChotCisKGi0KKwoaLQorCh4ssWOzcXU6FFYUNFoUVhQ0WhRWFDRaFFYUNFoUVhQ0WhRWFDxel/tb4nrm7RHwCL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Resources/bbb/level_7.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | eJzt2SEOgDAUBcFy/0sjKkgNSQV0xUyCf1nMD4wBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMF2Bh8fpHt7JqtCisKGi0KKwoaLQorChotCisKHi79vJjfWu0KKwoaLQorChotCisKGi0KKwoaLQorCh4ssWOzcXU6FFYUNFoUVhQ0WhRWFDRaFFYUNFoUVhQ0WhRWFDxel/tb4nrm7RHwCL 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Resources/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | setting_pause_x 480 7 | setting_pause_y 420 8 | setting_back_x 300 9 | setting_back_y 150 10 | setting_home_x 480 11 | setting_home_y 150 12 | setting_break_x 670 13 | setting_break_y 150 14 | 15 | bk_ratio_x 0.5 16 | bk_ratio_y 0.8 17 | 18 | hud_pause_bt_x 890 19 | hud_pause_bt_y 50 20 | hud_hp_x 50 21 | hud_hp_y 50 22 | hud_coin_x 700 23 | hud_coin_y 50 24 | 25 | hud_but_width 157 26 | hud_but_left_x 20 27 | hud_but_left_y 20 28 | hud_but_right_x 207 29 | hud_but_right_y 20 30 | hud_but_A_x 596 31 | hud_but_A_y 20 32 | hud_but_B_x 783 33 | hud_but_B_y 20 34 | 35 | number version: 1_3_0_RC 36 | share_content 《烂游戏》现已添加怪物、更新关卡!————更刺激!更好玩! 37 | share_picture http://image16-c.poco.cn/mypoco/myphoto/20140928/18/17537972320140928180559058.png?108x108_130 38 | share_websize http://zhushou.360.cn/detail/index/soft_id/2085805/ 39 | 40 | start_scene_about_button_y 135 41 | start_scene_more_button_y 320 42 | start_scene_setting_button_y 500 43 | 44 | start_scene_exit_button_x 900 45 | start_scene_exit_button_y 60 46 | 47 | start_scene_msg_button_x 900 48 | start_scene_msg_button_y 180 49 | 50 | start_scene_logo_y 500 51 | start_scene_start_button_y 200 52 | 53 | level_scene_back_button_x 101 54 | level_scene_back_button_y 559 55 | level_scene_logo_y 513 56 | 57 | 58 | level_scene_button_1_x 206 59 | level_scene_button_1_y 316 60 | level_scene_button_2_x 389 61 | level_scene_button_2_y 316 62 | level_scene_button_3_x 571 63 | level_scene_button_3_y 316 64 | level_scene_button_4_x 754 65 | level_scene_button_4_y 316 66 | 67 | level_scene_button_5_x 206 68 | level_scene_button_5_y 132 69 | level_scene_button_6_x 389 70 | level_scene_button_6_y 132 71 | level_scene_button_7_x 571 72 | level_scene_button_7_y 132 73 | level_scene_button_8_x 754 74 | level_scene_button_8_y 132 75 | 76 | finish_scence_coin_x 420 77 | finish_scence_coin_y 370 78 | finish_scence_num_x 480 79 | finish_scence_num_y 370 80 | finish_scence_next_x 480 81 | finish_scence_next_y 120 82 | 83 | -------------------------------------------------------------------------------- /Resources/fl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/fl.png -------------------------------------------------------------------------------- /Resources/fonts/Marker Felt.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/fonts/Marker Felt.ttf -------------------------------------------------------------------------------- /Resources/fonts/font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/fonts/font.ttf -------------------------------------------------------------------------------- /Resources/level_1.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | eJzt0sEKgCAMgGEhukloh97/UUNwF3GbKR6C/wMJ3NocGgIAAAAAzMtO/Fb2j/o9nXgvx+u5U1L2vXlmZaOnxFfrW6zeOySn5+p5yv9l5vZdPp36khPrGhGbdTl5I/NqdyT1255fzgv8xQtsOwJc 18 | 19 | 20 | 21 | 22 | eJxjYBgFo2AUjIJRMApGwSgYBaNgFAw1IDTQDqACYEHChORxqRlMgF5uHQphMZwBBxRjA0IMmHkTnS9MhB1iJKjFZQ8IsI0wzDiKhzUGACwVArM= 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /Resources/level_2.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | eJzt1MEKABAMxvE9AlPe/1GdlGgtBxn9fxc1pu8wRAAAAABEUo26DqsaZ6J5KStW+XaAQ/pMlqmexH5/Y9/unpfF6vX+Au9e4CcNBYoBTw== 18 | 19 | 20 | 21 | 22 | eJztk+EKgCAMhBda9NPwT73/i6agIMMsR2jkfXAo3IY7mEQAAAAAAAB8n633AA2wyd10m6Idykk7zZTPG/1YI2EX9klI89zh80p3WoeT96uHb/fAUP1O83xv/YmjonYNKnnc9zuX5uW+pTw8n2G1pVmuMi2DaYJ+rROKjAPU 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /Resources/level_3.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | eJzt1NEKgCAMheE9gIQZFL3/i5aQMMyg2Myb/wNvZJ1NSEUAAAAAAH9IowcYaO2UO3fKtfKYy5IRHfrXPM7kMZclI3/r+c9s8m2efA9a70DJWNTedK7wIjNctVFlLw+1qepf6qLcz1HubFBL59Q9dF0rL9sb8wCwOwBfKAK+ 18 | 19 | 20 | 21 | 22 | eJzt0DsKwCAQAFGFIBYpgo33v2lSWCxh/RHIKsyDaVRY1TkAAAAAAGwcot5+7cyO/npT718tZKO5qzpL12s9PUWRFBt72rkvRuZodxqdG0jNE010AwM+Az4= 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /Resources/level_4.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | eJzt1MEKgCAQRVFXrSQso+j/f7SEhMEUhEYMvAfcxPQcFcYYAAAAAACAcWy9G8DvrL0bGNDeKHepqBlpBtTcR8sMp7B/SuNMPbIDjfv4khH+1TzjYdq8caTVb5g3uTkfe/fi23wvW5Fpn1onsn2hdk32j3XOvO8vzkYrlsxJ95B1ubzgzPSTqpmLpXx8N3VaAMou/eAEAA== 18 | 19 | 20 | 21 | 22 | eJzt1rEKgDAMRdEKIg4OooP4/z8qQocSqIloWzT3wEOsAYtvsCEAAAAAAABgab0BpwYlqKtTUlqfRHuem/mT0n3U+pZan1/xRh9bma259KSPKWYW6+dZYEySyq1LlhnN3XdZ563WeL06G+3i3tKH9s/3mla0zgjxnAPXWAQa 23 | 24 | 25 | 26 | 27 | eJzt0zEKwCAQBEAhCBYhpeD/P6qFhQaLFAETmIGFg222uRAAAAAAANbK7gFMjpa4ewR8hH94Xx7u85aVq3fpQQD+ogLkBADS 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Resources/level_8.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | eJzt1GELgjAQxnFfRUSEpfRqfv+vmcINRLa6m5sn8f/BkcRtrnvSrgMAAAAAAABwtMn7AAmj9wEchUb7euf8dL5/qVZ5tNpXY8mil+vB8RyR5b9pmVurfWvrpW5S35Q8R9ZnP85Cs+7X3NZ7WGZ8hjy0vVbW3xY2nzmToidkrrVnyKnxfn/P9Up8H/NY3lVXqcdc91XPKOv35KF9TrR5BGVPvHfNPErmcBba+Vr7LXloelPrci47y9M/5gEAgIcPQx8IAQ== 18 | 19 | 20 | 21 | 22 | eJzt1bEOQDAYhVEWaUQMRt7/PRkM0pCqCh3OSb6t03+HNg0AAAAAwLUp420fxXNdIr7VJuJb9qiLPerydI9xa9iLhT3OhaijO3uk/vycKJfaLKdFr96ztFm/b2APe9Rc6Q2pywrzvByQ 23 | 24 | 25 | 26 | 27 | eJzt1qEKACEQBFBBBINc8f//VQ0Gw8GFgzW8B9OnLDspAQAAAAC8azNPdAm4UI8uwCHPlOgScAn3EGf/hrWd1oaqHwIAwL8GWhQAsw== 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /Resources/load.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 1 Hero/hero_walk_right.plist 7 | 2 Hero/hero_walk_left.plist 8 | 3 Hero/hero_stop.plist 9 | 4 Hero/hero_dead.plist 10 | 11 | 5 Hero.plist 12 | 6 HeroDie.plist 13 | 14 | 7 Monster.plist 15 | 8 MonsterDie.plist 16 | 17 | 9 Bird.plist 18 | 10 BirdFly.plist 19 | 20 | 11 Enemies/fly01_fly_left.plist 21 | 12 Enemies/fly01_fly_right.plist 22 | 13 Enemies/fly01_dead.plist 23 | 24 | 14 Missile.plist 25 | 26 | 15 Coin.plist 27 | 28 | 16 ArticleBomb.plist 29 | 30 | 17 Items/bomb_dead.plist 31 | 32 | 18 Enemies/slime_walk_left.plist 33 | 19 Enemies/slime_walk_right.plist 34 | 20 Enemies/slime_dead.plist 35 | 36 | 37 | -------------------------------------------------------------------------------- /Resources/miss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/miss.png -------------------------------------------------------------------------------- /Resources/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/Resources/share.png -------------------------------------------------------------------------------- /Resources/text.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | finish_text_y 500 7 | 8 | s1 生和死是无法挽回的,唯有享受其间的一段时光 9 | s2 活在活着的人的心里,就是没有死去 10 | s3 谁怕死,谁就已经不再活着 11 | 12 | h1 当你希望成功,当以恒心为良友 13 | h2 不是因有了机会才争取,而是因争取了才有机会 14 | h3 生命只有一次,我们要抓住这唯一的机会 15 | 16 | 17 | 18 | bad_game_en_y 590 19 | bad_game_en Bad Game 20 | 21 | bad_game_ch_y 550 22 | bad_game_ch 烂游戏 23 | 24 | make_by_en_y 470 25 | make_by_en Game Producer: 田伟汉 26 | 27 | twitter_y 380 28 | twitter Twitter: @wilhan.tian 29 | 30 | weibo_y 320 31 | weibo Weibo: @棌棌棌棌棌厷 32 | 33 | email_y 260 34 | email E·mail: wilhan.tian@gmail.com 35 | 36 | web_size_y 200 37 | web_size WebSite: www.pxbomb.com 38 | 39 | some_word_ch_y 90 40 | some_word_ch 本人学生党,没技术、没美工,自(yong)娱(lai)自(zhuang)乐(Bi)的东西,大家懂得~ 41 | 42 | -------------------------------------------------------------------------------- /_image/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/_image/1.png -------------------------------------------------------------------------------- /_image/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/_image/2.png -------------------------------------------------------------------------------- /_image/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/_image/5.png -------------------------------------------------------------------------------- /_image/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wilhantian/BadGame/d54895127dee7c6150841c7e42b021fb79ff77a7/_image/6.png --------------------------------------------------------------------------------