Commit 58f2c4be authored by haiyoucuv's avatar haiyoucuv

init

parent d39bc5b4
This diff is collapsed.
......@@ -92,7 +92,7 @@ export class AISnake extends Snake {
super.onEnable();
const eye = this.head.getChildByName("范围").getComponent(CircleCollider2D);
eye.radius = 200;
eye.radius = 100;
eye.on(Contact2DType.BEGIN_CONTACT, this.onBeginEye, this);
// eye.on(Contact2DType.END_CONTACT, this.onEndEye, this);
}
......
......@@ -28,6 +28,10 @@
{
"index": 4,
"name": "Body"
},
{
"index": 5,
"name": "Wall"
}
],
"collisionMatrix": {
......
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