This commit is contained in:
赵鑫 2022-12-11 03:28:46 +08:00
parent 528227586a
commit 64eae6bdd1

View File

@ -13,7 +13,7 @@ function draw() {
// 追逐鼠标(); // 追逐鼠标();
// 逃避鼠标(); // 逃避鼠标();
// 小车追逐(); // 小车追逐();
巡游小车(); 小车巡游();
} }
function 追逐鼠标() { function 追逐鼠标() {
@ -46,7 +46,7 @@ function 小车追逐() {
vehicle1.show(); vehicle1.show();
} }
function 巡游小车() { function 小车巡游() {
background(64); background(64);
vehicle1.wander(); vehicle1.wander();
vehicle1.move(); vehicle1.move();