版本比较
桌面贪吃蛇
正文
增加 4 行删除 4 行
60 行未改动61626364656566676869707071727374757677777879808113 行未改动95969798999910010110210369 行未改动60 行未改动void Game() { send(D, LVM, head -> idx, (head -> y << 16) + head -> x);A: food.x = rand() % (w / S) * S; food.y = rand() % (h / S) * S; food.y = rand() % (h / S) * S; if (head -> x == food.x && head -> y == food.y) { goto A; } send(D, LVM, 1, (food.y << 16) + food.x); node move; node move; move.x = 1; move.y = 0; while (cnt < sum) { if (get(VK_UP)) { move.x = 0; move.y = -1; } } if (get(VK_DOWN)) { move.x = 0; move.y = 1; }13 行未改动 while (true) { Sleep(500); if (get(VK_SPACE)) { break; } } } } if (head -> x == food.x && head -> y == food.y) { ++idx;69 行未改动