悉野小楼

导航

2025年12月5日

子弹射击

摘要: Bullet.ts private _lastCheckPos:Laya.Point = new Laya.Point(0, 0); // 上次检测的位置 /** * 检查两条线段是否相交 * 线段1: (x1, y1) -> (x2, y2) * 线段2: (x3, y3) -> (x4, y4) 阅读全文

posted @ 2025-12-05 21:05 悉野 阅读(3) 评论(0) 推荐(0)

laya给自己画边框

摘要: laya给自己画边框 this.graphics.drawRect(0,0,this.width,this.height, "#ccff00", "#ff0000", 2) this.graphics.strokeText(id + "", 30, 0, "", "#ff0000", 20, "") 阅读全文

posted @ 2025-12-05 19:57 悉野 阅读(4) 评论(0) 推荐(0)