Commit 2dfa4ce5 authored by 汪欢's avatar 汪欢

modify

parent 7da17f99
This diff is collapsed.
This diff is collapsed.
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"MAX_ROW": { "MAX_ROW": {
"alias": "图片分成几行", "alias": "图片分成几行",
"type": "number", "type": "number",
"default": 4 "default": 3
}, },
"W": { "W": {
"alias": "图片的宽度", "alias": "图片的宽度",
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
"GAME_TIME": { "GAME_TIME": {
"alias": "游戏时间", "alias": "游戏时间",
"type": "number", "type": "number",
"default": 10 "default": 100
} }
}, },
......
...@@ -101,7 +101,7 @@ export default class GameView extends engine.Container { ...@@ -101,7 +101,7 @@ export default class GameView extends engine.Container {
if (GAME_TIME < 10) { if (GAME_TIME < 10) {
GAME_TIME = '0' + GAME_TIME GAME_TIME = '0' + GAME_TIME
} }
console.log(GAME_TIME); console.log(GAME_TIME,"gametime1");
engine.globalEvent.dispatchEvent('pictures-time-update', { engine.globalEvent.dispatchEvent('pictures-time-update', {
...@@ -185,6 +185,7 @@ export default class GameView extends engine.Container { ...@@ -185,6 +185,7 @@ export default class GameView extends engine.Container {
GAME_TIME = props.GAME_TIME; GAME_TIME = props.GAME_TIME;
// OFFSET_X = props.OFFSET_X; // OFFSET_X = props.OFFSET_X;
// OFFSET_Y = props.OFFSET_Y; // OFFSET_Y = props.OFFSET_Y;
console.log(GAME_TIME,'setuptime')
W = props.W; W = props.W;
H = props.H; H = props.H;
GAP = props.GAP; GAP = props.GAP;
......
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