Commit 12d71773 authored by wildfirecode's avatar wildfirecode

1

parent 6613eb2e
No preview for this file type
......@@ -28,7 +28,7 @@
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|7eb83e28-16db-43c5-a6a5-3e7e2abca5b7"
"texture": "res|82c35ef6-869e-4f5e-8f0b-36c899ed6b39"
}
}
],
......
......@@ -397,7 +397,7 @@
"uuid": "34f68eec-739c-478c-a527-6aa12c197850"
}
],
"disabled": false
"disabled": true
},
{
"name": "ScenePlay",
......@@ -408,99 +408,253 @@
},
{
"script": "./scripts/scenes/ScenePlay",
"properties": {}
"properties": {
"countTxt": "entity|24f0a4da-dddf-4493-9cbc-f7e9b3fa500c",
"num1": "entity|9762ee97-0fe3-4818-acbd-723306b9a1f9",
"num2": "entity|bb38bf6a-6453-41eb-95a4-8eebba47541d",
"num3": "entity|84900df0-6476-491a-8792-ab6a18568c7d",
"box1": "entity|c2fe839a-b7c4-4621-8064-16b16ea1714d",
"box2": "entity|4e7a15d9-07c6-44cf-be7b-2393fbcd765f",
"box3": "entity|a9ecf50b-0bba-4e98-a65e-073ff62f654c"
}
}
],
"uuid": "0690fa72-d77d-42c2-ac55-6b6adccee9bf",
"children": [
{
"name": "Entity",
"name": "bg",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"script": "components/renderer/TextureRenderer",
"properties": {
"text": "plays"
"texture": "res|3a78d5ce-8939-4fb9-8aad-23e5f8a179b4"
}
}
],
"uuid": "b06ee9d5-d456-49c0-bf39-0a9c5e3186bb"
}
],
"disabled": true
},
{
"name": "SceneGuide",
"components": [
{
"script": "components/base/Transform",
"properties": {}
"uuid": "2bc1eea6-ecc3-4339-bc38-dbbab907fc8e"
},
{
"script": "./scripts/scenes/SceneGuide",
"properties": {}
}
],
"uuid": "bc43f371-06cb-406f-bbbc-964dec0157e4",
"children": [
{
"name": "Label",
"name": "countTxt",
"components": [
{
"script": "components/base/Transform",
"properties": {}
"properties": {
"position": {
"x": 0,
"y": -671.4285714285714
}
}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "guide",
"fillColor": "rgba(255, 0, 0, 1)",
"text": "05.23s",
"fillColor": "rgba(255, 222, 75, 1)",
"textStyle": {
"fontSize": 50
}
}
}
],
"uuid": "bbb4aaa8-f5b4-42ee-9ce9-6103855fe905"
"uuid": "24f0a4da-dddf-4493-9cbc-f7e9b3fa500c"
},
{
"name": "nums",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 0,
"y": -494.28571428571433
}
}
}
],
"uuid": "75db4fe1-f712-4270-b4cb-8ea98a4e1e7c",
"children": [
{
"name": "num1",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|4f3816da-553e-40e1-8568-cc1bf669783d"
}
}
],
"uuid": "9762ee97-0fe3-4818-acbd-723306b9a1f9",
"disabled": true
},
{
"name": "num2",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|ae3c021b-fbbf-43d3-ad6d-dc4b7bf2a7c9"
}
}
],
"uuid": "bb38bf6a-6453-41eb-95a4-8eebba47541d",
"disabled": true
},
{
"name": "num3",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|207eb774-d33a-4309-b420-667bea6c6cf6"
}
}
],
"uuid": "84900df0-6476-491a-8792-ab6a18568c7d",
"disabled": true
}
]
},
{
"name": "box1",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -57.142857142857146,
"y": 37.142857142857146
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|56bcd2e4-f0a1-4228-a528-c95f18b1092b"
}
}
],
"uuid": "c2fe839a-b7c4-4621-8064-16b16ea1714d",
"disabled": false
},
{
"name": "box2",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -57.142857142857146,
"y": 54.28571428571429
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|1740da0d-b247-46bd-a062-39940b88d549"
}
}
],
"uuid": "4e7a15d9-07c6-44cf-be7b-2393fbcd765f",
"disabled": true
},
{
"name": "box3",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -54.28571428571429,
"y": 51.42857142857143
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|710ca0e4-99bc-4b77-800a-f2d71b9cb69f"
}
}
],
"uuid": "a9ecf50b-0bba-4e98-a65e-073ff62f654c",
"disabled": true,
"children": []
},
{
"name": "noname",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 37.14285714285714,
"y": 100
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|f4ea00e4-af9e-4761-876f-eb1c5101b4f2"
}
}
],
"uuid": "2dbdd9b3-af53-4787-836f-b7e1c293c7b2",
"disabled": false,
"children": []
}
],
"disabled": true
},
{
"name": "SceneCountdown",
"name": "SceneGuide",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "./scripts/scenes/SceneCountdown",
"script": "./scripts/scenes/SceneGuide",
"properties": {}
}
],
"uuid": "8cee1a07-efe0-4a72-b8d1-bc4012128b6e",
"disabled": true,
"uuid": "bc43f371-06cb-406f-bbbc-964dec0157e4",
"children": [
{
"name": "Label",
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"script": "components/renderer/TextureRenderer",
"properties": {
"text": "SceneCountdown"
"texture": "res|34886980-b89a-4308-8d6c-dec61af0b2f9"
}
}
],
"uuid": "e3424123-bb9a-49b4-94ec-12c27a4e048e"
"uuid": "1ba15311-7be2-4432-8632-4e3e5d01f971"
}
]
],
"disabled": true
},
{
"name": "SceneResult",
......@@ -1135,6 +1289,66 @@
},
"resource-groups": {
"preload": [
{
"uuid": "1f737398-ebbb-4a65-9851-0303fd5def02",
"url": "sheets/play.sht-disperse",
"config": {
"textures": [
{
"name": "1.png",
"uuid": "4f3816da-553e-40e1-8568-cc1bf669783d"
},
{
"name": "2.png",
"uuid": "ae3c021b-fbbf-43d3-ad6d-dc4b7bf2a7c9"
},
{
"name": "3.png",
"uuid": "207eb774-d33a-4309-b420-667bea6c6cf6"
},
{
"name": "red1.png",
"uuid": "82c35ef6-869e-4f5e-8f0b-36c899ed6b39"
},
{
"name": "red3.png",
"uuid": "f6bd28a5-3821-42a0-a1bd-4c56b7809297"
},
{
"name": "red4.png",
"uuid": "54890950-7189-4449-ae8c-af215515c599"
},
{
"name": "red5.png",
"uuid": "3711c0c3-d305-4664-b67e-2de454ceb71d"
},
{
"name": "yellow1.png",
"uuid": "55566266-19f2-4377-ab9a-d69fcaf0d381"
},
{
"name": "yellow2.png",
"uuid": "4fcabe5c-1f52-4a1c-ae26-d1a66c5ecc34"
},
{
"name": "盒子.png",
"uuid": "56bcd2e4-f0a1-4228-a528-c95f18b1092b"
},
{
"name": "盒子2.png",
"uuid": "1740da0d-b247-46bd-a062-39940b88d549"
},
{
"name": "盒子3.png",
"uuid": "710ca0e4-99bc-4b77-800a-f2d71b9cb69f"
},
{
"name": "装饰.png",
"uuid": "f4ea00e4-af9e-4761-876f-eb1c5101b4f2"
}
]
}
},
{
"uuid": "7812ab8d-1490-4d67-9d7d-b5d104e36814",
"url": "sheets/prize.sht-disperse",
......@@ -1176,66 +1390,14 @@
"name": "rulebtn.png",
"uuid": "d092293f-6a84-45eb-a7c2-7735b747c2af"
},
{
"name": "8分.png",
"uuid": "2b8c13b0-c675-4031-ac51-8d39afb41505"
},
{
"name": "recordbtn.png",
"uuid": "7c2aa27c-5cf6-46d0-8509-d9b68052de09"
},
{
"name": "roles.png",
"uuid": "5c3bc8ff-d886-437f-8320-cfef9bdc71e6"
},
{
"name": "startbtn.png",
"uuid": "65d0864b-a3b8-438b-aa87-673311473c7f"
},
{
"name": "text1.png",
"uuid": "ce594e8b-00d9-4171-a4e1-3d77fd6746f6"
},
{
"name": "兑吧大牌券.png",
"uuid": "41a91467-d5fa-461d-b2dc-a842c786b76a"
},
{
"name": "口红.png",
"uuid": "9c55b44d-3454-438d-b5fd-d73fea0a291c"
},
{
"name": "栅栏.png",
"uuid": "13befe8b-8a33-46e2-bee6-fa0d17994329"
},
{
"name": "树.png",
"uuid": "e4e0b901-f0ef-4c1c-a90e-bc923dd8c4e7"
},
{
"name": "炸弹.png",
"uuid": "9c6e40d8-0c90-41fe-ad28-9064ca7103ee"
},
{
"name": "礼盒.png",
"uuid": "e6ca4128-75b8-4b8b-8a7d-8f95d46f810f"
},
{
"name": "组 81.png",
"uuid": "7e76fac1-7791-476b-b73f-7cd5b4ea1344"
},
{
"name": "ball1.png",
"uuid": "7eb83e28-16db-43c5-a6a5-3e7e2abca5b7"
},
{
"name": "ball2.png",
"uuid": "9d796938-f7de-45b1-8135-101a48277c1a"
},
{
"name": "ball3.png",
"uuid": "7c42d0d1-b40e-4df5-8698-30ccf3c2f8bc"
},
{
"name": "rankbtn.png",
"uuid": "66066ff4-4536-4398-84ad-8cf91c2d8333"
......@@ -1259,9 +1421,17 @@
"uuid": "d3c3140f-3210-426b-8a0b-c1811f33044f",
"url": "singles/closebtn.png"
},
{
"uuid": "3a78d5ce-8939-4fb9-8aad-23e5f8a179b4",
"url": "singles/playbg.jpg"
},
{
"uuid": "20070530-0eaf-4e77-af40-bee6392b5e52",
"url": "singles/按钮.png"
},
{
"uuid": "34886980-b89a-4308-8d6c-dec61af0b2f9",
"url": "singles/游戏引导.png"
}
]
}
......
......@@ -17,7 +17,19 @@ export const getTween = (context, val: Transform | Entity | ScillaComponent, obj
delete obj[key];
}
}
const scaleObj = {};
for (const key in obj) {
if (key == 'scalex') {
scaleObj['x'] = obj[key];
delete obj[key];
}
if (key == 'scaley') {
scaleObj['y'] = obj[key];
delete obj[key];
}
}
createTween(context, target.position, true).to(postionObj, duration, ease);
createTween(context, target.scale, true).to(scaleObj, duration, ease);
createTween(context, target, true).to(obj, duration, ease).call(r);
});
}
\ No newline at end of file
......@@ -9,8 +9,8 @@ import { VirtualNavigator } from "./VirtualNavigator";
import SceneStart from "../scenes/SceneStart";
import ScenePlay from "../scenes/ScenePlay";
import SceneGuide from "../scenes/SceneGuide";
import SceneCountdown from "../scenes/SceneCountdown";
import SceneResult from "../scenes/SceneResult";
import { Button } from "scilla-components/src";
export default class SingleSceneNavigator extends ScillaComponent {
_navigator: VirtualNavigator;
......@@ -21,7 +21,6 @@ export default class SingleSceneNavigator extends ScillaComponent {
this._navigator.register('start', 'SceneStart', SceneStart);
this._navigator.register('play', 'ScenePlay', ScenePlay);
this._navigator.register('guide', 'SceneGuide', SceneGuide);
this._navigator.register('countdown', 'SceneCountdown', SceneCountdown);
this._navigator.register('result', 'SceneResult', SceneResult);
}
......
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
export default class SceneCountdown extends ScillaComponent implements INavigatorViewBase {
onAwake() {
super.onAwake();
setTimeout(() => {
this.bubbling('fuck', 'play');
}, 1000);
}
// _timer
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
{"ver":"1.0.1","uuid":"bfde8457-9b03-42f8-b7b2-d537e5481227","subMetas":{},"type":"script"}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Button, InteractComponent } from "scilla-components/src";
export default class SceneGuide extends ScillaComponent implements INavigatorViewBase {
export default class SceneGuide extends InteractComponent implements INavigatorViewBase {
onAwake() {
super.onAwake();
setTimeout(() => {
this.bubbling('fuck', 'countdown');
}, 1000);
}
onGlobalTouchBegin(e) {
super.onGlobalTouchBegin(e);
this.onNextScene();
return false;
}
onNextScene() {
this.bubbling('fuck', 'play');
}
// _timer
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
......
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Entity } from "scilla/src";
import { setText } from "../entityUtils";
import { getTween } from "../getTween";
import { setScale } from "../transformUtils";
import { Transform } from "scilla-components/src";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
countTxt: Entity;
num1: Entity;
num2: Entity;
num3: Entity;
box1: Entity;
box2: Entity;
box3: Entity;
private COUNT_DOWN_SEC = 16;
private _startTag = false;
private _msPassed = 0;
private _ballCounter = 0;
onAwake() {
super.onAwake();
this.initText();
this.playCountdown();
let addCounter = 0;
const add = () => {
addCounter++;
......@@ -43,10 +62,80 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
last_y = y;
last_z = z;
}
this._startTag = false;
}
addBall() {
async wait(ms) {
return new Promise((r) => {
setTimeout(r, ms);
})
}
async playCountdown() {
setScale(this.num1, 3);
setScale(this.num2, 3);
setScale(this.num3, 3);
this.num1.enabled = false;
this.num2.enabled = false;
this.num3.enabled = true;
await getTween(this, this.num3, { scalex: 1, scaley: 1 }, 300);
await this.wait(600);
this.num3.enabled = false;
this.num2.enabled = true;
await getTween(this, this.num2, { scalex: 1, scaley: 1 }, 300);
await this.wait(600);
this.num2.enabled = false;
this.num1.enabled = true;
await getTween(this, this.num1, { scalex: 1, scaley: 1 }, 300);
await this.wait(600);
this.startCountdown();
}
startCountdown() {
this._startTag = true;
this._msPassed = 0;
this._lastTimer = Date.now();
this._ballCounter = 0;
}
private _lastTimer: number;
onUpdate() {
if (!this._startTag) return;
this._msPassed += (Date.now() - this._lastTimer);
const left = this.COUNT_DOWN_SEC * 1000 - this._msPassed;
console.log(left)
const mPassed = Math.floor(left / 1000);
let msPassed = left % 1000;
msPassed = Math.floor(msPassed / 10);
this.updateText(mPassed, msPassed);
this._lastTimer = Date.now();
if (left <= 0) {
this.updateText(0, 0);
this._startTag = false;
this.onTimerout();
}
}
onTimerout() {
console.log('onTimerout')
}
getNumber(num) {
if (num < 10)
return `0${num}`
return `${num}`
}
updateText(a, b) {
setText(this.countTxt, `${this.getNumber(a)}.${this.getNumber(b)}s`)
}
initText() {
setText(this.countTxt, `${this.getNumber(this.COUNT_DOWN_SEC)}.00s`)
}
addBall() {
this._ballCounter++;
}
onGameOver() {
......
......@@ -2,13 +2,11 @@
* 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 } 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";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
......
{"ver":"1.0.1","uuid":"1f737398-ebbb-4a65-9851-0303fd5def02","subMetas":{"1.png":{"ver":"1.0.1","uuid":"4f3816da-553e-40e1-8568-cc1bf669783d","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"2.png":{"ver":"1.0.1","uuid":"ae3c021b-fbbf-43d3-ad6d-dc4b7bf2a7c9","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"3.png":{"ver":"1.0.1","uuid":"207eb774-d33a-4309-b420-667bea6c6cf6","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"red1.png":{"ver":"1.0.1","uuid":"82c35ef6-869e-4f5e-8f0b-36c899ed6b39","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"red3.png":{"ver":"1.0.1","uuid":"f6bd28a5-3821-42a0-a1bd-4c56b7809297","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"red4.png":{"ver":"1.0.1","uuid":"54890950-7189-4449-ae8c-af215515c599","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"red5.png":{"ver":"1.0.1","uuid":"3711c0c3-d305-4664-b67e-2de454ceb71d","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"yellow1.png":{"ver":"1.0.1","uuid":"55566266-19f2-4377-ab9a-d69fcaf0d381","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"yellow2.png":{"ver":"1.0.1","uuid":"4fcabe5c-1f52-4a1c-ae26-d1a66c5ecc34","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"盒子.png":{"ver":"1.0.1","uuid":"56bcd2e4-f0a1-4228-a528-c95f18b1092b","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"盒子2.png":{"ver":"1.0.1","uuid":"1740da0d-b247-46bd-a062-39940b88d549","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"盒子3.png":{"ver":"1.0.1","uuid":"710ca0e4-99bc-4b77-800a-f2d71b9cb69f","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","type":"texture"},"装饰.png":{"ver":"1.0.1","uuid":"f4ea00e4-af9e-4761-876f-eb1c5101b4f2","rawTextureUuid":"1f737398-ebbb-4a65-9851-0303fd5def02","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"},"ball1.png":{"ver":"1.0.1","uuid":"7eb83e28-16db-43c5-a6a5-3e7e2abca5b7","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"ball2.png":{"ver":"1.0.1","uuid":"9d796938-f7de-45b1-8135-101a48277c1a","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"ball3.png":{"ver":"1.0.1","uuid":"7c42d0d1-b40e-4df5-8698-30ccf3c2f8bc","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"},"rankbtn.png":{"ver":"1.0.1","uuid":"66066ff4-4536-4398-84ad-8cf91c2d8333","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"},"recordbtn.png":{"ver":"1.0.1","uuid":"7c2aa27c-5cf6-46d0-8509-d9b68052de09","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"},"rankbtn.png":{"ver":"1.0.1","uuid":"66066ff4-4536-4398-84ad-8cf91c2d8333","rawTextureUuid":"ed0e6061-7014-492f-b95f-88794de7d5cc","type":"texture"}},"type":"sheet"}
{"ver":"1.0.1","uuid":"3a78d5ce-8939-4fb9-8aad-23e5f8a179b4","subMetas":{"playbg":{"ver":"1.0.1","uuid":"bf3dc05b-5ca3-4db9-a246-e6e0913ee177","rawTextureUuid":"3a78d5ce-8939-4fb9-8aad-23e5f8a179b4","type":"texture"}},"type":"texture","imagePath":"/Users/wanghongyuan/shuijf2/assets/singles/playbg.jpg"}
{"ver":"1.0.1","uuid":"34886980-b89a-4308-8d6c-dec61af0b2f9","subMetas":{"游戏引导":{"ver":"1.0.1","uuid":"e3e14560-8c84-4432-a264-d63638d0a38b","rawTextureUuid":"34886980-b89a-4308-8d6c-dec61af0b2f9","type":"texture"}},"type":"texture","imagePath":"/Users/wanghongyuan/shuijf2/assets/singles/游戏引导.png"}
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.
......@@ -5,23 +5,23 @@
import {registerDef} from 'scilla'
import component0 from 'components/other/CameraController';
registerDef('components/other/CameraController', component0);
import component0 from 'components/renderer/TextRenderer';
registerDef('components/renderer/TextRenderer', component0);
import component1 from 'components/base/Transform';
registerDef('components/base/Transform', component1);
import component2 from 'components/renderer/TextureRenderer';
registerDef('components/renderer/TextureRenderer', component2);
import component2 from 'components/renderer/HtmlRenderer';
registerDef('components/renderer/HtmlRenderer', component2);
import component3 from 'components/animation/TouchZoom';
registerDef('components/animation/TouchZoom', component3);
import component3 from 'components/other/RelativeLayout';
registerDef('components/other/RelativeLayout', component3);
import component4 from 'components/ui/Button';
registerDef('components/ui/Button', component4);
import component4 from 'components/ui/ScrollView';
registerDef('components/ui/ScrollView', component4);
import component5 from 'components/renderer/TextRenderer';
registerDef('components/renderer/TextRenderer', component5);
import component5 from 'components/renderer/RectRenderer';
registerDef('components/renderer/RectRenderer', component5);
import component6 from 'components/other/FullStageSize';
registerDef('components/other/FullStageSize', component6);
......@@ -29,62 +29,59 @@ registerDef('components/other/FullStageSize', component6);
import component7 from 'components/base/TouchInterrupt';
registerDef('components/base/TouchInterrupt', component7);
import component8 from 'components/renderer/RectRenderer';
registerDef('components/renderer/RectRenderer', component8);
import component8 from 'components/other/CameraController';
registerDef('components/other/CameraController', component8);
import component9 from 'components/ui/ScrollView';
registerDef('components/ui/ScrollView', component9);
import component9 from 'components/renderer/TextureRenderer';
registerDef('components/renderer/TextureRenderer', component9);
import component10 from 'components/other/RelativeLayout';
registerDef('components/other/RelativeLayout', component10);
import component10 from 'components/animation/TouchZoom';
registerDef('components/animation/TouchZoom', component10);
import component11 from 'components/renderer/HtmlRenderer';
registerDef('components/renderer/HtmlRenderer', component11);
import component11 from 'components/ui/Button';
registerDef('components/ui/Button', component11);
import component12 from '../../assets/scripts/scenes/ScenePlay';
registerDef('./scripts/scenes/ScenePlay', component12);
import component12 from '../../assets/scripts/dialogs/RuleDialogContent';
registerDef('./scripts/dialogs/RuleDialogContent', component12);
import component13 from '../../assets/scripts/navigator/SingleSceneNavigator';
registerDef('./scripts/navigator/SingleSceneNavigator', component13);
import component13 from '../../assets/scripts/scenes/ScenePlay';
registerDef('./scripts/scenes/ScenePlay', component13);
import component14 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component14);
import component14 from '../../assets/scripts/scenes/SceneGuide';
registerDef('./scripts/scenes/SceneGuide', component14);
import component15 from '../../assets/scripts/scenes/SceneCountdown';
registerDef('./scripts/scenes/SceneCountdown', component15);
import component15 from '../../assets/scripts/scenes/SceneResult';
registerDef('./scripts/scenes/SceneResult', component15);
import component16 from '../../assets/scripts/scenes/SceneResult';
registerDef('./scripts/scenes/SceneResult', component16);
import component16 from '../../assets/scripts/popup/Popup';
registerDef('./scripts/popup/Popup', component16);
import component17 from '../../assets/scripts/popup/Popup';
registerDef('./scripts/popup/Popup', component17);
import component17 from '../../assets/scripts/scenes/SceneStart';
registerDef('./scripts/scenes/SceneStart', component17);
import component18 from '../../assets/scripts/scenes/SceneStart';
registerDef('./scripts/scenes/SceneStart', component18);
import component18 from '../../assets/scripts/navigator/SingleSceneNavigator';
registerDef('./scripts/navigator/SingleSceneNavigator', component18);
import component19 from '../../assets/scripts/api/SamplePollingApi';
registerDef('./scripts/api/SamplePollingApi', component19);
import component20 from '../../assets/scripts/dialogs/RuleDialogContent';
registerDef('./scripts/dialogs/RuleDialogContent', component20);
import component20 from '../../assets/scripts/scenes/SceneController';
registerDef('./scripts/scenes/SceneController', component20);
import component21 from '../../assets/scripts/MainController';
registerDef('./scripts/MainController', component21);
import component21 from '../../assets/scripts/api/SampleApi';
registerDef('./scripts/api/SampleApi', component21);
import component22 from '../../assets/scripts/api/SampleApi';
registerDef('./scripts/api/SampleApi', component22);
import component22 from '../../assets/scripts/game/CustomTextRenderer';
registerDef('./scripts/game/CustomTextRenderer', component22);
import component23 from '../../assets/scripts/game/CustomTextRenderer';
registerDef('./scripts/game/CustomTextRenderer', component23);
import component23 from '../../assets/scripts/MainController';
registerDef('./scripts/MainController', component23);
import component24 from '../../assets/scripts/scenes/SceneController';
registerDef('./scripts/scenes/SceneController', component24);
import component24 from '../../assets/scripts/dialogs/AlertDialogContent';
registerDef('./scripts/dialogs/AlertDialogContent', component24);
import component25 from '../../assets/scripts/dialogs/AlertDialogContent';
registerDef('./scripts/dialogs/AlertDialogContent', component25);
import component25 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component25);
import component26 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component26);
import component27 from '../../assets/scripts/scenes/SceneGuide';
registerDef('./scripts/scenes/SceneGuide', component27);
import component26 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component26);
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