Commit 83b2f8ea authored by wildfirecode's avatar wildfirecode

1

parent 9a236b7e
No preview for this file type
...@@ -109,7 +109,8 @@ ...@@ -109,7 +109,8 @@
"Drop": "res|f46e6c22-442d-4e5c-a03f-b1b5a073f5a2", "Drop": "res|f46e6c22-442d-4e5c-a03f-b1b5a073f5a2",
"countTxt": "entity|69f9ed92-756e-4962-a4ad-7513b8f0b41f", "countTxt": "entity|69f9ed92-756e-4962-a4ad-7513b8f0b41f",
"musiconbtn": "entity|69ea9749-a112-4228-931a-413b00818f7a", "musiconbtn": "entity|69ea9749-a112-4228-931a-413b00818f7a",
"musicoffbtn": "entity|0b73e51e-93dc-4080-851f-0b9e37c24e56" "musicoffbtn": "entity|0b73e51e-93dc-4080-851f-0b9e37c24e56",
"musicbtnGroup": "entity|56c05a76-780a-4e7c-aa05-545336b31d55"
}, },
"disabled": false "disabled": false
}, },
...@@ -748,104 +749,6 @@ ...@@ -748,104 +749,6 @@
"children": [], "children": [],
"uuid": "47299b0c-16e5-4ef6-8d9b-5b6b6ad1077d" "uuid": "47299b0c-16e5-4ef6-8d9b-5b6b6ad1077d"
}, },
{
"name": "musiconBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 229.2727272727273,
"y": -756.7121212121212,
"_type_": "scilla/support/Vector2D"
},
"scale": {
"x": 0.3,
"y": 0.3,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"onClick": [
{
"entity": "entity|41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c",
"component": 1,
"method": "onclick_music"
}
],
"disabledRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18",
"upRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18",
"downRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18"
}
}
],
"children": [],
"uuid": "69ea9749-a112-4228-931a-413b00818f7a"
},
{
"name": "musicoffBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 229.2727272727273,
"y": -756.7121212121212,
"_type_": "scilla/support/Vector2D"
},
"scale": {
"x": 0.3,
"y": 0.3,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"onClick": [
{
"entity": "entity|41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c",
"component": 1,
"method": "onclick_music"
}
],
"disabledRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4",
"upRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4",
"downRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4"
}
}
],
"children": [],
"uuid": "0b73e51e-93dc-4080-851f-0b9e37c24e56"
},
{ {
"name": "startBtn", "name": "startBtn",
"components": [ "components": [
...@@ -983,6 +886,117 @@ ...@@ -983,6 +886,117 @@
} }
], ],
"uuid": "69f9ed92-756e-4962-a4ad-7513b8f0b41f" "uuid": "69f9ed92-756e-4962-a4ad-7513b8f0b41f"
},
{
"name": "Entity",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 229.2727272727273,
"y": -756.7121212121212,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "./scripts/Rotation",
"properties": {}
}
],
"uuid": "56c05a76-780a-4e7c-aa05-545336b31d55",
"children": [
{
"name": "musicoffBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"scale": {
"x": 0.3,
"y": 0.3,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"onClick": [
{
"entity": "entity|41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c",
"component": 1,
"method": "onclick_music"
}
],
"disabledRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4",
"upRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4",
"downRes": "res|dc1cb3bf-9d3f-48fe-a99c-49f0d3b42fb4"
}
}
],
"children": [],
"uuid": "0b73e51e-93dc-4080-851f-0b9e37c24e56"
},
{
"name": "musiconBtn",
"components": [
{
"script": "components/base/Transform",
"properties": {
"scale": {
"x": 0.3,
"y": 0.3,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"onClick": [
{
"entity": "entity|41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c",
"component": 1,
"method": "onclick_music"
}
],
"disabledRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18",
"upRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18",
"downRes": "res|06cc951c-e0ac-47b9-a7eb-ce4bd2436f18"
}
}
],
"children": [],
"uuid": "69ea9749-a112-4228-931a-413b00818f7a"
}
],
"disabled": false
} }
], ],
"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":"8a0daba4-280f-4e90-a9b5-5db37460508e","subMetas":{},"type":"script"}
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<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/activity/wwjsjf-20190619/downloadApp.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> <script>
setTimeout(function () { setTimeout(function () {
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
} }
var options = { 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); window['shuijf'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100); }, 100);
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
import {registerDef} from 'scilla' import {registerDef} from 'scilla'
import component0 from 'components/other/RelativeLayout'; import component0 from 'components/renderer/TextRenderer';
registerDef('components/other/RelativeLayout', component0); registerDef('components/renderer/TextRenderer', component0);
import component1 from 'components/base/Transform'; import component1 from 'components/base/Transform';
registerDef('components/base/Transform', component1); registerDef('components/base/Transform', component1);
...@@ -26,11 +26,11 @@ registerDef('components/animation/TouchZoom', component5); ...@@ -26,11 +26,11 @@ registerDef('components/animation/TouchZoom', 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/renderer/TextRenderer'; import component7 from 'components/other/CameraController';
registerDef('components/renderer/TextRenderer', component7); registerDef('components/other/CameraController', component7);
import component8 from 'components/other/CameraController'; import component8 from 'components/other/RelativeLayout';
registerDef('components/other/CameraController', component8); registerDef('components/other/RelativeLayout', component8);
import component9 from 'components/renderer/TextureRenderer'; import component9 from 'components/renderer/TextureRenderer';
registerDef('components/renderer/TextureRenderer', component9); registerDef('components/renderer/TextureRenderer', component9);
...@@ -53,29 +53,32 @@ registerDef('./scripts/navigator/SingleSceneNavigator', component14); ...@@ -53,29 +53,32 @@ registerDef('./scripts/navigator/SingleSceneNavigator', component14);
import component15 from '../../assets/scripts/scenes/SceneController'; import component15 from '../../assets/scripts/scenes/SceneController';
registerDef('./scripts/scenes/SceneController', component15); registerDef('./scripts/scenes/SceneController', component15);
import component16 from '../../assets/scripts/popup/Popup'; import component16 from '../../assets/scripts/Rotation';
registerDef('./scripts/popup/Popup', component16); registerDef('./scripts/Rotation', component16);
import component17 from '../../assets/scripts/api/SampleApi'; import component17 from '../../assets/scripts/popup/Popup';
registerDef('./scripts/api/SampleApi', component17); registerDef('./scripts/popup/Popup', component17);
import component18 from '../../assets/scripts/scenes/SceneStart'; import component18 from '../../assets/scripts/api/SampleApi';
registerDef('./scripts/scenes/SceneStart', component18); registerDef('./scripts/api/SampleApi', component18);
import component19 from '../../assets/scripts/game/CustomTextRenderer'; import component19 from '../../assets/scripts/scenes/SceneStart';
registerDef('./scripts/game/CustomTextRenderer', component19); registerDef('./scripts/scenes/SceneStart', component19);
import component20 from '../../assets/scripts/MainController'; import component20 from '../../assets/scripts/game/CustomTextRenderer';
registerDef('./scripts/MainController', component20); registerDef('./scripts/game/CustomTextRenderer', component20);
import component21 from '../../assets/scripts/dialogs/AlertDialogContent'; import component21 from '../../assets/scripts/MainController';
registerDef('./scripts/dialogs/AlertDialogContent', component21); registerDef('./scripts/MainController', component21);
import component22 from '../../assets/scripts/dialogs/PrizeDialogContent'; import component22 from '../../assets/scripts/dialogs/AlertDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component22); registerDef('./scripts/dialogs/AlertDialogContent', component22);
import component23 from '../../assets/scripts/common/Toast'; import component23 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/common/Toast', component23); registerDef('./scripts/dialogs/PrizeDialogContent', component23);
import component24 from '../../assets/scripts/scenes/Drop'; import component24 from '../../assets/scripts/common/Toast';
registerDef('./scripts/scenes/Drop', component24); 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