Commit 36e428d0 authored by wildfirecode's avatar wildfirecode

1

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