Commit deabe0d8 authored by wildfirecode's avatar wildfirecode

1

parent c36439dd
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import { props } from "../props"; import { props } from "../props";
import qietu from "./qietu"; import qietu from "./qietu";
import { getIndexFromRC, getRandomArray, getTextureByName } from "./utils"; import { getIndexFromRC, getRandomArray, getTextureByName, getTexture } from "./utils";
import ObjectPool = engine.ObjectPool; import ObjectPool = engine.ObjectPool;
// let OFFSET_X; // let OFFSET_X;
...@@ -24,6 +24,9 @@ export default class GameView extends engine.Container { ...@@ -24,6 +24,9 @@ export default class GameView extends engine.Container {
private _timeCounter = 0; private _timeCounter = 0;
start() { start() {
this.guideHole = new engine.Image(getTexture());
this.guideHole.mouseChildren = this.guideHole.mouseEnabled = false;
if (this.pictures) { if (this.pictures) {
for (const pic of this.pictures) { for (const pic of this.pictures) {
if (pic && pic.parent) if (pic && pic.parent)
...@@ -150,8 +153,6 @@ export default class GameView extends engine.Container { ...@@ -150,8 +153,6 @@ export default class GameView extends engine.Container {
createRects() { } createRects() { }
setup() { setup() {
this.guideHole = new engine.Image(getTextureByName('遮罩'));
this.guideHole.mouseChildren = this.guideHole.mouseEnabled = false;
MAX_COL = props.MAX_COL; MAX_COL = props.MAX_COL;
MAX_ROW = props.MAX_ROW; MAX_ROW = props.MAX_ROW;
......
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