This commit is contained in:
walkpan
2024-11-20 23:58:07 +08:00
parent a0f89d8a90
commit 76d7e6677c
52 changed files with 1940 additions and 6355 deletions

View File

@@ -0,0 +1,18 @@
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('move')
export class move extends Component {
start() {
}
update(dt: number) {
this.node.setPosition(this.node.position.x+dt*15,this.node.position.y)
if(this.node.position.x >= 1700){
this.node.setPosition(-1700,this.node.position.y)
}
}
}