Interface 13
Sun Jan 07 2024 18:31:26 GMT+0000 (Coordinated Universal Time)
Saved by
@马丽
void setup() {
size(520, 520);
playerX = 1 * tileSize + tileSize / 2; // Initial player X position
playerY = 1 * tileSize + tileSize / 2; // Initial player Y position
targetX = 11 * tileSize + tileSize / 2; // winning X position
targetY = 11 * tileSize + tileSize / 2; // Winning Y position
box1X = 2 * tileSize + tileSize / 2; // Yellow Box 1 X position
box1Y = 4 * tileSize + tileSize / 2; // Yellow Box 1 Y position
box2X = 9 * tileSize + tileSize / 2; // Yellow Box 2 X position
box2Y = 5 * tileSize + tileSize / 2; // Yellow Box 2 Y position
box3X = 9 * tileSize + tileSize / 2; // Pink Box 3 X position
box3Y = 7 * tileSize + tileSize / 2; // Pink Box 3 Y position
box4X = 11* tileSize + tileSize / 2; // Pink Box 4 X position
box4Y = 1 * tileSize + tileSize / 2; // Pink Box 4 Y position
box5X = 11 * tileSize + tileSize / 2; // Blue Box 5 X position
box5Y = 4 * tileSize + tileSize / 2; // Blue Box 5 Y position
box6X = 8 * tileSize + tileSize / 2; // Blue Box 6 X position
box6Y = 11 * tileSize + tileSize / 2; // Blue Box 6 Y position
box7X = 8 * tileSize + tileSize / 2; // Red Box 7 X position
box7Y = 3 * tileSize + tileSize / 2; // Red Box 7 Y position
box8X = 7 * tileSize + tileSize / 2; // Red Box 8 X position
box8Y = 9 * tileSize + tileSize / 2; // Red Box 8 Y position
box9X = 6 * tileSize + tileSize / 2; // Red Box 8 X position
box9Y = 3 * tileSize + tileSize / 2; // Red Box 8 Y position
box10X = 7 * tileSize + tileSize / 2; // Red Box 8 X position
box10Y = 1 * tileSize + tileSize / 2; // Red Box 8 Y position
}
content_copyCOPY
Comments