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