File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ set(CMAKE_C_STANDARD 23)
66find_package (Curses REQUIRED )
77include_directories (${CURSES_INCLUDE_DIR} )
88
9- add_executable (PushBox main .c )
9+ add_executable (PushBox.c )
1010target_link_libraries (PushBox ${CURSES_LIBRARY} )
1111
File renamed without changes.
Original file line number Diff line number Diff line change 1- ## 前言
1+ ## 前言 Foreword
22
33这个是我学校工程实践的作业.作业采用C语言编写,语言标准C23,采用全程采用Clion作为我的IDE进行编写和调试.
44
1212
1313对于代码内容关于ncurses.h库那些函数不太明白可以看看我写的[ 这篇文章] ( https://lanyundev.vercel.app/posts/a5945d21.html ) 噢
1414
15- ## 功能
15+ ## 功能 Function
1616
1717目前实现的功能有:
1818
29299 . 关卡数和关卡游玩时间显示功能
303010 . 等等…
3131
32- ## 如何运行?
32+ ## 如何运行? ⚙ How to run?
3333
34- 前提:
34+ > 运行前提(先决)条件👇
35+ >
36+ > > 环境中有ncurses.h库,中文字体库及其一些特殊字符.
37+ > > 目前已知能够在Unix等Linux类OS下运行.Windows用户请自行测试(大概率不支持).
3538
36- 环境中有ncurses.h库,中文字体库及其一些特殊字符.
37-
38- 目前已知能够在Unix等Linux类OS下运行.Windows用户请自行测试(大概率不支持).
39-
40- 在` main.c ` 目录下输入命令:
39+ 在` PushBox.c ` 目录下输入命令:
4140
4241``` bash
43- gcc main .c -o PushBox -lncurses
42+ gcc PushBox .c -o PushBox -lncurses
4443./PushBox
4544```
4645
@@ -50,13 +49,15 @@ gcc main.c -o PushBox -lncurses
5049
5150![ v0.0.3-2022-05-07 00.10.53] ( README/v0.0.3-2022-05-07%2000.10.53.gif )
5251
53- ## Todo
52+ ## 🎉 Features
5453
5554我鸽了,欢迎大佬补充然后做.
5655
57- 1 . 自动寻路算法
58- 2 . 无限回滚操作 已完成✅--本人实现
59- 3 . 自动生成地图文件
60- 4 . 优化代码及其性能
61- 5 . 等等…
56+ - [x] 无限回滚操作
57+ - [ ] 自动寻路算法
58+ - [ ] 自动生成地图文件
59+ - [ ] 优化代码及其性能
60+ - [ ] 支持3D图形化显示
61+ - [ ] 支持Windows平台
62+ - [ ] 等等…
6263
Original file line number Diff line number Diff line change 11/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/Applications/CLion.app/Contents/bin/ninja/mac/ninja -G Ninja -S /Users/lanyun/CLionProjects/PushBox -B /Users/lanyun/CLionProjects/PushBox/cmake-build-debug
2- -- Configuring done
3- -- Generating done
4- -- Build files have been written to: /Users/lanyun/CLionProjects/PushBox/cmake-build-debug
2+ CMake Error at CMakeLists.txt:10 (target_link_libraries):
3+ Cannot specify link libraries for target "PushBox" which is not built by
4+ this project.
5+
6+
7+ -- Configuring incomplete, errors occurred!
8+ See also "/Users/lanyun/CLionProjects/PushBox/cmake-build-debug/CMakeFiles/CMakeOutput.log".
9+ See also "/Users/lanyun/CLionProjects/PushBox/cmake-build-debug/CMakeFiles/CMakeError.log".
Original file line number Diff line number Diff line change 1- Start testing: May 07 11:12 CST
1+ Start testing: May 07 23:26 CST
22----------------------------------------------------------
3- End testing: May 07 11:12 CST
3+ End testing: May 07 23:26 CST
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ cmake_ninja_workdir = /Users/lanyun/CLionProjects/PushBox/cmake-build-debug/
4949
5050build cmake_object_order_depends_target_PushBox : phony || CMakeFiles/PushBox.dir
5151
52- build CMakeFiles/PushBox.dir/main .c.o : C_COMPILER__PushBox_Debug /Users/lanyun/CLionProjects/PushBox/main .c || cmake_object_order_depends_target_PushBox
53- DEP_FILE = CMakeFiles/PushBox.dir/main .c.o.d
52+ build CMakeFiles/PushBox.dir/PushBox .c.o : C_COMPILER__PushBox_Debug /Users/lanyun/CLionProjects/PushBox/PushBox .c || cmake_object_order_depends_target_PushBox
53+ DEP_FILE = CMakeFiles/PushBox.dir/PushBox .c.o.d
5454 FLAGS = -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -std=gnu2x
5555 OBJECT_DIR = CMakeFiles/PushBox.dir
5656 OBJECT_FILE_DIR = CMakeFiles/PushBox.dir
@@ -63,7 +63,7 @@ build CMakeFiles/PushBox.dir/main.c.o: C_COMPILER__PushBox_Debug /Users/lanyun/C
6363# ############################################
6464# Link the executable PushBox
6565
66- build PushBox : C_EXECUTABLE_LINKER__PushBox_Debug CMakeFiles/PushBox.dir/main .c.o | /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libcurses.tbd
66+ build PushBox : C_EXECUTABLE_LINKER__PushBox_Debug CMakeFiles/PushBox.dir/PushBox .c.o | /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libcurses.tbd
6767 FLAGS = -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
6868 LINK_LIBRARIES = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libcurses.tbd
6969 OBJECT_DIR = CMakeFiles/PushBox.dir
You can’t perform that action at this time.
0 commit comments