Commit 0db9ed2c authored by 任建锋's avatar 任建锋

--

parent cef9d8fe
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
bottomGrass: Entity;
score: number;
bottomGrassTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
bottomGrass: Entity;
score: number;
bottomGrassTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
bottomGrassTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
console.log()
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGui.isActive=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
firstGuiTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGuiTransform = this.firstGui.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGuiTransform.alpha=0;
this.firstGuiTransform.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
firstGuiTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGuiTransform = this.firstGui.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGui.alpha=0;
//this.firstGuiTransform.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
firstGuiTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGuiTransform = this.firstGui.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGuiTransform.alpha=0;
this.firstGuiTransform.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
firstGuiTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGuiTransform = this.firstGui.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGuiTransform.alpha=0.3;
//this.firstGuiTransform.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
firstGuiTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGuiTransform = this.firstGui.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGuiTransform.alpha=0;
//this.firstGuiTransform.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
firstGuiTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGuiTransform = this.firstGui.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGuiTransform.alpha=0;
this.firstGuiTransform.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
firstGuiTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGuiTransform = this.firstGui.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGuiTransform.alpha=0;
this.firstGui.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
bottomGrassTransform
firstGuiTransform
thisTransform
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this.thisTransform)
console.log()
this.bottomGrassTransform.position.y=engine.renderContext.stageSize.height
this.firstGui["Transform"].alpha=0;
this.firstGui.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
thisTransform
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.thisTransform = this.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height
this.firstGui["Transform"].alpha=0;
this.firstGui.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height
this.firstGui["Transform"].alpha=0;
this.firstGui.enabled=false;
console.log(this.firstGui)
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height
this.firstGui["Transform"].alpha=0;
this.firstGui.enabled=false;
console.log(this.firstGui)
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setVisible(this.firstGui,false)
console.log(this.firstGui)
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setVisible(this.firstGui,true)
console.log(this.firstGui)
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setVisible(this.firstGui,false)
console.log(this.firstGui)
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.car["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 100)
.to({scale: {x: 1, y: 1}}, 100)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.car["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 100)
.to({scale: {x: 1, y: 1}}, 100)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.car["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 100)
.to({scale: {x: 1, y: 1}}, 100)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .9, y: .95},position:{x:1,y:1}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-1,y:-1}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .97, y: .97},position:{x:10,y:10}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-10,y:-10}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .95, y: .95},position:{x:2,y:2}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-2,y:-2}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .97, y: .97},position:{x:2,y:2}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-2,y:-2}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .98, y: .98},position:{x:.5,y:.5}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-.5,y:-.5}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .98, y: .98},position:{x:.5,y:.5}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-.5,y:-.5}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
onUpdate(t){
super.onUpdate(t)
console.log(123)
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .98, y: .98},position:{x:.5,y:.5}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-.5,y:-.5}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
onError_ngameSubmit() {
}
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;
}
onUpdate(t){
super.onUpdate(t)
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bridge["Transform"] = this.bridge.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .98, y: .98},position:{x:.5,y:.5}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-.5,y:-.5}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
i=0;
onEnterFrame(){
this.i++
this.bridge["Transform"].scale=this.i/350;
console.log(this.i)
}
onError_ngameSubmit() {
}
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;
}
onUpdate(t){
super.onUpdate(t)
this.onEnterFrame()
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bridge["Transform"] = this.bridge.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .98, y: .98},position:{x:.5,y:.5}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-.5,y:-.5}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
i=0;
onEnterFrame(){
if(this.bridge["Transform"]){
this.i++
this.bridge["Transform"].scale=this.i/350;
console.log(this.i)
}
}
onError_ngameSubmit() {
}
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;
}
onUpdate(t){
super.onUpdate(t)
this.onEnterFrame()
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bridge["Transform"] = this.bridge.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .98, y: .98},position:{x:.5,y:.5}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-.5,y:-.5}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
i=0;
onEnterFrame(){
if(this.bridge["Transform"]){
this.i++
this.bridge["Transform"].scaleX=this.i/350;
console.log(this.i)
}
}
onError_ngameSubmit() {
}
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;
}
onUpdate(t){
super.onUpdate(t)
this.onEnterFrame()
}
}
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic,engine} from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
car: Entity;
bridge: Entity;
road_1: Entity;
road_2: Entity;
road_3: Entity;
road_4: Entity;
life_1: Entity;
life_2: Entity;
life_3: Entity;
bottomGrass: Entity;
carImage: Entity;
score: number;
firstGui: Entity;
onAwake() {
super.onAwake();
this.bottomGrass["Transform"] = this.bottomGrass.getComponent(Transform);
this.firstGui["Transform"] = this.firstGui.getComponent(Transform);
this.car["Transform"] = this.car.getComponent(Transform);
this.carImage["Transform"] = this.carImage.getComponent(Transform);
this.bridge["Transform"] = this.bridge.getComponent(Transform);
this.bottomGrass["Transform"].position.y=engine.renderContext.stageSize.height;
this.setFirstGui()
this.setCarAnimation()
}
onClick_firstGui(){
this.setVisible(this.firstGui,false)
}
//引导页
setFirstGui(){
if(localStorage["firstGui"+window["CFG"].actId]){
this.setVisible(this.firstGui,false)
}else{
localStorage["firstGui"+window["CFG"].actId]="1";
this.setVisible(this.firstGui,true)
}
}
setCarAnimation(){
createTween(this, this.carImage["Transform"],true,{loop:-1})
.set({scale: {x: 1, y: 1},position:{x:0,y:0}})
.to({scale: {x: .98, y: .98},position:{x:.5,y:.5}}, 50)
.to({scale: {x: 1, y: 1},position:{x:-.5,y:-.5}}, 50)
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
setTimeout(() => {
//this.bubbling('fuck', 'start');
//this.onGameOver();
}, 3000);
}
onGameOver() {
this.ngameSubmit();
}
ngameSubmit() {
console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);
const param: any = {
orderId: this.doJoinData,
score: this.score,
gameData: '[]',
sgin: sign,
dynamicData: '[]'
};
this.broadcast('callApi', 1, 'ngameSubmit', param);
}
onResponse_ngameSubmit() {
this.bubbling('showDialog', 'GameOver');
}
i=0;
onEnterFrame(){
if(this.bridge["Transform"]){
this.i++
this.bridge["Transform"].scale.x=this.i/350;
console.log(this.i)
}
}
onError_ngameSubmit() {
}
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;
}
onUpdate(t){
super.onUpdate(t)
this.onEnterFrame()
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{"map":"{\"version\":3,\"file\":\"SampleApi.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/api/SampleApi.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,KAAK,GAAG,MAAM,YAAY,CAAA;AAClC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAE1C;IAAuC,qCAAY;IAAnD;QAAA,qEAmCC;QAjCA,wBAAkB,GAAG,KAAK,CAAC;;IAiC5B,CAAC;IA/BM,2BAAO,GAAb,UAAc,IAAI,EAAE,WAAW;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;;;;;6BACpC,CAAA,IAAI,CAAC,IAAI,IAAI,IAAI,CAAA,EAAjB,cAAiB;wBACnB,WAAM,IAAI,CAAC,OAAO,OAAZ,IAAI,oBAAS,WAAW,GAAK,IAAI,IAAC;;wBAAxC,SAAwC,CAAC;;;;;;KAE1C;IAEe,2BAAO,GAAvB,UAAwB,WAAY;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;;;;;4BAC5C,WAAM,iBAAM,OAAO,+BAAC,WAAW,GAAK,IAAI,IAAC;;wBAAzC,SAAyC,CAAC;wBAEpC,MAAM,GAAG,EAAE,CAAC;wBAElB,IAAG,IAAI,CAAC,MAAM,EAAC;4BACd,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;yBACtC;wBAED,IAAG,WAAW,EAAC;4BACd,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;yBACtC;wBAEK,KAAgB,IAAI,EAAnB,GAAG,SAAA,EAAE,MAAM,YAAA,CAAS;;;;wBAGT,WAAM,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,kBAAkB,CAAC,EAAA;;wBAA9E,QAAQ,GAAG,SAAmE;wBAEpF,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;wBAE7B,WAAO,QAAQ,CAAC,IAAI,EAAC;;;wBAErB,IAAI,CAAC,UAAU,CAAC,GAAC,CAAC,CAAC;;;;;;KAEpB;IACF,gBAAC;AAAD,CAAC,AAnCD,CAAuC,YAAY,GAmClD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { utils, } from 'scilla/src';\r\nimport ApiComponent from \"./ApiComponent\";\r\nimport { callApi } from \"../net/webService\";\r\nvar SampleApi = (function (_super) {\r\n tslib_1.__extends(SampleApi, _super);\r\n function SampleApi() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.ignoreSuccessField = false;\r\n return _this;\r\n }\r\n SampleApi.prototype.callApi = function (name, paramsInput) {\r\n var args = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n args[_i - 2] = arguments[_i];\r\n }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(this.name == name)) return [3, 2];\r\n return [4, this.execute.apply(this, tslib_1.__spread([paramsInput], args))];\r\n case 1:\r\n _a.sent();\r\n _a.label = 2;\r\n case 2: return [2];\r\n }\r\n });\r\n });\r\n };\r\n SampleApi.prototype.execute = function (paramsInput) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var params, _a, uri, method, response, e_1;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0: return [4, _super.prototype.execute.apply(this, tslib_1.__spread([paramsInput], args))];\r\n case 1:\r\n _b.sent();\r\n params = {};\r\n if (this.params) {\r\n utils.injectProp(params, this.params);\r\n }\r\n if (paramsInput) {\r\n utils.injectProp(params, paramsInput);\r\n }\r\n _a = this, uri = _a.uri, method = _a.method;\r\n _b.label = 2;\r\n case 2:\r\n _b.trys.push([2, 4, , 5]);\r\n return [4, callApi(uri, params, method, 'json', this.ignoreSuccessField)];\r\n case 3:\r\n response = _b.sent();\r\n this.onGotResponse(response);\r\n return [2, response.data];\r\n case 4:\r\n e_1 = _b.sent();\r\n this.onGotError(e_1);\r\n return [3, 5];\r\n case 5: return [2];\r\n }\r\n });\r\n });\r\n };\r\n return SampleApi;\r\n}(ApiComponent));\r\nexport default SampleApi;\r\n//# sourceMappingURL=SampleApi.js.map"}
{"map":"{\"version\":3,\"file\":\"MustCompile.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/generated/MustCompile.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAA;AAElC,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAEhD,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,WAAW,CAAC,2BAA2B,EAAE,UAAU,CAAC,CAAC;AAErD,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,WAAW,CAAC,mCAAmC,EAAE,UAAU,CAAC,CAAC;AAE7D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,qCAAqC,EAAE,UAAU,CAAC,CAAC;AAE/D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,WAAW,CAAC,yBAAyB,EAAE,WAAW,CAAC,CAAC;AAEpD,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,WAAW,CAAC,6BAA6B,EAAE,WAAW,CAAC,CAAC;AAExD,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,WAAW,CAAC,gCAAgC,EAAE,WAAW,CAAC,CAAC;AAE3D,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,WAAW,CAAC,4BAA4B,EAAE,WAAW,CAAC,CAAC;AAEvD,OAAO,WAAW,MAAM,qDAAqD,CAAC;AAC9E,WAAW,CAAC,0CAA0C,EAAE,WAAW,CAAC,CAAC;AAErE,OAAO,WAAW,MAAM,kCAAkC,CAAC;AAC3D,WAAW,CAAC,uBAAuB,EAAE,WAAW,CAAC,CAAC;AAElD,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,WAAW,CAAC,kCAAkC,EAAE,WAAW,CAAC,CAAC;AAE7D,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAC1E,WAAW,CAAC,sCAAsC,EAAE,WAAW,CAAC,CAAC;AAEjE,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,WAAW,CAAC,qCAAqC,EAAE,WAAW,CAAC,CAAC;AAEhE,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,WAAW,CAAC,0BAA0B,EAAE,WAAW,CAAC,CAAC;AAErD,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,WAAW,CAAC,iCAAiC,EAAE,WAAW,CAAC,CAAC;AAE5D,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,WAAW,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAC;AAEnD,OAAO,WAAW,MAAM,8CAA8C,CAAC;AACvE,WAAW,CAAC,mCAAmC,EAAE,WAAW,CAAC,CAAC\"}","code":"import { registerDef } from 'scilla';\r\nimport component0 from 'components/ui/Button';\r\nregisterDef('components/ui/Button', component0);\r\nimport component1 from 'components/base/Transform';\r\nregisterDef('components/base/Transform', component1);\r\nimport component2 from 'components/renderer/HtmlRenderer';\r\nregisterDef('components/renderer/HtmlRenderer', component2);\r\nimport component3 from 'components/base/TouchInterrupt';\r\nregisterDef('components/base/TouchInterrupt', component3);\r\nimport component4 from 'components/other/FullStageSize';\r\nregisterDef('components/other/FullStageSize', component4);\r\nimport component5 from 'components/renderer/RectRenderer';\r\nregisterDef('components/renderer/RectRenderer', component5);\r\nimport component6 from 'components/other/CameraController';\r\nregisterDef('components/other/CameraController', component6);\r\nimport component7 from 'components/animation/TouchZoom';\r\nregisterDef('components/animation/TouchZoom', component7);\r\nimport component8 from 'components/renderer/TextureRenderer';\r\nregisterDef('components/renderer/TextureRenderer', component8);\r\nimport component9 from 'components/renderer/TextRenderer';\r\nregisterDef('components/renderer/TextRenderer', component9);\r\nimport component10 from '../../assets/scripts/api/SampleApi';\r\nregisterDef('./scripts/api/SampleApi', component10);\r\nimport component11 from '../../assets/scripts/scenes/SceneStart';\r\nregisterDef('./scripts/scenes/SceneStart', component11);\r\nimport component12 from '../../assets/scripts/api/SamplePollingApi';\r\nregisterDef('./scripts/api/SamplePollingApi', component12);\r\nimport component13 from '../../assets/scripts/scenes/ScenePlay';\r\nregisterDef('./scripts/scenes/ScenePlay', component13);\r\nimport component14 from '../../assets/scripts/navigator/SingleSceneNavigator';\r\nregisterDef('./scripts/navigator/SingleSceneNavigator', component14);\r\nimport component15 from '../../assets/scripts/popup/Popup';\r\nregisterDef('./scripts/popup/Popup', component15);\r\nimport component16 from '../../assets/scripts/scenes/SceneController';\r\nregisterDef('./scripts/scenes/SceneController', component16);\r\nimport component17 from '../../assets/scripts/dialogs/AlertDialogContent';\r\nregisterDef('./scripts/dialogs/AlertDialogContent', component17);\r\nimport component18 from '../../assets/scripts/dialogs/RuleDialogContent';\r\nregisterDef('./scripts/dialogs/RuleDialogContent', component18);\r\nimport component19 from '../../assets/scripts/MainController';\r\nregisterDef('./scripts/MainController', component19);\r\nimport component20 from '../../assets/scripts/dialogs/GameOverPanel';\r\nregisterDef('./scripts/dialogs/GameOverPanel', component20);\r\nimport component21 from '../../assets/scripts/common/Toast';\r\nregisterDef('./scripts/common/Toast', component21);\r\nimport component22 from '../../assets/scripts/game/CustomTextRenderer';\r\nregisterDef('./scripts/game/CustomTextRenderer', component22);\r\n//# sourceMappingURL=MustCompile.js.map"}
{"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/main.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,kBAAkB,EAAC,MAAM,YAAY,CAAA;AAC7C,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAChD,OAAO,yBAAyB,CAAA;AAEhC,IAAI,QAAwB,CAAC;AAE7B,kBAAkB,CAAC;IAClB,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,uBAAuB,EAAE,KAAK;IAC9B,yBAAyB,EAAE,KAAK;IAChC,cAAc,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH,MAAM,UAAgB,OAAO,CAAC,gBAAgB,EAAE,OAAiB,EAAE,UAAoB;IAAvC,wBAAA,EAAA,YAAiB;;;;;oBAChE,QAAQ,GAAG,IAAI,cAAc,EAAE,CAAC;oBAChC,WAAM,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,CAAC,EAAA;;oBAA5D,SAA4D,CAAC;;;;;CAC7D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { modifyEngineConfig } from 'scilla/src';\r\nimport ScillaLauncher from 'scilla-launcher/src';\r\nimport './generated/MustCompile';\r\nvar launcher;\r\nmodifyEngineConfig({\r\n lineHeightRatio: 1.2,\r\n entityEnabled: false,\r\n awakeComponentWhenAdded: false,\r\n sleepComponentWhenRemoved: false,\r\n drawRenderRect: false,\r\n});\r\nexport function startup(containerElement, options, onProgress) {\r\n if (options === void 0) { options = {}; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n launcher = new ScillaLauncher();\r\n return [4, launcher.launch(containerElement, options, onProgress)];\r\n case 1:\r\n _a.sent();\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map"}
{"map":"{\"version\":3,\"file\":\"MainController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/MainController.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,eAAe,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAW,MAAM,EAAU,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC;IAA4C,0CAAe;IAA3D;;IAuFA,CAAC;IA3EA,gCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE5C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAE7C,OAAO,EAAE,CAAC;QAEV,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;IAChG,CAAC;IAED,yCAAgB,GAAhB;QACC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC;IAED,8CAAqB,GAArB,UAAsB,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAehB,CAAC;IAED,uCAAc,GAAd,UAAe,CAAC;IAUhB,CAAC;IAED,kCAAS,GAAT,UAAU,OAAO,EAAE,QAAS;QAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAChB,OAAO,SAAA;YACP,QAAQ,UAAA;SACR,CAAC,CAAA;IACH,CAAC;IAED,mCAAU,GAAV,UAAW,IAAI,EAAE,IAAK,EAAE,QAAS;QAChC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,qCAAY,GAAZ,UAAa,MAAO;IAgBpB,CAAC;IACF,qBAAC;AAAD,CAAC,AAvFD,CAA4C,eAAe,GAuF1D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport ScillaComponent from \"scilla-components/src/base/ScillaComponent\";\r\nimport { engine } from \"scilla/src\";\r\nimport Toast from \"./common/Toast\";\r\nimport { initEnv } from \"./common/BuriedPoint\";\r\nimport Popup from \"./popup/Popup\";\r\nvar MainController = (function (_super) {\r\n tslib_1.__extends(MainController, _super);\r\n function MainController() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n MainController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n engine.dataCenter.set('CFG', window['CFG']);\r\n this._toast = this.Toast.getComponent(Toast);\r\n this._popup = this.Popup.getComponent(Popup);\r\n initEnv();\r\n this.broadcast('callApi', 1, 'ajaxElement', { duibaId: this.hdToolId, activityId: this.actId });\r\n };\r\n MainController.prototype.onGotAjaxElement = function () {\r\n this.broadcast('initGameStage');\r\n };\r\n MainController.prototype.onGotAjaxElementError = function (e) {\r\n console.log(e);\r\n };\r\n MainController.prototype.showErrorToast = function (e) {\r\n };\r\n MainController.prototype.showToast = function (content, duration) {\r\n this._toast.show({\r\n content: content,\r\n duration: duration,\r\n });\r\n };\r\n MainController.prototype.showDialog = function (name, data, callback) {\r\n this._popup.showDialog(name, data, callback);\r\n };\r\n MainController.prototype.showNetError = function (action) {\r\n };\r\n return MainController;\r\n}(ScillaComponent));\r\nexport default MainController;\r\n//# sourceMappingURL=MainController.js.map"}
{"map":"{\"version\":3,\"file\":\"SamplePollingApi.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/api/SamplePollingApi.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAM,KAAK,GAAE,MAAM,YAAY,CAAA;AACtC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAE3C;IAA8C,4CAAY;IAA1D;QAAA,qEA+DC;QA3DA,cAAQ,GAAG,CAAC,CAAC;QACb,WAAK,GAAG,GAAG,CAAC;QAEJ,gBAAU,GAAG,KAAK,CAAC;QA0CjB,eAAS,GAAC;YACnB,OAAO,KAAI,CAAC,UAAU,CAAC;QACxB,CAAC,CAAA;QAMD,iBAAW,GAAC,UAAC,QAAQ;YAIpB,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,YAAY,CAAC;QAC7C,CAAC,CAAA;;IACF,CAAC;IAtDM,kCAAO,GAAb,UAAc,IAAI,EAAE,WAAW;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;;;;;6BACnC,CAAA,IAAI,CAAC,IAAI,IAAI,IAAI,CAAA,EAAjB,cAAiB;wBACpB,WAAM,IAAI,CAAC,OAAO,OAAZ,IAAI,oBAAS,WAAW,GAAK,IAAI,IAAC;;wBAAxC,SAAwC,CAAC;;;;;;KAE1C;IAED,uCAAY,GAAZ,UAAa,IAAI;QAChB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACtB,IAAI,CAAC,MAAM,EAAE,CAAC;SACd;IACF,CAAC;IAEe,kCAAO,GAAvB,UAAwB,WAAY;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;;;;;4BAC5C,WAAM,iBAAM,OAAO,+BAAC,WAAW,GAAK,IAAI,IAAC;;wBAAzC,SAAyC,CAAC;wBAE1C,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;wBAElB,MAAM,GAAG,EAAE,CAAC;wBAElB,IAAI,IAAI,CAAC,MAAM,EAAE;4BAChB,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;yBACtC;wBAED,IAAI,WAAW,EAAE;4BAChB,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;yBACtC;wBAEK,KAAgB,IAAI,EAAnB,GAAG,SAAA,EAAE,MAAM,YAAA,CAAS;;;;wBAGT,WAAM,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,EAAA;;wBAA1G,QAAQ,GAAG,SAA+F;wBAEhH,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;wBAE7B,WAAO,QAAQ,CAAC,IAAI,EAAC;;;wBAErB,IAAI,CAAC,UAAU,CAAC,GAAC,CAAC,CAAC;;;;;;KAEpB;IAMS,iCAAM,GAAhB;QACC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACxB,CAAC;IAQF,uBAAC;AAAD,CAAC,AA/DD,CAA8C,YAAY,GA+DzD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { utils, } from 'scilla/src';\r\nimport ApiComponent from \"./ApiComponent\";\r\nimport { polling } from \"../net/webService\";\r\nvar SamplePollingApi = (function (_super) {\r\n tslib_1.__extends(SamplePollingApi, _super);\r\n function SamplePollingApi() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.maxTimes = 5;\r\n _this.delay = 500;\r\n _this._abortFlag = false;\r\n _this.abortFunc = function () {\r\n return _this._abortFlag;\r\n };\r\n _this.successFunc = function (response) {\r\n return response.origin.code != \"C000000001\";\r\n };\r\n return _this;\r\n }\r\n SamplePollingApi.prototype.callApi = function (name, paramsInput) {\r\n var args = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n args[_i - 2] = arguments[_i];\r\n }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(this.name == name)) return [3, 2];\r\n return [4, this.execute.apply(this, tslib_1.__spread([paramsInput], args))];\r\n case 1:\r\n _a.sent();\r\n _a.label = 2;\r\n case 2: return [2];\r\n }\r\n });\r\n });\r\n };\r\n SamplePollingApi.prototype.abortCallApi = function (name) {\r\n if (this.name == name) {\r\n this._abort();\r\n }\r\n };\r\n SamplePollingApi.prototype.execute = function (paramsInput) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var params, _a, uri, method, response, e_1;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0: return [4, _super.prototype.execute.apply(this, tslib_1.__spread([paramsInput], args))];\r\n case 1:\r\n _b.sent();\r\n this._abortFlag = false;\r\n params = {};\r\n if (this.params) {\r\n utils.injectProp(params, this.params);\r\n }\r\n if (paramsInput) {\r\n utils.injectProp(params, paramsInput);\r\n }\r\n _a = this, uri = _a.uri, method = _a.method;\r\n _b.label = 2;\r\n case 2:\r\n _b.trys.push([2, 4, , 5]);\r\n return [4, polling(this.successFunc, uri, params, this.maxTimes, this.delay, this.abortFunc, method)];\r\n case 3:\r\n response = _b.sent();\r\n this.onGotResponse(response);\r\n return [2, response.data];\r\n case 4:\r\n e_1 = _b.sent();\r\n this.onGotError(e_1);\r\n return [3, 5];\r\n case 5: return [2];\r\n }\r\n });\r\n });\r\n };\r\n SamplePollingApi.prototype._abort = function () {\r\n this._abortFlag = true;\r\n };\r\n return SamplePollingApi;\r\n}(ApiComponent));\r\nexport default SamplePollingApi;\r\n//# sourceMappingURL=SamplePollingApi.js.map"}
[{"flatMessage":"Property 'onGlobalTouchBegin' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.","formatted":"\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m117\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchBegin' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m117\u001b[0m onGlobalTouchBegin(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m124\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchEnd' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m124\u001b[0m onGlobalTouchEnd(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m132\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchMove' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '() => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m132\u001b[0m onGlobalTouchMove(){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~\u001b[0m\n","category":1,"code":2416,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/new-kickball/assets/scripts/scenes/ScenePlay.ts(117,2)"},{"flatMessage":"Property 'onGlobalTouchEnd' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.","formatted":"\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m117\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchBegin' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m117\u001b[0m onGlobalTouchBegin(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m124\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchEnd' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m124\u001b[0m onGlobalTouchEnd(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m132\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchMove' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '() => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m132\u001b[0m onGlobalTouchMove(){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~\u001b[0m\n","category":1,"code":2416,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/new-kickball/assets/scripts/scenes/ScenePlay.ts(124,2)"},{"flatMessage":"Property 'onGlobalTouchMove' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '() => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.","formatted":"\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m117\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchBegin' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m117\u001b[0m onGlobalTouchBegin(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m124\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchEnd' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m124\u001b[0m onGlobalTouchEnd(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m132\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchMove' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '() => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m132\u001b[0m onGlobalTouchMove(){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~\u001b[0m\n","category":1,"code":2416,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/new-kickball/assets/scripts/scenes/ScenePlay.ts(132,2)"}]
{"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/main.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,kBAAkB,EAAC,MAAM,YAAY,CAAA;AAC7C,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAChD,OAAO,yBAAyB,CAAA;AAEhC,IAAI,QAAwB,CAAC;AAE7B,kBAAkB,CAAC;IAClB,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,uBAAuB,EAAE,KAAK;IAC9B,yBAAyB,EAAE,KAAK;IAChC,cAAc,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH,MAAM,UAAgB,OAAO,CAAC,gBAAgB,EAAE,OAAiB,EAAE,UAAoB;IAAvC,wBAAA,EAAA,YAAiB;;;;;oBAChE,QAAQ,GAAG,IAAI,cAAc,EAAE,CAAC;oBAChC,WAAM,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,CAAC,EAAA;;oBAA5D,SAA4D,CAAC;;;;;CAC7D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { modifyEngineConfig } from 'scilla/src';\r\nimport ScillaLauncher from 'scilla-launcher/src';\r\nimport './generated/MustCompile';\r\nvar launcher;\r\nmodifyEngineConfig({\r\n lineHeightRatio: 1.2,\r\n entityEnabled: false,\r\n awakeComponentWhenAdded: false,\r\n sleepComponentWhenRemoved: false,\r\n drawRenderRect: false,\r\n});\r\nexport function startup(containerElement, options, onProgress) {\r\n if (options === void 0) { options = {}; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n launcher = new ScillaLauncher();\r\n return [4, launcher.launch(containerElement, options, onProgress)];\r\n case 1:\r\n _a.sent();\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map"}
[{"flatMessage":"Cannot find module 'scilla/src'.","formatted":"\u001b[96msrc/main.ts\u001b[0m:\u001b[93m7\u001b[0m:\u001b[93m34\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2307: \u001b[0mCannot find module 'scilla/src'.\n\n\u001b[7m7\u001b[0m import {modifyEngineConfig} from 'scilla/src'\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~\u001b[0m\n\u001b[96msrc/main.ts\u001b[0m:\u001b[93m8\u001b[0m:\u001b[93m28\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2307: \u001b[0mCannot find module 'scilla-launcher/src'.\n\n\u001b[7m8\u001b[0m import ScillaLauncher from 'scilla-launcher/src'\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96msrc/main.ts\u001b[0m:\u001b[93m21\u001b[0m:\u001b[93m23\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2354: \u001b[0mThis syntax requires an imported helper but module 'tslib' cannot be found.\n\n\u001b[7m21\u001b[0m export async function startup(containerElement, options: any = {}, onProgress: Function) {\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~\u001b[0m\n","category":1,"code":2307,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/new-kickball/src/main.ts(7,34)"},{"flatMessage":"Cannot find module 'scilla-launcher/src'.","formatted":"\u001b[96msrc/main.ts\u001b[0m:\u001b[93m7\u001b[0m:\u001b[93m34\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2307: \u001b[0mCannot find module 'scilla/src'.\n\n\u001b[7m7\u001b[0m import {modifyEngineConfig} from 'scilla/src'\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~\u001b[0m\n\u001b[96msrc/main.ts\u001b[0m:\u001b[93m8\u001b[0m:\u001b[93m28\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2307: \u001b[0mCannot find module 'scilla-launcher/src'.\n\n\u001b[7m8\u001b[0m import ScillaLauncher from 'scilla-launcher/src'\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96msrc/main.ts\u001b[0m:\u001b[93m21\u001b[0m:\u001b[93m23\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2354: \u001b[0mThis syntax requires an imported helper but module 'tslib' cannot be found.\n\n\u001b[7m21\u001b[0m export async function startup(containerElement, options: any = {}, onProgress: Function) {\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~\u001b[0m\n","category":1,"code":2307,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/new-kickball/src/main.ts(8,28)"},{"flatMessage":"This syntax requires an imported helper but module 'tslib' cannot be found.","formatted":"\u001b[96msrc/main.ts\u001b[0m:\u001b[93m7\u001b[0m:\u001b[93m34\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2307: \u001b[0mCannot find module 'scilla/src'.\n\n\u001b[7m7\u001b[0m import {modifyEngineConfig} from 'scilla/src'\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~\u001b[0m\n\u001b[96msrc/main.ts\u001b[0m:\u001b[93m8\u001b[0m:\u001b[93m28\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2307: \u001b[0mCannot find module 'scilla-launcher/src'.\n\n\u001b[7m8\u001b[0m import ScillaLauncher from 'scilla-launcher/src'\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96msrc/main.ts\u001b[0m:\u001b[93m21\u001b[0m:\u001b[93m23\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2354: \u001b[0mThis syntax requires an imported helper but module 'tslib' cannot be found.\n\n\u001b[7m21\u001b[0m export async function startup(containerElement, options: any = {}, onProgress: Function) {\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~\u001b[0m\n","category":1,"code":2354,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/new-kickball/src/main.ts(21,23)"}]
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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