一. 演示视频
推箱子_java源码_50张地图_带背景音乐
二. 实现步骤
完整项目获取
https://githubs.xyz/y23.html
部分截图
map地图实现
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000001111111100000
00000001222211100000
00000001232222100000
00000111232112100000
00000144423222100000
00000144431321100000
00000111121232100000
00000000122252100000
00000000111111100000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
00000000000000000000
原理: 0代表空白位置,1代表障碍物,2代表箱子,通过判断来渲染地图
启动类是 Tuixiangzi.java,是java进阶的优秀实战项目。
完整代码获取
https://githubs.xyz/y23.html