Commit b1d175e4 authored by wildfirecode's avatar wildfirecode

1

parent 032e9356
{"ver":"1.0.1","uuid":"60a79e79-ee98-4c98-91f9-c485998cf48a","subMetas":{},"isGroup":true}
{
"name": "Drop",
"root": {
"uuid": "20190301114308",
"components": [
{
"script": "components/base/Transform"
},
{
"script": "components/other/CameraController"
}
],
"children": [
{
"uuid": "20190301114245",
"name": "Drop",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "./scripts/scenes/Drop",
"properties": {}
}
],
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|41a91467-d5fa-461d-b2dc-a842c786b76a"
}
}
],
"uuid": "86d3aa45-6fcd-4b94-9cf5-30316315994e"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|e6ca4128-75b8-4b8b-8a7d-8f95d46f810f"
}
}
],
"uuid": "68c5d317-04c4-4aaf-92f5-ef02e2a5d96d"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|2b8c13b0-c675-4031-ac51-8d39afb41505"
}
}
],
"uuid": "356da9a4-73b3-440d-b6cc-caabff6db5da"
}
]
}
]
}
}
\ No newline at end of file
{"ver":"1.0.1","uuid":"f46e6c22-442d-4e5c-a03f-b1b5a073f5a2","subMetas":{},"type":"prefab"}
......@@ -105,7 +105,8 @@
"ajaxElement": "dynamic|API|ajaxElement",
"doJoin": "dynamic|API|doJoin",
"getNgameStartStatus": "dynamic|API|getNgameStartStatus",
"getOrderStatus": "dynamic|API|getOrderStatus"
"getOrderStatus": "dynamic|API|getOrderStatus",
"Drop": "res|f46e6c22-442d-4e5c-a03f-b1b5a073f5a2"
},
"disabled": false
},
......@@ -395,6 +396,27 @@
],
"disabled": true
},
{
"name": "Entity",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 0,
"y": -57.61904761904759
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|c45eb649-b3d7-41ba-8c8a-9c52f33a904d"
}
}
],
"uuid": "f4953154-11f1-4399-971c-ba79e09c28db"
},
{
"name": "treewrapper",
"components": [
......@@ -402,9 +424,9 @@
"script": "components/base/Transform",
"properties": {
"position": {
"y": 57.5,
"_type_": "scilla/support/Vector2D",
"x": 5
"x": 5,
"y": -247.2619047619048,
"_type_": "scilla/support/Vector2D"
}
}
},
......@@ -413,10 +435,11 @@
"properties": {
"texture": "res|e4e0b901-f0ef-4c1c-a90e-bc923dd8c4e7",
"anchor": {
"y": 0.9,
"y": 0.8,
"_type_": "scilla/support/Vector2D"
}
}
},
"disabled": false
}
],
"uuid": "e7de54a8-05e2-49e3-855f-15ef3d776804",
......@@ -429,7 +452,7 @@
"properties": {
"position": {
"x": -10,
"y": -72.5
"y": 247.02380952380955
}
}
}
......@@ -1394,6 +1417,10 @@
},
"resource-groups": {
"preload": [
{
"uuid": "f46e6c22-442d-4e5c-a03f-b1b5a073f5a2",
"url": "prefabs/Drop.pfb"
},
{
"uuid": "7812ab8d-1490-4d67-9d7d-b5d104e36814",
"url": "sheets/prize.sht-disperse",
......@@ -1482,6 +1509,10 @@
{
"name": "组 81.png",
"uuid": "7e76fac1-7791-476b-b73f-7cd5b4ea1344"
},
{
"name": "树杆.png",
"uuid": "c45eb649-b3d7-41ba-8c8a-9c52f33a904d"
}
]
}
......
......@@ -117,6 +117,7 @@ export class VirtualNavigator extends EventEmitter implements INavigatorDelegate
* @param error
*/
onError(error: Error) {
console.log(error)
// console.log(error)
throw error
}
}
import ScillaComponent from 'components/base/ScillaComponent';
import { Entity } from 'scilla/src';
import { setXY } from '../transformUtils';
export default class Drop extends ScillaComponent {
onAwake() {
super.onAwake();
this.reset();
}
reset() {
// const { children } = this.entity;
// const index = Math.floor(Math.random() * children.length);
// const drop=children[index];
// children.forEach((v, i) => {
// v.enabled = index == i;
// });
// // setXY(drop,)
}
onUpdate(t) {
super.onUpdate(t);
}
}
{"ver":"1.0.1","uuid":"d012f546-199d-448d-af66-f3a1de8f4906","subMetas":{},"type":"script"}
......@@ -2,15 +2,16 @@
* Created by rockyl on 2019-04-09.
*/
import { Button } from "scilla-components/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, AssetsManager } from "scilla/src";
import { setText } from "../entityUtils";
import { dynamic, Entity, instantiate, resource } from "scilla/src";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { getRotation, setRotation } from "../transformUtils";
import { Button, TouchInterrupt } from "scilla-components/src";
import Drop from "./Drop";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
Drop: resource;
ajaxElement: dynamic;
doJoin: dynamic;
getNgameStartStatus: dynamic;
......@@ -22,8 +23,15 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
rulebtn: Entity;
treeWrapper: Entity;
_drop: Drop;
onAwake() {
super.onAwake();
if (!this._drop) {
this._drop = instantiate(this.Drop).getComponent(Drop);
// this._drop.entity.enabled = false;
this.entity.addChild(this._drop.entity);
}
}
// private setCountText(text: string) {
......@@ -74,8 +82,8 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
});
}
private STREN = 5;
private FREQ = 3;
private STREN = 3;
private FREQ = 5;
private SHAK_TIMERS = 10;
private _shakeTimes = -1;
......
{"ver":"1.0.1","uuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","subMetas":{"rulebtn.png":{"ver":"1.0.1","uuid":"d092293f-6a84-45eb-a7c2-7735b747c2af","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"8分.png":{"ver":"1.0.1","uuid":"2b8c13b0-c675-4031-ac51-8d39afb41505","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"recordbtn.png":{"ver":"1.0.1","uuid":"7c2aa27c-5cf6-46d0-8509-d9b68052de09","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"roles.png":{"ver":"1.0.1","uuid":"5c3bc8ff-d886-437f-8320-cfef9bdc71e6","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"startbtn.png":{"ver":"1.0.1","uuid":"65d0864b-a3b8-438b-aa87-673311473c7f","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"text1.png":{"ver":"1.0.1","uuid":"ce594e8b-00d9-4171-a4e1-3d77fd6746f6","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"兑吧大牌券.png":{"ver":"1.0.1","uuid":"41a91467-d5fa-461d-b2dc-a842c786b76a","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"口红.png":{"ver":"1.0.1","uuid":"9c55b44d-3454-438d-b5fd-d73fea0a291c","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"栅栏.png":{"ver":"1.0.1","uuid":"13befe8b-8a33-46e2-bee6-fa0d17994329","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"树.png":{"ver":"1.0.1","uuid":"e4e0b901-f0ef-4c1c-a90e-bc923dd8c4e7","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"炸弹.png":{"ver":"1.0.1","uuid":"9c6e40d8-0c90-41fe-ad28-9064ca7103ee","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"礼盒.png":{"ver":"1.0.1","uuid":"e6ca4128-75b8-4b8b-8a7d-8f95d46f810f","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"组 81.png":{"ver":"1.0.1","uuid":"7e76fac1-7791-476b-b73f-7cd5b4ea1344","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"}},"type":"sheet"}
{"ver":"1.0.1","uuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","subMetas":{"rulebtn.png":{"ver":"1.0.1","uuid":"d092293f-6a84-45eb-a7c2-7735b747c2af","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"8分.png":{"ver":"1.0.1","uuid":"2b8c13b0-c675-4031-ac51-8d39afb41505","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"recordbtn.png":{"ver":"1.0.1","uuid":"7c2aa27c-5cf6-46d0-8509-d9b68052de09","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"roles.png":{"ver":"1.0.1","uuid":"5c3bc8ff-d886-437f-8320-cfef9bdc71e6","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"startbtn.png":{"ver":"1.0.1","uuid":"65d0864b-a3b8-438b-aa87-673311473c7f","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"text1.png":{"ver":"1.0.1","uuid":"ce594e8b-00d9-4171-a4e1-3d77fd6746f6","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"兑吧大牌券.png":{"ver":"1.0.1","uuid":"41a91467-d5fa-461d-b2dc-a842c786b76a","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"口红.png":{"ver":"1.0.1","uuid":"9c55b44d-3454-438d-b5fd-d73fea0a291c","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"栅栏.png":{"ver":"1.0.1","uuid":"13befe8b-8a33-46e2-bee6-fa0d17994329","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"树.png":{"ver":"1.0.1","uuid":"e4e0b901-f0ef-4c1c-a90e-bc923dd8c4e7","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"炸弹.png":{"ver":"1.0.1","uuid":"9c6e40d8-0c90-41fe-ad28-9064ca7103ee","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"礼盒.png":{"ver":"1.0.1","uuid":"e6ca4128-75b8-4b8b-8a7d-8f95d46f810f","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"组 81.png":{"ver":"1.0.1","uuid":"7e76fac1-7791-476b-b73f-7cd5b4ea1344","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"树杆.png":{"ver":"1.0.1","uuid":"c45eb649-b3d7-41ba-8c8a-9c52f33a904d","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"}},"type":"sheet"}
assets/sheets/start.sht/树.png

168 KB | W: | H:

assets/sheets/start.sht/树.png

137 KB | W: | H:

assets/sheets/start.sht/树.png
assets/sheets/start.sht/树.png
assets/sheets/start.sht/树.png
assets/sheets/start.sht/树.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -2,8 +2,8 @@
* THIS FILE WAS GENERATE BY COMPILER
* DO NOT MODIFY THIS FILE
*/
import {registerDef} from 'scilla'
import { registerDef } from 'scilla'
import component0 from 'components/other/RelativeLayout';
registerDef('components/other/RelativeLayout', component0);
......@@ -76,3 +76,6 @@ registerDef('./scripts/dialogs/PrizeDialogContent', component22);
import component23 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component23);
import component24 from '../../assets/scripts/scenes/Drop';
registerDef('./scripts/scenes/Drop', component24);
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