Commit 5edec547 authored by 俞嘉婷's avatar 俞嘉婷

feat: 贪吃蛇 吃到球 同排都消失

parent 50908491
......@@ -372,7 +372,8 @@ export class runGamePage extends Scene {
}
this.ballList[i].scale = v3(scale, scale)
this.ballList[i].position = v3(x, y)
if (y <= -750) {
// if (y <= -750) {
if (y <= -360) {
// 移除
// let name = this.ballList[i].name.split("Ball")[0]
let name = this.ballList[i].name.substring(0, this.ballList[i].name.length - 4)
......
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