Commit 7f4430e2 authored by zjz1994's avatar zjz1994

消消乐暂存

parent 1c884ff1
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,21 @@
"name": "消消乐",
"desc": "消消乐模块",
"props": {
"threeEscore":{
"alias":"三消加分",
"type":"number",
"default":1
},
"fourEscore":{
"alias":"四消加分",
"type":"number",
"default":2
},
"moreEscore":{
"alias":"多消加分",
"type":"number",
"default":3
}
},
"assets": [
{
......
This diff is collapsed.
......@@ -19,11 +19,13 @@ export class GameWrapper extends engine.Container {
engine.globalEvent.addEventListener('game-start',this.start,this);
}
init(){
this._gameView.init();
init(event:engine.Event){
console.log("gamewrapper-init",event);
this._gameView.init(event.data.time,event.data.level);
}
reset(){
this._gameView.reset();
reset(event:engine.Event){
console.log("gamewrapper-reset",event);
this._gameView.reset(event.data.time,event.data.level);;
}
start(){
this._gameView.start();
......
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