-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ff559d6
Showing
12 changed files
with
6,444 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*/ | ||
!/lib | ||
CMakeLists.txt.user |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
project(snake) | ||
add_executable(${PROJECT_NAME} "main.c" "wingl.h" "sound_xm.h" "ufmod.h" "music.xm.h") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mwindows -O3 -s ") # -mwindows чтоб убрать окно консоли | ||
# OpenGL | ||
find_package(OpenGL 2.1 REQUIRED ) | ||
include_directories( ${OPENGL_INCLUDE_DIR} ) | ||
target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES} ) | ||
# ufmod | ||
target_link_libraries(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/lib/ufmod.obj "winmm") | ||
|
||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# snake | ||
|
||
Snake game, C (programming language) , only for windows | ||
|
||
![Alt text](https://github.com/dzanis/snake/blob/master/screenshot.png) | ||
|
||
## Версии | ||
|
||
Последнюю версию смотреть здесь [releases](https://github.com/snake/releases) | ||
|
||
## Сборка | ||
|
||
Проект только для windows | ||
|
||
Для сборки потребуется **MinGW** и **CMake** | ||
|
||
Для конвертации трекерной музыки в **.h** [mbin2h](https://gist.github.com/dzanis/7d1abb4142447a961c8554b41bee03a2) | ||
|
||
## Authors | ||
|
||
* **Zanis Dukalskis** - *git repository* - [dzanis](https://github.com/dzanis) | ||
|
||
## License | ||
|
||
С лицензией пока что не определился. |
Binary file not shown.
Oops, something went wrong.