雪域轮回吧 关注:10贴子:329
  • 1回复贴,共1

存点资料。

只看楼主收藏回复

01 กันและกัน Gun lae gun 同行(Radio Edit) 作词/作曲:MaDeaw 编曲:Goo 演唱:QFlure 02 Ticket(Day Trip) 作词/作曲:MaDeaw 编曲:Goo,MaDeaw 演唱:MaDeaw 03 รู้สึกบ้างไหม Roo suek barng mhai 你能感受吗(Live) 作词/作曲:Pchy 编曲:MaDeaw 演唱:Pchy 04 เพียงเธอ Pieng ter 只有你 作词:BONZI 作曲:PORNCHAI SRIKRAJON 编曲:MaDeaw 演唱:Pchy 05 กันและกัน Gun lae gun 同行(Acoustic version) 作词/作曲/编曲:MaDeaw 演唱:MaDeaw 06 คืนอันเป็นนิรันดร์ Kuen aun pen niran 永恒的夜晚 作词/作曲/编曲:MaDeaw 演唱:Petch 07 กันและกัน Gun lae gun 同行(Live) 作词/作曲/编曲:MaDeaw 演唱:Pchy 08 รู้สึกบ้างไหม Roo suek barng mhai 你能感受吗(Original Mix) 作词/作曲:Pchy 编曲:MaDeaw 演唱:Pchy 09 เพียงเธอ Pieng ter 只有你(Demo) 作词:BONZI 作曲:PORNCHAI SRIKRAJON 编曲:MaDeaw 演唱:Pchy 10 Bonus track<Ticket(Night Trip)(remix)> 作词/作曲:MaDeaw 编曲:Goo,MaDeaw 演唱:MaDeaw


1楼2013-07-12 12:00回复
    function boxAddBound(box, offset, size) {
    let bound = box.addComponent(cc.PhysicsBoxCollider);
    bound.offset = offset;
    bound.size.width = size.x; bound.size.height = size.y;
    }
    cc.Class({
    extends: cc.Component,
    properties: {
    box_width: 0,
    box_heigth: 0,
    },
    onLoad () {
    // append a bound box
    let boundbox = new cc.Node("boundbox");
    // boundbox.group = "map";
    boundbox.addComponent(cc.RigidBody).type = cc.RigidBodyType.Static; // attach a rigid body to the new node.
    boundbox.enabledContactListener = true;
    // size of box
    let width = this.box_width || this.node.width;
    let height = this.box_height || this.node.height;
    // add right bound
    let offset = cc.p(width/2, 0);
    let size = cc.p(20, height);
    boxAddBound(boundbox, offset, size);
    //add left bound
    offset = cc.p(-width/2, 0);
    boxAddBound(boundbox, offset, size);
    // add top bound
    offset = cc.p(0, height/2);
    size = cc.p(width, 20);
    boxAddBound(boundbox, offset, size);
    //add bottom bound
    offset = cc.p(0, -height/2);
    boxAddBound(boundbox, offset, size);
    //
    boundbox.addComponent(cc.Graphics);
    // attach this node to the scene tree after physics things attached to the node.
    this.node.addChild(boundbox); //attach it to the script related node
    },
    update() {
    var graphics = this.node.getChildByName("boundbox").getComponent(cc.Graphics);
    graphics.clear();
    graphics.circle(100, 200, 10);
    graphics.stroke();
    },
    });
    // let collider = this.node.addComponent(cc.PhysicsCircleCollider);
    // collider.radius = this.node.width / 2;
    // // 开启碰撞检测
    // var mngr = cc.director.getCollisionManager();
    // mngr.enabled = true;
    // mngr.enabledDebugDraw = true;
    // // 开启物理系统
    // var physics = cc.director.getPhysicsManager();
    // physics.enabled = true;
    // physics.debugDrawFlags = cc.PhysicsManager.DrawBits.e_aabbBit || cc.PhysicsManager.DrawBits.e_pairBit;
    // physics.enabledDebugDraw = true;
    // // mouseJoint owned by boundbox, but manage the area of parent of the boundbox
    // let joint = this.node.addComponent(cc.MouseJoint);
    // joint.mouseRegion = this.node;


    2楼2018-06-27 11:20
    回复