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
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
...
@@ -67,8 +67,8 @@
...
@@ -67,8 +67,8 @@
"script": "components/base/Transform",
"script": "components/base/Transform",
"properties": {
"properties": {
"position": {
"position": {
"x":
375
,
"x":
0
,
"y":
812
,
"y":
0
,
"_type_": "scilla/support/Vector2D"
"_type_": "scilla/support/Vector2D"
}
}
}
}
...
@@ -95,9 +95,9 @@
...
@@ -95,9 +95,9 @@
"script": "components/base/Transform",
"script": "components/base/Transform",
"properties": {
"properties": {
"position": {
"position": {
"
_hashCode": 35760
,
"
x": 375
,
"
_x": 0
,
"
y": 812
,
"_
y": 0
"_
type_": "scilla/support/Vector2D"
}
}
}
}
},
},
...
@@ -319,26 +319,35 @@
...
@@ -319,26 +319,35 @@
"uuid": "4cf8cf2d-6adf-4f87-843b-617a35e35477"
"uuid": "4cf8cf2d-6adf-4f87-843b-617a35e35477"
}
}
],
],
"disabled":
fals
e
"disabled":
tru
e
},
},
{
{
"name": "ScenePlay",
"name": "ScenePlay",
"components": [
"components": [
{
{
"script": "components/base/Transform",
"script": "components/base/Transform",
"properties": {}
},
{
"script": "./scripts/scenes/ScenePlay",
"properties": {
"properties": {
"doJoinData": "dynamic|API|doJoin",
"pivot": {
"getNgameStartStatus": "dynamic|API|getNgameStartStatus"
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
},
"position": {
"_hashCode": 6925,
"_x": 0,
"_y": 0
}
}
}
},
},
{
{
"script": "
components/renderer/TextureRenderer
",
"script": "
./scripts/scenes/ScenePlay
",
"properties": {
"properties": {
"texture": "res|8e27acb0-5de3-4923-a0d6-74c8f97ecf03"
"doJoinData": "dynamic|API|doJoin",
"getNgameStartStatus": "dynamic|API|getNgameStartStatus",
"bg1": "entity|73de1eea-7afb-470b-aae6-36cb58488cd6",
"bg2": "entity|158f6fab-03f5-47b0-bf46-2417010cadd1",
"bg3": "entity|9f3ace70-7ee5-440f-b464-13d1de4ebd43",
"bottomGrass": "entity|245cea4f-694b-4045-ad1b-9f5d243d8e92"
}
}
},
},
{
{
...
@@ -366,20 +375,693 @@
...
@@ -366,20 +375,693 @@
"uuid": "5bc2f6aa-a570-46cf-bf4e-b2fb1b749bee",
"uuid": "5bc2f6aa-a570-46cf-bf4e-b2fb1b749bee",
"children": [
"children": [
{
{
"name": "
Label
",
"name": "
BgGroup
",
"components": [
"components": [
{
{
"script": "components/base/Transform",
"script": "components/base/Transform",
"properties": {}
"properties": {}
}
],
"uuid": "67a14faa-ac96-491d-8055-42ab37193bf7",
"children": [
{
"name": "Bg3",
"components": [
{
"script": "components/base/Transform",
"properties": {}
}
],
"uuid": "9f3ace70-7ee5-440f-b464-13d1de4ebd43",
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 750,
"y": 0
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|27de4e79-7c3e-44c4-ac26-4f5a7b5436ff",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "87040aca-f6a2-471b-8a1e-e759fd3dbd91"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|27de4e79-7c3e-44c4-ac26-4f5a7b5436ff",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "e209c51a-3297-4ae3-a9ba-d4e6b4f3ea88"
}
],
"disabled": false
},
},
{
{
"script": "components/renderer/TextRenderer",
"name": "Bg2",
"components": [
{
"script": "components/base/Transform",
"properties": {}
}
],
"uuid": "158f6fab-03f5-47b0-bf46-2417010cadd1",
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 750,
"y": 0
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|8aadb067-2e39-468f-8c7f-d377c62f4bc6",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "93c77685-d9e6-4c2a-9c72-0327d8d3ae4e"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|8aadb067-2e39-468f-8c7f-d377c62f4bc6",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "2aba6593-b477-433e-a83c-df2669b2cc8e"
}
],
"disabled": false
},
{
"name": "Bg1",
"components": [
{
"script": "components/base/Transform",
"properties": {}
}
],
"uuid": "73de1eea-7afb-470b-aae6-36cb58488cd6",
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 750,
"y": 0
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|8c8c4b37-5c19-4834-aaa7-18c44ece4507",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "dc8ca2ce-f71d-4690-b361-8de6121368bc"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|8c8c4b37-5c19-4834-aaa7-18c44ece4507",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "ab5fcd20-e680-414c-ace9-50efd6a81209"
}
],
"disabled": false
},
{
"name": "bottomGrassBg",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 375,
"y": 820,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "245cea4f-694b-4045-ad1b-9f5d243d8e92",
"children": [
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 0,
"y": -32
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|682afad8-fbac-484f-8332-be17d09f2e7c"
}
}
],
"uuid": "642e48ba-0a33-4490-ab51-1072fc244313"
},
{
"name": "Image",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 750,
"y": -32
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|682afad8-fbac-484f-8332-be17d09f2e7c"
}
}
],
"uuid": "6706c538-9749-401c-a64a-c3e7dc891135"
}
]
}
]
},
{
"name": "topGroup",
"components": [
{
"script": "components/base/Transform",
"properties": {}
}
],
"uuid": "d7c2ef8e-f0bc-4f6b-86b0-829cdca924e5",
"children": [
{
"name": "l_1_no",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 101.66666666666667,
"y": 92.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|38b1054b-a7a3-496b-97b0-f3405fa30b6f"
}
}
],
"uuid": "9abc54cc-5cbd-4b1a-b2f7-8d289450cc60"
},
{
"name": "l_2_no",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 238.66666666666669,
"y": 92.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|957d2a33-e1c6-4c24-beb8-0d0fc9ef1f5f"
}
}
],
"uuid": "cb50db99-11b4-41ef-b691-cb54843e62bc"
},
{
"name": "l_3_no",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 372.1666666666667,
"y": 92.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|bde9fb31-4413-4b9e-8386-d2a5d92aa295"
}
}
],
"uuid": "4b32b8ea-3d62-4266-a852-e8ddb09b5b7e"
},
{
"name": "equalSignIco",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 485.16666666666674,
"y": 92.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|d8666ee8-e413-42e3-884b-e93b5eb791d8"
}
}
],
"uuid": "90203d80-0c69-40df-829d-ffef557606df"
},
{
"name": "l_4_no",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 604.1666666666667,
"y": 98.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|e70647f2-851f-4679-ac40-3ed7ac54870e"
}
}
],
"uuid": "10a5869a-0f33-4741-8837-422de9a9cb90"
},
{
"name": "l_1_yes",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 107.66666666666667,
"y": 92.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|cf22d764-3adb-4d3d-a17a-1b2cf1ac3bcd"
}
}
],
"uuid": "1b7731f0-d970-4e0c-9ca1-946ca0dfcf38"
},
{
"name": "l_2_yes",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 245.66666666666669,
"y": 92.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|2ac011c7-5f2d-42bb-966c-dd56b2b56623"
}
}
],
"uuid": "b86c1ca8-67b7-4c49-af34-a70c5ee3c8b5"
},
{
"name": "l_3_yes",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 379.6666666666667,
"y": 92.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|a7a6829a-912e-4360-af0a-6ba3825b0ba5"
}
}
],
"uuid": "fa6e0774-013d-40c3-aaea-f16fa8ce08e8"
},
{
"name": "l_4_yes",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 603.6666666666666,
"y": 98.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|944c8e4a-2866-4c51-a412-3ff178594d36"
}
}
],
"uuid": "8cdc58ef-6830-4360-a585-762e03d1875c"
}
]
},
{
"name": "LifeGroup",
"components": [
{
"script": "components/base/Transform",
"properties": {
"properties": {
"text": "scene play"
"position": {
"x": 54,
"y": 270,
"_type_": "scilla/support/Vector2D"
}
}
}
}
}
],
],
"uuid": "708978c5-59b8-4daf-b8b6-4bec1da1f254"
"uuid": "5e36460a-49ea-4f87-b083-8746e87b8202",
"children": [
{
"name": "Label",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 4,
"y": -60
}
}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "生命",
"fillColor": "rgba(215, 4, 11, 1)",
"textStyle": {
"fontSize": 22,
"fontWeight": "bold"
}
}
}
],
"uuid": "afe9a5df-423d-4d0b-90d8-b2089aade721"
},
{
"name": "life_1",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 6,
"y": -12
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|3bc674f9-da49-49b2-9f55-0874296619e3"
}
}
],
"uuid": "1ef2642e-a4ae-4288-9298-ae2331506c67"
},
{
"name": "life_2",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 6,
"y": 42
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|3bc674f9-da49-49b2-9f55-0874296619e3"
}
}
],
"uuid": "b4706170-7b31-483b-9d29-ade0aacd7112"
},
{
"name": "life_3",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 6,
"y": 98
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|3bc674f9-da49-49b2-9f55-0874296619e3"
}
}
],
"uuid": "4a71b600-ad74-4de0-b551-0519649c6b86"
}
]
},
{
"name": "RoadGroup",
"components": [
{
"script": "components/base/Transform",
"properties": {}
}
],
"uuid": "b3cf49b5-33af-4986-bfa7-ea802f43fae1",
"children": [
{
"name": "Road_1",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 48,
"y": 838,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|593c0e65-0479-4800-9705-ed55e49c08f8",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "7264ca3a-9548-4a3d-bdd9-9747b167edd0"
},
{
"name": "Road_2",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 392,
"y": 838,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|593c0e65-0479-4800-9705-ed55e49c08f8",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "4b124280-db7e-473d-a717-03e56379f6c5"
},
{
"name": "Road_3",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 752,
"y": 838,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|b279c8d7-d7a3-4ccd-a393-208a78e0859b",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "51c6e1fd-a881-4e83-820f-8e4507138a90"
},
{
"name": "Road_4",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 1086,
"y": 838,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|b279c8d7-d7a3-4ccd-a393-208a78e0859b",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "0e352bf8-3240-4223-9796-556cdc1db71e"
}
]
}
}
],
],
"disabled": true
"disabled": true
...
@@ -958,10 +1640,6 @@
...
@@ -958,10 +1640,6 @@
]
]
}
}
},
},
{
"uuid": "8e27acb0-5de3-4923-a0d6-74c8f97ecf03",
"url": "singles/bg_play.jpg"
},
{
{
"uuid": "c4d9cb82-8eed-4444-9638-bec8180db868",
"uuid": "c4d9cb82-8eed-4444-9638-bec8180db868",
"url": "singles/button-red.png"
"url": "singles/button-red.png"
...
@@ -974,6 +1652,70 @@
...
@@ -974,6 +1652,70 @@
"uuid": "d6163686-6056-40e1-8d5a-5e4248636a27",
"uuid": "d6163686-6056-40e1-8d5a-5e4248636a27",
"url": "singles/dialog-bg.png"
"url": "singles/dialog-bg.png"
},
},
{
"uuid": "8c8c4b37-5c19-4834-aaa7-18c44ece4507",
"url": "singles/game_scene/bg01.jpg"
},
{
"uuid": "8aadb067-2e39-468f-8c7f-d377c62f4bc6",
"url": "singles/game_scene/bg02.jpg"
},
{
"uuid": "27de4e79-7c3e-44c4-ac26-4f5a7b5436ff",
"url": "singles/game_scene/bg03.jpg"
},
{
"uuid": "d8666ee8-e413-42e3-884b-e93b5eb791d8",
"url": "singles/game_scene/denghao.png"
},
{
"uuid": "682afad8-fbac-484f-8332-be17d09f2e7c",
"url": "singles/game_scene/grow.png"
},
{
"uuid": "3bc674f9-da49-49b2-9f55-0874296619e3",
"url": "singles/game_scene/hpImg.png"
},
{
"uuid": "38b1054b-a7a3-496b-97b0-f3405fa30b6f",
"url": "singles/game_scene/icon_01.png"
},
{
"uuid": "cf22d764-3adb-4d3d-a17a-1b2cf1ac3bcd",
"url": "singles/game_scene/icon_11.png"
},
{
"uuid": "957d2a33-e1c6-4c24-beb8-0d0fc9ef1f5f",
"url": "singles/game_scene/icon_20.png"
},
{
"uuid": "2ac011c7-5f2d-42bb-966c-dd56b2b56623",
"url": "singles/game_scene/icon_21.png"
},
{
"uuid": "bde9fb31-4413-4b9e-8386-d2a5d92aa295",
"url": "singles/game_scene/icon_30.png"
},
{
"uuid": "a7a6829a-912e-4360-af0a-6ba3825b0ba5",
"url": "singles/game_scene/icon_31.png"
},
{
"uuid": "944c8e4a-2866-4c51-a412-3ff178594d36",
"url": "singles/game_scene/prize00.png"
},
{
"uuid": "e70647f2-851f-4679-ac40-3ed7ac54870e",
"url": "singles/game_scene/prize01.png"
},
{
"uuid": "593c0e65-0479-4800-9705-ed55e49c08f8",
"url": "singles/game_scene/zhuzi01.png"
},
{
"uuid": "b279c8d7-d7a3-4ccd-a393-208a78e0859b",
"url": "singles/game_scene/zhuzi02.png"
},
{
{
"uuid": "511419b9-69ad-4458-8837-09cbb6fe8eaf",
"uuid": "511419b9-69ad-4458-8837-09cbb6fe8eaf",
"url": "singles/prize_panel/closeBtn.png"
"url": "singles/prize_panel/closeBtn.png"
...
...
assets/scripts/scenes/ScenePlay.ts
View file @
cef9d8fe
import
ScillaComponent
from
"scilla-components/src/base/ScillaComponent"
;
import
ScillaComponent
from
"scilla-components/src/base/ScillaComponent"
;
import
{
alien
}
from
"../navigator/StackNavigator"
;
import
{
alien
}
from
"../navigator/StackNavigator"
;
import
{
INavigatorViewBase
}
from
"../navigator/VirtualNavigator"
;
import
{
INavigatorViewBase
}
from
"../navigator/VirtualNavigator"
;
import
{
dynamic
}
from
"scilla/src"
;
import
{
dynamic
,
engine
}
from
"scilla/src"
;
import
{
createSgin
}
from
"../net/webService"
;
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
{
export
default
class
ScenePlay
extends
ScillaComponent
implements
INavigatorViewBase
{
doJoinData
:
dynamic
;
doJoinData
:
dynamic
;
getNgameStartStatus
:
dynamic
;
getNgameStartStatus
:
dynamic
;
bg1
:
Entity
;
bg2
:
Entity
;
bg3
:
Entity
;
bottomGrass
:
Entity
;
score
:
number
;
score
:
number
;
bottomGrassTransform
thisTransform
onAwake
()
{
onAwake
()
{
super
.
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
{
onDidEnter
(
last
:
string
,
action
:
alien
.
NavigatorAction
,
parameters
:
any
):
void
{
this
.
entity
.
enabled
=
true
;
this
.
entity
.
enabled
=
true
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// this.bubbling('fuck', 'start');
// this.bubbling('fuck', 'start');
this
.
onGameOver
();
//
this.onGameOver();
},
3000
);
},
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