#/****************************************************************************
# Copyright (c) 2014 Chukong Technologies Inc.
#
# http://www.cocos2d-x.org
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# ****************************************************************************/
set(APP_NAME js-tests)
if(WIN32)
else()
set(PLATFORM_SRC
project/proj.linux/main.cpp
)
endif()
set(SAMPLE_SRC
project/Classes/AppDelegate.cpp
${PLATFORM_SRC}
)
include_directories(
project/Classes
../../frameworks/js-bindings/bindings/auto
../../frameworks/js-bindings/bindings/manual
../../frameworks/js-bindings/cocos2d-x/cocos/base
)
# add the executable
add_executable(${APP_NAME}
${SAMPLE_SRC}
)
target_link_libraries(${APP_NAME}
jsb_spine
spine
jsb_studio
cocostudio
jsb_builder
cocosbuilder
jsb_chipmunk
chipmunk_static
jsb_extension
extensions
audio
jsb_localstorage
jsb_network
jsb_ui
jsbinding
cocos2d
js_static
)
set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin/${APP_NAME}")
set_target_properties(${APP_NAME} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${APP_BIN_DIR}")
pre_build(${APP_NAME}
COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}/script
COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}/res
COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}/src
COMMAND ${CMAKE_COMMAND} -E remove ${APP_BIN_DIR}/*.js
COMMAND ${CMAKE_COMMAND} -E remove ${APP_BIN_DIR}/*.json
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/res ${APP_BIN_DIR}/res
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/src ${APP_BIN_DIR}/src
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../../frameworks/js-bindings/bindings/script ${APP_BIN_DIR}/script
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/main.js ${APP_BIN_DIR}/main.js
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/project.json ${APP_BIN_DIR}/project.json
)
没有合适的资源?快使用搜索试试~ 我知道了~
Cocos2d-JS---demo
共1041个文件
png:535个
js:151个
plist:82个
5星 · 超过95%的资源 需积分: 33 237 下载量 62 浏览量
2014-09-19
16:49:43
上传
评论 1
收藏 41.23MB ZIP 举报
温馨提示
Cocos2d-JS---demo 放在服务器上就可以直接预览了,本地打开是黑屏,Cocos2d-JS的方法及效果的演示
资源推荐
资源详情
资源评论
收起资源包目录
Cocos2d-JS---demo (1041个子文件)
spineboy.atlas 2KB
HelloCocosBuilder.ccb 88KB
TestAnimations.ccb 88KB
TestSprites.ccb 37KB
TestMenus.ccb 25KB
TestParticleSystems.ccb 24KB
TestButtons.ccb 21KB
TestLabels.ccb 20KB
TestTimelineCallback.ccb 18KB
TestHeader.ccb 14KB
TestScrollViews.ccb 11KB
TestAnimationsSub.ccb 9KB
TestScrollViewsContentA.ccb 4KB
HelloCocosBuilder.ccbi 3KB
TestAnimations.ccbi 3KB
TestSprites.ccbi 2KB
TestButtons.ccbi 1KB
TestLabels.ccbi 1KB
TestParticleSystems.ccbi 1KB
TestMenus.ccbi 1KB
TestTimelineCallback.ccbi 907B
TestHeader.ccbi 815B
TestScrollViews.ccbi 587B
TestAnimationsSub.ccbi 345B
TestScrollViewsContentA.ccbi 230B
CocosBuilderExample.ccbproj 2KB
.classpath 469B
AppDelegate.cpp 5KB
main.cpp 1KB
main.cpp 739B
main.cpp 519B
main.cpp 193B
NewProject_2_1.csb 2KB
shCore.css 7KB
shThemeEclipse.css 4KB
shThemeDefault.css 3KB
shThemeFadeToGrey.css 3KB
shThemeRDark.css 3KB
shThemeMidnight.css 3KB
shThemeDjango.css 3KB
shThemeEmacs.css 3KB
test.css 3KB
Courier New.eot 693KB
ThonburiBold.eot 250KB
Thonburi.eot 218KB
Schwarzwald_Regular.eot 48KB
HeroAnimation.ExportJson 157KB
Cowboy.ExportJson 105KB
Cowboy.ExportJson 105KB
Cocostudio1_5_1.ExportJson 100KB
Cocostudio1_4_1.ExportJson 91KB
CocostudioV1_3_1.ExportJson 73KB
bear.ExportJson 46KB
testEasing.ExportJson 40KB
hero.ExportJson 38KB
horse.ExportJson 25KB
Butterflyfish.ExportJson 13KB
Butterflyfish.ExportJson 13KB
Butterflyfish.ExportJson 13KB
Butterflyfish.ExportJson 13KB
100.ExportJson 7KB
Blowfish.ExportJson 7KB
Blowfish.ExportJson 7KB
Blowfish.ExportJson 7KB
Blowfish.ExportJson 7KB
starMenuButton.ExportJson 4KB
NewProject_2_1.ExportJson 4KB
js-tests.vcxproj.filters 1KB
markerFelt-hd.fnt 142KB
markerFelt.fnt 142KB
markerfelt24shadow.fnt 141KB
bitmapFontChinese.fnt 25KB
missing-font.fnt 25KB
missing-font.fnt 25KB
missing-font.fnt 25KB
missing-font.fnt 25KB
arial16.fnt 21KB
arial-unicode-26.fnt 20KB
bitmapFontTest2.fnt 15KB
bitmapFontTest2.fnt 15KB
futura-48.fnt 12KB
bitmapFontTest4.fnt 11KB
bitmapFontTest.fnt 11KB
bitmapFontTest5.fnt 11KB
bitmapFontTest3.fnt 11KB
konqa32-hd.fnt 11KB
konqa32.fnt 11KB
west_england-64.fnt 9KB
helvetica-32.fnt 9KB
geneva-32.fnt 9KB
font-issue1343-hd.fnt 9KB
font-issue1343.fnt 8KB
example_ColorBars.fsh 1KB
example_Monjori.fsh 1KB
example_Blur.fsh 984B
example_Mandelbrot.fsh 907B
example_Flower.fsh 850B
example_Plasma.fsh 724B
example_Heart.fsh 658B
example_Julia.fsh 657B
共 1041 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
- weihuangyun2176362020-05-09还不错,非常好
- u0101505932018-06-04官网的demo,不错,可以很好的资源
- 我来也哦2016-03-23官网的demo,不错,可以自己研究里面的代码
- 嘿嚯哈2018-12-29很好用谢谢谢
- cicada12672015-05-07官方的Demo文件,可演示Cocos2d-JS各类方法的效果
@木尘
- 粉丝: 41
- 资源: 49
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功