Commit b906a9fe authored by wildfirecode's avatar wildfirecode

1

parent 7576e313
.rpt2_cache/
\ No newline at end of file
...@@ -61,7 +61,10 @@ ...@@ -61,7 +61,10 @@
}, },
{ {
"script": "./scripts/scenes/ScenePlay", "script": "./scripts/scenes/ScenePlay",
"properties": {} "properties": {
"bulletNumTxt": "entity|f02aa1f7-3255-405e-a537-7ba4ef503aa7",
"strengthNumTxt": "entity|70838016-4fab-4a0f-90aa-61c4303a4ecc"
}
} }
], ],
"uuid": "1265b761-1b67-4d76-9526-78c457a8d113", "uuid": "1265b761-1b67-4d76-9526-78c457a8d113",
...@@ -89,8 +92,8 @@ ...@@ -89,8 +92,8 @@
"script": "components/base/Transform", "script": "components/base/Transform",
"properties": { "properties": {
"position": { "position": {
"x": -239, "x": -259,
"y": -713 "y": -758
} }
} }
}, },
...@@ -116,7 +119,8 @@ ...@@ -116,7 +119,8 @@
"properties": { "properties": {
"position": { "position": {
"x": -65, "x": -65,
"y": -751 "y": -758,
"_type_": "scilla/support/Vector2D"
} }
} }
}, },
...@@ -132,6 +136,202 @@ ...@@ -132,6 +136,202 @@
} }
], ],
"uuid": "ca297e3f-1c5e-4526-b0cc-a759377cc364" "uuid": "ca297e3f-1c5e-4526-b0cc-a759377cc364"
},
{
"name": "bulletNumTxt",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -257.5,
"y": -760
}
}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "123",
"fillColor": "rgba(255, 255, 255, 1)"
}
}
],
"uuid": "f02aa1f7-3255-405e-a537-7ba4ef503aa7"
},
{
"name": "scoreTxt",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -20,
"y": -682.5
}
}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "999",
"fillColor": "rgba(255, 255, 255, 1)",
"textStyle": {
"fontSize": 50,
"fontStyle": "normal",
"fontWeight": "bold"
}
}
}
],
"uuid": "867c6466-c62d-45c2-b14e-3e5f2c47a6c4"
},
{
"name": "strengthNumTxt",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -57.5,
"y": -757.5
}
}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "34%",
"fillColor": "rgba(255, 255, 255, 1)"
}
}
],
"uuid": "70838016-4fab-4a0f-90aa-61c4303a4ecc",
"children": []
},
{
"name": "car",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -48.452380952380956,
"y": 420.7142857142857
}
}
}
],
"uuid": "a5b807ba-098f-4b6e-b0da-e42b6324f62a",
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 52.5,
"y": -22.5
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|abdded14-a2d2-4000-b264-9ff47c843149"
}
}
],
"uuid": "396837ee-1f43-496e-aa64-d2a3bd65b53d"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 52.85714285714286,
"y": -57.14285714285715
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|ade44f23-754d-4923-a713-76f4207c3bde"
}
}
],
"uuid": "5e34a5e7-e298-4fda-a244-737cb992bc81"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 10,
"y": -12.8,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|cb4651fa-3d76-43c6-89a9-d06ddda3c110"
}
}
],
"uuid": "a72826e5-eaf9-40a8-aa6a-3a1681c1370f"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 97.14285714285714,
"y": -12.8,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|cb4651fa-3d76-43c6-89a9-d06ddda3c110"
}
}
],
"uuid": "b9f27fea-f7e9-4ebe-a89d-74dc894405d0"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 51.42857142857143,
"y": -115.71428571428572
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|f67e2e09-e0f4-4aea-8243-8d86a4ded38a"
}
}
],
"uuid": "7779fb7e-1935-4600-beb2-bd86ed7cbf44"
}
]
} }
] ]
}, },
...@@ -475,6 +675,8 @@ ...@@ -475,6 +675,8 @@
] ]
}, },
"entity-cache": [ "entity-cache": [
"f02aa1f7-3255-405e-a537-7ba4ef503aa7",
"70838016-4fab-4a0f-90aa-61c4303a4ecc",
"91e550e7-aba1-4eaf-bb74-04c7e7789102", "91e550e7-aba1-4eaf-bb74-04c7e7789102",
"3b5cb573-bb7b-46f2-af0b-8e6ca7380dcc", "3b5cb573-bb7b-46f2-af0b-8e6ca7380dcc",
"adf5cdd6-0cff-47a1-b3ae-8a28fc11b29c", "adf5cdd6-0cff-47a1-b3ae-8a28fc11b29c",
...@@ -497,6 +699,22 @@ ...@@ -497,6 +699,22 @@
{ {
"name": "火箭-1.png", "name": "火箭-1.png",
"uuid": "2f8360c7-b059-4f1e-b651-37a32eb4a247" "uuid": "2f8360c7-b059-4f1e-b651-37a32eb4a247"
},
{
"name": "发弹雾气-1.png",
"uuid": "f67e2e09-e0f4-4aea-8243-8d86a4ded38a"
},
{
"name": "1-1-1.png",
"uuid": "cb4651fa-3d76-43c6-89a9-d06ddda3c110"
},
{
"name": "大炮板子-1.png",
"uuid": "abdded14-a2d2-4000-b264-9ff47c843149"
},
{
"name": "大炮的头-1.png",
"uuid": "ade44f23-754d-4923-a713-76f4207c3bde"
} }
] ]
} }
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Created by rockyl on 2019-04-09. * Created by rockyl on 2019-04-09.
*/ */
import { Component } from "scilla"; import { Component, Entity } from "scilla";
import { alien } from "../navigator/StackNavigator"; import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator"; import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src'; import { Transform } from 'scilla-components/src';
export default class ScenePlay extends Component implements INavigatorViewBase{ export default class ScenePlay extends Component implements INavigatorViewBase{
bulletNumTxt:Entity;
strengthNumTxt:Entity;
onAwake() { onAwake() {
super.onAwake(); super.onAwake();
} }
......
No preview for this file type
{"ver":"1.0.1","uuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","subMetas":{"火-1.png":{"ver":"1.0.1","uuid":"94680781-2b1b-432e-9858-4ff21dd04d0c","rawTextureUuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","type":"texture"},"火箭-1.png":{"ver":"1.0.1","uuid":"2f8360c7-b059-4f1e-b651-37a32eb4a247","rawTextureUuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","type":"texture"}},"type":"sheet"} {"ver":"1.0.1","uuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","subMetas":{"火-1.png":{"ver":"1.0.1","uuid":"94680781-2b1b-432e-9858-4ff21dd04d0c","rawTextureUuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","type":"texture"},"火箭-1.png":{"ver":"1.0.1","uuid":"2f8360c7-b059-4f1e-b651-37a32eb4a247","rawTextureUuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","type":"texture"},"发弹雾气-1.png":{"ver":"1.0.1","uuid":"f67e2e09-e0f4-4aea-8243-8d86a4ded38a","rawTextureUuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","type":"texture"},"1-1-1.png":{"ver":"1.0.1","uuid":"cb4651fa-3d76-43c6-89a9-d06ddda3c110","rawTextureUuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","type":"texture"},"大炮板子-1.png":{"ver":"1.0.1","uuid":"abdded14-a2d2-4000-b264-9ff47c843149","rawTextureUuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","type":"texture"},"大炮的头-1.png":{"ver":"1.0.1","uuid":"ade44f23-754d-4923-a713-76f4207c3bde","rawTextureUuid":"e00fab97-a62c-459b-a61b-a9d7a1e10a21","type":"texture"}},"type":"sheet"}
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,47 +5,47 @@ ...@@ -5,47 +5,47 @@
import {registerDef} from 'scilla' import {registerDef} from 'scilla'
import component0 from 'components/base/Transform'; import component0 from 'components/renderer/TextRenderer';
registerDef('components/base/Transform', component0); registerDef('components/renderer/TextRenderer', component0);
import component1 from 'components/other/FullStageSize'; import component1 from 'components/base/Transform';
registerDef('components/other/FullStageSize', component1); registerDef('components/base/Transform', component1);
import component2 from 'components/renderer/TextureRenderer'; import component2 from 'components/renderer/RectRenderer';
registerDef('components/renderer/TextureRenderer', component2); registerDef('components/renderer/RectRenderer', component2);
import component3 from 'components/other/RelativeLayout'; import component3 from 'components/other/FullStageSize';
registerDef('components/other/RelativeLayout', component3); registerDef('components/other/FullStageSize', component3);
import component4 from 'components/other/CameraController'; import component4 from 'components/base/TouchInterrupt';
registerDef('components/other/CameraController', component4); registerDef('components/base/TouchInterrupt', component4);
import component5 from 'components/animation/TouchZoom'; import component5 from 'components/renderer/TextureRenderer';
registerDef('components/animation/TouchZoom', component5); registerDef('components/renderer/TextureRenderer', component5);
import component6 from 'components/ui/Button'; import component6 from 'components/other/RelativeLayout';
registerDef('components/ui/Button', component6); registerDef('components/other/RelativeLayout', 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/base/TouchInterrupt'; import component8 from 'components/ui/Button';
registerDef('components/base/TouchInterrupt', component8); registerDef('components/ui/Button', component8);
import component9 from 'components/renderer/RectRenderer'; import component9 from 'components/animation/TouchZoom';
registerDef('components/renderer/RectRenderer', component9); registerDef('components/animation/TouchZoom', component9);
import component10 from '../../assets/scripts/scenes/ScenePlay'; import component10 from '../../assets/scripts/scenes/SceneStart';
registerDef('./scripts/scenes/ScenePlay', component10); registerDef('./scripts/scenes/SceneStart', component10);
import component11 from '../../assets/scripts/popup/Popup'; import component11 from '../../assets/scripts/popup/Popup';
registerDef('./scripts/popup/Popup', component11); registerDef('./scripts/popup/Popup', component11);
import component12 from '../../assets/scripts/navigator/SingleSceneNavigator'; import component12 from '../../assets/scripts/scenes/ScenePlay';
registerDef('./scripts/navigator/SingleSceneNavigator', component12); registerDef('./scripts/scenes/ScenePlay', component12);
import component13 from '../../assets/scripts/dialogs/RulePanel'; import component13 from '../../assets/scripts/navigator/SingleSceneNavigator';
registerDef('./scripts/dialogs/RulePanel', component13); registerDef('./scripts/navigator/SingleSceneNavigator', component13);
import component14 from '../../assets/scripts/scenes/SceneStart'; import component14 from '../../assets/scripts/dialogs/RulePanel';
registerDef('./scripts/scenes/SceneStart', component14); registerDef('./scripts/dialogs/RulePanel', component14);
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