Commit e0257e72 by Shawn Wang

c

parent d0562263
...@@ -73,7 +73,7 @@ class Main extends egret.DisplayObjectContainer { ...@@ -73,7 +73,7 @@ class Main extends egret.DisplayObjectContainer {
SoundManager.getInstance().play({soundName: "bgm_mp3", startTime: 0, loops: -1}) SoundManager.getInstance().play({soundName: "bgm_mp3", startTime: 0, loops: -1})
platform.onShareAppMessage((...args) => { platform.onShareAppMessage((...args) => {
return { return {
title: "你已经被盯上了 ~", title: "妈~ 我被撩了 !",
imageUrl: "https://ws4.sinaimg.cn/large/006tKfTcgy1fr1hg7dg9oj30nc0iota0.jpg" imageUrl: "https://ws4.sinaimg.cn/large/006tKfTcgy1fr1hg7dg9oj30nc0iota0.jpg"
} }
}) })
......
...@@ -113,7 +113,6 @@ class Map extends egret.Sprite { ...@@ -113,7 +113,6 @@ class Map extends egret.Sprite {
// egret.Tween.get(grid).to({ alpha: 1 }, 300) // egret.Tween.get(grid).to({ alpha: 1 }, 300)
// }) // })
runners.forEach(runner => { runners.forEach(runner => {
console.log(runner.x, runner.y, this.touchArea.hitTestPoint(runner.x * gridWidth, runner.y * gridHeight))
const runnerInMap = this.runnerMap[runner.t_cid] const runnerInMap = this.runnerMap[runner.t_cid]
if (this.touchArea.hitTestPoint(runnerInMap.x, runnerInMap.y)) { if (this.touchArea.hitTestPoint(runnerInMap.x, runnerInMap.y)) {
runnerInMap.alpha = 1 runnerInMap.alpha = 1
...@@ -157,4 +156,4 @@ class Map extends egret.Sprite { ...@@ -157,4 +156,4 @@ class Map extends egret.Sprite {
public release() { public release() {
} }
} }
\ No newline at end of file
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