用C瞎编的游戏代码
运行需要easyx图形库
用双手玩贪吃蛇,左右互搏
左手龙控制移动 WASD
右手蛇控制移动 ↑↓←→
按p键暂停,按其他键继续
食物(猪)随机生成,获得食物可以增加长度
龙蛇相撞不会直接死亡,但是被撞者会获得一个撞击者的长度
任一方撞击墙壁会死亡
随着时间推移,游戏节奏会越来越快,祝你好运
演示视频(Demo video):https://www.bilibili.com/video/BV1S7411a7np
Easyx graphic library is required for operation.
Play the snake with both hands and fight each other left and right.
Left-handed dragon controls mobile WASD
Right-handed snake controls movement ↑↓←→
Press P to pause, press other keys to continue.
Food (pigs) is randomly generated, and the length can be increased by obtaining food.
Dragon and snake will not die directly when they collide, but the victim will get the length of an impactor.
Either side will die if it hits the wall.
As time goes by, the game will get faster and faster. Good luck.