mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
adjust motion streak structure
This commit is contained in:
@@ -24,9 +24,9 @@
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
const RenderComponent = require('../core/components/CCRenderComponent');
|
||||
const renderer = require('../core/renderer');
|
||||
const renderEngine = require('../core/renderer/render-engine');
|
||||
const RenderComponent = require('../components/CCRenderComponent');
|
||||
const renderer = require('../renderer');
|
||||
const renderEngine = require('../renderer/render-engine');
|
||||
const SpriteMaterial = renderEngine.SpriteMaterial;
|
||||
|
||||
/**
|
||||
@@ -51,6 +51,7 @@ var components = [
|
||||
require('./CCToggleGroup'),
|
||||
require('./CCToggle'),
|
||||
require('./CCBlockInputEvents'),
|
||||
require('./CCMotionStreak')
|
||||
];
|
||||
|
||||
// Delay require render components assemblers
|
||||
|
||||
@@ -27,3 +27,4 @@ require('./sprite');
|
||||
require('./mask-assembler');
|
||||
require('./graphics');
|
||||
require('./label');
|
||||
require('./motion-streak');
|
||||
|
||||
+5
-4
@@ -23,10 +23,11 @@
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
const js = require('../core/platform/js');
|
||||
const assembler = require('../core/renderer/assemblers/assembler');
|
||||
const MotionStreak = require('./CCMotionStreak');
|
||||
const renderEngine = require('../core/renderer/render-engine');
|
||||
const js = require('../../platform/js');
|
||||
const assembler = require('../../renderer/assemblers/assembler');
|
||||
const renderEngine = require('../../renderer/render-engine');
|
||||
|
||||
const MotionStreak = require('../../components/CCMotionStreak');
|
||||
|
||||
function Point (point, dir) {
|
||||
this.point = point || cc.v2();
|
||||
@@ -1,27 +0,0 @@
|
||||
/****************************************************************************
|
||||
Copyright (c) 2018 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
http://www.cocos.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated engine source code (the "Software"), a limited,
|
||||
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
|
||||
to use Cocos Creator solely to develop games on your target platforms. You shall
|
||||
not use Cocos Creator software for developing other software or tools that's
|
||||
used for developing games. You are not granted to publish, distribute,
|
||||
sublicense, and/or sell copies of Cocos Creator.
|
||||
|
||||
The software or tools in this License Agreement are licensed, not sold.
|
||||
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
|
||||
|
||||
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.
|
||||
****************************************************************************/
|
||||
|
||||
require('./CCMotionStreak');
|
||||
require('./motion-streak-assembler');
|
||||
@@ -36,7 +36,6 @@ else {
|
||||
require('./cocos2d/tilemap');
|
||||
require('./cocos2d/videoplayer/CCVideoPlayer');
|
||||
require('./cocos2d/webview/CCWebView');
|
||||
require('./cocos2d/motion-streak');
|
||||
require('./cocos2d/core/components/CCStudioComponent');
|
||||
require('./extensions/ccpool/CCNodePool');
|
||||
if (!CC_JSB) {
|
||||
|
||||
+2
-1
@@ -172,7 +172,8 @@
|
||||
{
|
||||
"name": "MotionStreak",
|
||||
"entries": [
|
||||
"./cocos2d/motion-streak/index.js"
|
||||
"./cocos2d/core/components/motion-streak/CCMotionStreak.js",
|
||||
"./cocos2d/core/renderer/assemblers/motion-streak.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user