snake:用C ++编写的Snake游戏

时间:2021-04-02 01:28:06
【文件属性】:
文件名称:snake:用C ++编写的Snake游戏
文件大小:56KB
文件格式:ZIP
更新时间:2021-04-02 01:28:06
c cpp snake gfx libx11 蛇 使用C,C ++,CMAKE构建的简单Snake游戏,用于基于Linux的系统。 图形用户界面 图形界面基于XLib,通过以下包装语言编写,并用C语言编写: (圣母大学),并由我进行了一些修改。 修改后的gfx文件包含在源文件中。 不用说,我对它们没有任何权利。 但是,如果发现我添加的功能(“ gfx_text”,“ gfx_close”)对某些目的有用,请随意使用它们。 编译中 使用具有以下标志的GCC 10.2.1将gfx v2编译(编译为gfx / libgfx.a ): -fPIC -c -lX11 -lm -pthread -DNDEBUG 在游戏本身的编译中,使用了这些标志: -std = c ++ 11 -Wall -Werror -pedantic-errors -Lgfx -lgfx -lX11 -lm -pthread -DNDEBUG 如何启动 打开可执行
【文件预览】:
snake-main
----vertex.cpp(2KB)
----board.cpp(1KB)
----vertex.h(2KB)
----CMakeLists.txt(446B)
----main.cpp(7KB)
----snake.h(3KB)
----README.md(1KB)
----snake.cpp(2KB)
----gfx()
--------libgfx.a(8KB)
--------gfx.h(2KB)
--------gfx.c(5KB)
----board.h(3KB)
----screenshot.gif(20KB)
----snake(129KB)
----exceptions.h(154B)

网友评论