Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new-kickball
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new-kickball
Commits
cef9d8fe
Commit
cef9d8fe
authored
Jun 04, 2019
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
0a6b78ac
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1980 additions
and
24 deletions
+1980
-24
ScenePlay_20190531103945.ts
.history/assets/scripts/scenes/ScenePlay_20190531103945.ts
+66
-0
ScenePlay_20190604144210.ts
.history/assets/scripts/scenes/ScenePlay_20190604144210.ts
+73
-0
ScenePlay_20190604144323.ts
.history/assets/scripts/scenes/ScenePlay_20190604144323.ts
+73
-0
ScenePlay_20190604152700.ts
.history/assets/scripts/scenes/ScenePlay_20190604152700.ts
+75
-0
ScenePlay_20190604153028.ts
.history/assets/scripts/scenes/ScenePlay_20190604153028.ts
+84
-0
ScenePlay_20190604153126.ts
.history/assets/scripts/scenes/ScenePlay_20190604153126.ts
+86
-0
ScenePlay_20190604153136.ts
.history/assets/scripts/scenes/ScenePlay_20190604153136.ts
+85
-0
ScenePlay_20190604153247.ts
.history/assets/scripts/scenes/ScenePlay_20190604153247.ts
+87
-0
ScenePlay_20190604153255.ts
.history/assets/scripts/scenes/ScenePlay_20190604153255.ts
+87
-0
ScenePlay_20190604153436.ts
.history/assets/scripts/scenes/ScenePlay_20190604153436.ts
+93
-0
ScenePlay_20190604153734.ts
.history/assets/scripts/scenes/ScenePlay_20190604153734.ts
+94
-0
ScenePlay_20190604153921.ts
.history/assets/scripts/scenes/ScenePlay_20190604153921.ts
+94
-0
ScenePlay_20190604153951.ts
.history/assets/scripts/scenes/ScenePlay_20190604153951.ts
+95
-0
ScenePlay_20190604154904.ts
.history/assets/scripts/scenes/ScenePlay_20190604154904.ts
+94
-0
.DS_Store
assets/.DS_Store
+0
-0
main.scene
assets/scenes/main.scene
+764
-22
ScenePlay.ts
assets/scripts/scenes/ScenePlay.ts
+30
-2
No files found.
.history/assets/scripts/scenes/ScenePlay_20190531103945.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604144210.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604144323.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604152700.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153028.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153126.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153136.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153247.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153255.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153436.ts
0 → 100644
View file @
cef9d8fe
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153734.ts
0 → 100644
View file @
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
;
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153921.ts
0 → 100644
View file @
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
;
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604153951.ts
0 → 100644
View file @
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
;
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
;
}
}
.history/assets/scripts/scenes/ScenePlay_20190604154904.ts
0 → 100644
View file @
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
;
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
;
}
}
assets/.DS_Store
View file @
cef9d8fe
No preview for this file type
assets/scenes/main.scene
View file @
cef9d8fe
This diff is collapsed.
Click to expand it.
assets/scripts/scenes/ScenePlay.ts
View file @
cef9d8fe
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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment