(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/js/bullet.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, '3cd87QOUzNMN6Dp5FLroCvT', 'bullet', __filename);
// js/bullet.js

"use strict";

cc.Class({
    extends: cc.Component,

    properties: {},

    ctor: function ctor() {
        this.speed = 1000;
    },


    // onLoad () {},

    start: function start() {},
    update: function update(dt) {

        var vx = this.speed * dt;
        var drgee = -20;
        var radian = drgee * 180 / Math.PI;
        var vy = Math.tan(radian) * vx;

        this.node.rotation = drgee;
        this.node.x += vx;
        this.node.y += vy;
    }
});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=bullet.js.map
        