Commit cef9d8fe authored by 任建锋's avatar 任建锋

--

parent 0a6b78ac
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic } from "scilla/src";
import { createSgin } from "../net/webService";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
score: number;
onAwake() {
super.onAwake();
}
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 } from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
score: number;
onAwake() {
super.onAwake();
}
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 } from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
score: number;
onAwake() {
super.onAwake();
}
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 } from "scilla/src";
import { createSgin } from "../net/webService";
import { Entity, Tween } from "scilla/src";
export default class ScenePlay extends ScillaComponent implements INavigatorViewBase {
doJoinData: dynamic;
getNgameStartStatus: dynamic;
bg1: Entity;
bg2: Entity;
bg3: Entity;
bottomGrass: Entity;
score: number;
onAwake() {
super.onAwake();
}
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 } 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;
bottomGrass: Entity;
score: number;
onAwake() {
super.onAwake();
}
bottomGrassTransform
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
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 } 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;
bottomGrass: Entity;
score: number;
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
}
bottomGrassTransform
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 } 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;
bottomGrass: Entity;
score: number;
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
}
bottomGrassTransform
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 } 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;
bottomGrass: Entity;
score: number;
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this)
this.bottomGrassTransform.position.y
}
bottomGrassTransform
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 } 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;
bottomGrass: Entity;
score: number;
onAwake() {
super.onAwake();
this.bottomGrassTransform = this.bottomGrass.getComponent(Transform);
console.log("this.bottomGrassTransform")
console.log(this.bottomGrassTransform)
console.log(this)
//this.bottomGrassTransform.position.y
}
bottomGrassTransform
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 } 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;
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)
//this.bottomGrassTransform.position.y
}
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;
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(engine.renderContext)
//this.bottomGrassTransform.position.y
}
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;
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(engine.renderContext.stageSize.height)
//this.bottomGrassTransform.position.y
}
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;
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
//this.bottomGrassTransform.position.y
}
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;
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;
}
}
No preview for this file type
This diff is collapsed.
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { alien } from "../navigator/StackNavigator";
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { dynamic } from "scilla/src";
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;
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();
//this.onGameOver();
}, 3000);
}
......
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