C++ 貪吃蛇穿牆與自定義地圖

博主在上一篇的代碼中作了一些修改,使得貪吃蛇可以穿過邊界而且將地圖的長寬都換成了變量,這樣既可自定義地圖能夠作出諾基亞上的戰役模式。爲了區分沒有牆的邊界與控制檯背景,能夠修改地圖底色,雖然顏色搭配實在不忍直視。ios #include <iostream> #include <windows.h> #include <cstring> #include <time.h> #include <con
相關文章
相關標籤/搜索