Commit 36e428d0 authored by wildfirecode's avatar wildfirecode

1

parent a0191521
No preview for this file type
......@@ -556,6 +556,26 @@
],
"uuid": "1fb25a95-98c0-4f3c-9ae9-e8d4e67adf79"
},
{
"name": "Entity",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 223.63636363636363,
"y": -761.8181818181818,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "./scripts/Rotation",
"properties": {}
}
],
"uuid": "5741c1ee-4664-4f11-b6d7-f84e47373664",
"children": [
{
"name": "musiconbtn",
"components": [
......@@ -566,10 +586,6 @@
"x": 0.3,
"y": 0.3,
"_type_": "scilla/support/Vector2D"
},
"position": {
"x": 223.63636363636363,
"y": -761.8181818181818
}
}
},
......@@ -615,10 +631,6 @@
"x": 0.3,
"y": 0.3,
"_type_": "scilla/support/Vector2D"
},
"position": {
"x": 223.63636363636363,
"y": -761.8181818181818
}
}
},
......@@ -654,6 +666,8 @@
"uuid": "24103cfb-0fa4-4864-a600-262508f5d443",
"disabled": true
}
]
}
],
"disabled": false
},
......
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":"35e19022-2070-4632-b76f-d234e7c2da9d","subMetas":{},"type":"script"}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -9,10 +9,10 @@
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<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/1561967214/bundle.js"></script>
<script src="//yun.duiba.com.cn/db_games/1562055416/bundle.js"></script>
<script> setTimeout(function () {
var loadingEl = document.getElementById('loading'); function onProcess(p) { if (p >= 1) { loadingEl.style.display = 'none'; } }
var options = { resPath: "//yun.duiba.com.cn/db_games/1561967214/" }; window['shuijf'].startup(document.getElementById('gameContainer'), options, onProcess);
var options = { resPath: "//yun.duiba.com.cn/db_games/1562055416/" }; window['shuijf'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
window['COUNT_DOWN_SEC'] = 10;
......
......@@ -5,92 +5,95 @@
import {registerDef} from 'scilla'
import component0 from 'components/renderer/RectRenderer';
registerDef('components/renderer/RectRenderer', component0);
import component0 from 'components/other/CameraController';
registerDef('components/other/CameraController', component0);
import component1 from 'components/base/Transform';
registerDef('components/base/Transform', component1);
import component2 from 'components/renderer/HtmlRenderer';
registerDef('components/renderer/HtmlRenderer', component2);
import component2 from 'components/renderer/TextureRenderer';
registerDef('components/renderer/TextureRenderer', component2);
import component3 from 'components/base/TouchInterrupt';
registerDef('components/base/TouchInterrupt', component3);
import component3 from 'components/animation/TouchZoom';
registerDef('components/animation/TouchZoom', component3);
import component4 from 'components/other/RelativeLayout';
registerDef('components/other/RelativeLayout', component4);
import component4 from 'components/ui/Button';
registerDef('components/ui/Button', component4);
import component5 from 'components/ui/ScrollView';
registerDef('components/ui/ScrollView', component5);
import component5 from 'components/renderer/TextRenderer';
registerDef('components/renderer/TextRenderer', component5);
import component6 from 'components/other/FullStageSize';
registerDef('components/other/FullStageSize', component6);
import component7 from 'components/other/CameraController';
registerDef('components/other/CameraController', component7);
import component7 from 'components/renderer/RectRenderer';
registerDef('components/renderer/RectRenderer', component7);
import component8 from 'components/renderer/TextureRenderer';
registerDef('components/renderer/TextureRenderer', component8);
import component8 from 'components/ui/ScrollView';
registerDef('components/ui/ScrollView', component8);
import component9 from 'components/animation/TouchZoom';
registerDef('components/animation/TouchZoom', component9);
import component9 from 'components/other/RelativeLayout';
registerDef('components/other/RelativeLayout', component9);
import component10 from 'components/ui/Button';
registerDef('components/ui/Button', component10);
import component10 from 'components/base/TouchInterrupt';
registerDef('components/base/TouchInterrupt', component10);
import component11 from 'components/renderer/TextRenderer';
registerDef('components/renderer/TextRenderer', component11);
import component11 from 'components/renderer/HtmlRenderer';
registerDef('components/renderer/HtmlRenderer', component11);
import component12 from '../../assets/scripts/dialogs/RuleDialogContent';
registerDef('./scripts/dialogs/RuleDialogContent', component12);
import component12 from '../../assets/scripts/Rotation';
registerDef('./scripts/Rotation', component12);
import component13 from '../../assets/scripts/scenes/ScenePlay';
registerDef('./scripts/scenes/ScenePlay', component13);
import component14 from '../../assets/scripts/scenes/SceneResult';
registerDef('./scripts/scenes/SceneResult', component14);
import component14 from '../../assets/scripts/scenes/SceneGuide';
registerDef('./scripts/scenes/SceneGuide', component14);
import component15 from '../../assets/scripts/scenes/SceneStart';
registerDef('./scripts/scenes/SceneStart', component15);
import component15 from '../../assets/scripts/scenes/result/RankItem';
registerDef('./scripts/scenes/result/RankItem', component15);
import component16 from '../../assets/scripts/navigator/SingleSceneNavigator';
registerDef('./scripts/navigator/SingleSceneNavigator', component16);
import component16 from '../../assets/scripts/scenes/SceneStart';
registerDef('./scripts/scenes/SceneStart', component16);
import component17 from '../../assets/scripts/scenes/result/RankList';
registerDef('./scripts/scenes/result/RankList', component17);
import component17 from '../../assets/scripts/MainController';
registerDef('./scripts/MainController', component17);
import component18 from '../../assets/scripts/scenes/SceneController';
registerDef('./scripts/scenes/SceneController', component18);
import component18 from '../../assets/scripts/scenes/result/RankList';
registerDef('./scripts/scenes/result/RankList', component18);
import component19 from '../../assets/scripts/popup/Popup';
registerDef('./scripts/popup/Popup', component19);
import component19 from '../../assets/scripts/api/SampleApi';
registerDef('./scripts/api/SampleApi', component19);
import component20 from '../../assets/scripts/api/SampleApi';
registerDef('./scripts/api/SampleApi', component20);
import component20 from '../../assets/scripts/popup/Popup';
registerDef('./scripts/popup/Popup', component20);
import component21 from '../../assets/scripts/scenes/SceneGuide';
registerDef('./scripts/scenes/SceneGuide', component21);
import component21 from '../../assets/scripts/scenes/SceneController';
registerDef('./scripts/scenes/SceneController', component21);
import component22 from '../../assets/scripts/game/CustomTextRenderer';
registerDef('./scripts/game/CustomTextRenderer', component22);
import component22 from '../../assets/scripts/dialogs/RuleDialogContent';
registerDef('./scripts/dialogs/RuleDialogContent', component22);
import component23 from '../../assets/scripts/MainController';
registerDef('./scripts/MainController', component23);
import component23 from '../../assets/scripts/game/CustomTextRenderer';
registerDef('./scripts/game/CustomTextRenderer', component23);
import component24 from '../../assets/scripts/dialogs/AlertDialogContent';
registerDef('./scripts/dialogs/AlertDialogContent', component24);
import component24 from '../../assets/scripts/navigator/SingleSceneNavigator';
registerDef('./scripts/navigator/SingleSceneNavigator', component24);
import component25 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component25);
import component25 from '../../assets/scripts/dialogs/AlertDialogContent';
registerDef('./scripts/dialogs/AlertDialogContent', component25);
import component26 from '../../assets/scripts/dialogs/ScoreDialogContent';
registerDef('./scripts/dialogs/ScoreDialogContent', component26);
import component26 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component26);
import component27 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component27);
import component27 from '../../assets/scripts/dialogs/ScoreDialogContent';
registerDef('./scripts/dialogs/ScoreDialogContent', component27);
import component28 from '../../assets/scripts/Icon';
registerDef('./scripts/Icon', component28);
import component28 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component28);
import component29 from '../../assets/scripts/scenes/result/RankItem';
registerDef('./scripts/scenes/result/RankItem', component29);
import component29 from '../../assets/scripts/Icon';
registerDef('./scripts/Icon', component29);
import component30 from '../../assets/scripts/scenes/SceneResult';
registerDef('./scripts/scenes/SceneResult', component30);
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