We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c51e2d3 commit 08519bfCopy full SHA for 08519bf
1 file changed
game/tcs.html
@@ -52,10 +52,11 @@
52
// 绘制蛇
53
ctx.fillStyle = '#4CAF50';
54
snake.forEach(segment => ctx.fillRect(segment.x, segment.y, 18, 18));
55
+ snake.forEach(segment => ctx.fillRect2(segment.x, segment.y, 18, 18));
56
// 绘制食物
57
ctx.fillStyle = '#FF0000';
58
ctx.fillRect(food.x, food.y, 18, 18);
- ctx.fillRect(food.y, food.x, 9, 9);
59
+ ctx.fillRect2(food.y, food.x, 18, 18);
60
}
61
62
// 移动蛇:ml-citation{ref="4,7" data="citationList"}
0 commit comments