Skip to content

Commit

Permalink
推箱子v0.0.4
Browse files Browse the repository at this point in the history
修复了在撤回功能仅能在游玩开始的那一个关卡使用的bug
新增了一个 🎉 Features
  • Loading branch information
LanYunDev committed May 14, 2022
1 parent ef99088 commit 08269be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions PushBox.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,10 @@ void game() {
p = Move(head, p);//人物移动函数
if (!Remain_Box) {
Level++;//关卡数加一
p = NULL;//指针指向空指针
free(head);//释放指针空间
head = malloc(sizeof(Position));//头结点分配内存
p = head;//指针重新指向头结点,用于遍历链表
win();//关卡通过✅函数
Level_start = time(NULL); //获取当前时间,单位为s
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ gcc PushBox.c -o PushBox -lncurses

- [x] 无限回滚操作
- [ ] 自动寻路算法
- [ ] 支持直接链接编译
- [ ] 自动生成地图文件
- [ ] 优化代码及其性能
- [ ] 支持3D图形化显示
Expand Down
4 changes: 2 additions & 2 deletions cmake-build-debug/Testing/Temporary/LastTest.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Start testing: May 08 23:46 CST
Start testing: May 15 01:40 CST
----------------------------------------------------------
End testing: May 08 23:46 CST
End testing: May 15 01:40 CST
2 changes: 1 addition & 1 deletion data.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Top_Level:14
Latest_Level:14
Latest_Level:5

0 comments on commit 08269be

Please sign in to comment.