cocos / example-projects Goto Github PK
View Code? Open in Web Editor NEWExample project to guide users through how to create game with Cocos Creator
Example project to guide users through how to create game with Cocos Creator
参考 Cocos2d-x 的测试例,增加 getSafeArea 的使用范例
API 从 2.0 修改了,现在是 cocos/engine-native#1502
ReferenceError: dragonBones is not defined
at Object.require.DragonBonesCtrl: "requireComponent: dragonBones.ArmatureDisplay" (assets/cases/dragonbones/DragonBonesCtrl.js:20:8)
at s (../../../../../../Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/browser-pack/_prelude.js:1)
at e (../../../../../../Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/browser-pack/_prelude.js:1)
at file:///Users/footprint/Downloads/example-cases-master/library/bundle.project.js?001:1:451
12-12 10:02:03.773 642 676 E InputDispatcher: channel '960d932 org.cocos2d.examplecases/org.cocos2dx.javascript.AppActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
目前是手动同步的,其实 TestList 中的背景色已经调整过了。不过其它范例都没变,要一个一个改过去吗…… 疯了。还是用自动同步吧,这样以后换背景的时候就不用重新设置。
提交到 v2.0,记得提交后提醒所有人更新一下仓库,免得造成冲突
合并场景
新建项目时候有这个项目,但在本地并不知道怎么跑起来--
i just clone and open, then get warning
Script attached to "mask" in scene "TestList.fire" is missing or invalid. Detailed information:
Node path: "Menu/readme/mask"
Asset url: "db://assets/TestList.fire"
TypeError: Cannot read property 'LineJoin' of undefined
at Object.require.linejoin: "let LineJoin = cc.Graphics.LineJoin" (assets/cases/graphics/example/linejoin.js:1)
at s (../../../../../../Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/browser-pack/_prelude.js:1)
at e (../../../../../../Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/browser-pack/_prelude.js:1)
at file:///Users/lianghangbing/CocosJsProj/example-cases/library/bundle.project.js?001:1:451
with this changes, cocos/engine-native#1352
those below should be removed for ant project and binary template removed
Since only one file AppActivity.java
existed at build-templates dir, don't need to put both copy into jsb-default and jsb-link. Only one file, one copy is ok. copy it into different dir when build
please check this @jareguo
Most cases links in the readme are broken.
Require:
Reference:
https://vercel.com/design/snippet
Originally posted by @AntoineKM in tonightpass/kitchn#95
程序报错,跑不起来
Cannot read property 'loadRes' of undefined
想学习下3.x的用法
please add a example about camere
Hi!
I only found this old documentation on how to import spine animation:
https://github.com/cocos-creator/deprecated-examples/blob/master/guides/components/spine_skeleton.md
Is this now officially supported?
I found spineBoy png, json and atlas file in this repository, is this a valid and working example now (beginning fo 2019)
Thank you @nantas @walzer @pandamicro @zilongshanren
It's going to be like subway surfers like the picture of the film Max steel their is going to be steel their and beast their
如示例 03_gameplay/OnTouchCtrl.js 中有关二维向量的函数
when example-cases build native project, it used the template of cocos2d-x-lite, not those.
如果全屏状态, 无法暂停.
if (event === cc.VideoPlayer.EventType.CLICKED) {
if (!this.videoPlayer.isFullscreen) { // <------ 需要加此判断
if (this.videoPlayer.isPlaying()) {
this.videoPlayer.pause();
} else {
this.videoPlayer.play();
}
}
}
每个平台截屏方法可能不一样。
需要对原生、小游戏、Web 平台分别开发。
开发完后,修改 FAQ 里的这部分内容,引导用户直接看范例
有登录界面
进去后就是聊天界面
It is convenient for users to view cases online.
How about deploying example-cases to gh-pages?
downloader.js:70 GET http://localhost:7456/preview-scripts/assets/cases/anysdk/08_adtracking/AdTracking.js 0 ()
Examples not working properly.
想实现截图功能,用到这里的案例,但是报 texture.initWithSize is not a function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.