Commit 83b2f8ea authored by wildfirecode's avatar wildfirecode

1

parent 9a236b7e
No preview for this file type
This diff is collapsed.
import ScillaComponent from 'components/base/ScillaComponent';
import { getRotation, setRotation } from './transformUtils';
export default class Rotation extends ScillaComponent {
onAwake() {
super.onAwake();
}
speed = .5
onUpdate(t) {
super.onUpdate(t);
setRotation(this.entity, getRotation(this.entity) - this.speed);
}
}
{"ver":"1.0.1","uuid":"8a0daba4-280f-4e90-a9b5-5db37460508e","subMetas":{},"type":"script"}
......@@ -12,7 +12,7 @@
<script src="//yun.duiba.com.cn/db_games/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/downloadApp.js"></script>
<script src="//yun.duiba.com.cn/db_games/1561982277/bundle.js"></script>
<script src="//yun.duiba.com.cn/db_games/1562055539/bundle.js"></script>
<script>
setTimeout(function () {
......@@ -25,7 +25,7 @@
}
var options = {
resPath: "//yun.duiba.com.cn/db_games/1561982277/"
resPath: "//yun.duiba.com.cn/db_games/1562055539/"
};
window['shuijf'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
......
......@@ -5,8 +5,8 @@
import {registerDef} from 'scilla'
import component0 from 'components/other/RelativeLayout';
registerDef('components/other/RelativeLayout', component0);
import component0 from 'components/renderer/TextRenderer';
registerDef('components/renderer/TextRenderer', component0);
import component1 from 'components/base/Transform';
registerDef('components/base/Transform', component1);
......@@ -26,11 +26,11 @@ registerDef('components/animation/TouchZoom', component5);
import component6 from 'components/other/FullStageSize';
registerDef('components/other/FullStageSize', component6);
import component7 from 'components/renderer/TextRenderer';
registerDef('components/renderer/TextRenderer', component7);
import component7 from 'components/other/CameraController';
registerDef('components/other/CameraController', component7);
import component8 from 'components/other/CameraController';
registerDef('components/other/CameraController', component8);
import component8 from 'components/other/RelativeLayout';
registerDef('components/other/RelativeLayout', component8);
import component9 from 'components/renderer/TextureRenderer';
registerDef('components/renderer/TextureRenderer', component9);
......@@ -53,29 +53,32 @@ registerDef('./scripts/navigator/SingleSceneNavigator', component14);
import component15 from '../../assets/scripts/scenes/SceneController';
registerDef('./scripts/scenes/SceneController', component15);
import component16 from '../../assets/scripts/popup/Popup';
registerDef('./scripts/popup/Popup', component16);
import component16 from '../../assets/scripts/Rotation';
registerDef('./scripts/Rotation', component16);
import component17 from '../../assets/scripts/api/SampleApi';
registerDef('./scripts/api/SampleApi', component17);
import component17 from '../../assets/scripts/popup/Popup';
registerDef('./scripts/popup/Popup', component17);
import component18 from '../../assets/scripts/scenes/SceneStart';
registerDef('./scripts/scenes/SceneStart', component18);
import component18 from '../../assets/scripts/api/SampleApi';
registerDef('./scripts/api/SampleApi', component18);
import component19 from '../../assets/scripts/game/CustomTextRenderer';
registerDef('./scripts/game/CustomTextRenderer', component19);
import component19 from '../../assets/scripts/scenes/SceneStart';
registerDef('./scripts/scenes/SceneStart', component19);
import component20 from '../../assets/scripts/MainController';
registerDef('./scripts/MainController', component20);
import component20 from '../../assets/scripts/game/CustomTextRenderer';
registerDef('./scripts/game/CustomTextRenderer', component20);
import component21 from '../../assets/scripts/dialogs/AlertDialogContent';
registerDef('./scripts/dialogs/AlertDialogContent', component21);
import component21 from '../../assets/scripts/MainController';
registerDef('./scripts/MainController', component21);
import component22 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component22);
import component22 from '../../assets/scripts/dialogs/AlertDialogContent';
registerDef('./scripts/dialogs/AlertDialogContent', component22);
import component23 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component23);
import component23 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component23);
import component24 from '../../assets/scripts/scenes/Drop';
registerDef('./scripts/scenes/Drop', component24);
import component24 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component24);
import component25 from '../../assets/scripts/scenes/Drop';
registerDef('./scripts/scenes/Drop', component25);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment