道家人 发表于 3 天前

C++推箱子小游戏——个人分析与部门功能重构

一,项目来源
来源:https://www.cnblogs.com/heyu123/p/14844284.html
运行情况:win11,devC++编译器
运行效果:
https://img2024.cnblogs.com/blog/3606935/202502/3606935-20250225233711009-2139243048.png
相干代码:
点击查察代码#include#include#includeusing namespace std;int map={    {1,1,1,1,1,1,1,1},//0 空隙   {1,0,0,0,1,0,0,1},//1 墙   {1,0,1,0,1,4,3,1},//3 目的地   {1,0,0,0,0,4,3,1},//4 箱子   {1,0,1,0,1,4,3,1},//5 人   {1,0,0,0,1,0,0,1},//7 箱子和目的地重合   {1,1,1,1,1,5,0,1},//8 人和目的地   {0,0,0,0,1,1,1,1}};void GamePaint(){    //输出    for(int i=0;i
页: [1]
查看完整版本: C++推箱子小游戏——个人分析与部门功能重构