Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dzanis committed Jan 2, 2020
0 parents commit ff559d6
Show file tree
Hide file tree
Showing 12 changed files with 6,444 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*/
!/lib
CMakeLists.txt.user
Binary file added BReWErS - X Blade +7trn.xm
Binary file not shown.
14 changes: 14 additions & 0 deletions CMakeLists.txt
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 added Canterwood - Hex Workshop 4.22 kg.xm
Binary file not shown.
25 changes: 25 additions & 0 deletions README.md
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 added lib/ufmod.obj
Binary file not shown.
Loading

0 comments on commit ff559d6

Please sign in to comment.