ccc 碰撞初步

cc.Class({
extends: cc.Component, properties: { }, // use this for initialization
onLoad: function () {
var manager=cc.director.getCollisionManager();
manager.enabled=true;
manager.enabledDebugDraw = true;
manager.enabledDrawBoundingBox = true; }, onCollisionEnter: function (other, self) {
console.log('on collision enter'); }, // called every frame, uncomment this function to activate update callback
// update: function (dt) { // },
});
上一篇:SQL Server存储过程中防止线程重入处理方式


下一篇:java – Android 2D游戏简单引擎或框架