Skip to content

Commit

Permalink
snake_09_cpp: 上传09年用Dev C++写的“精简版贪吃蛇”
Browse files Browse the repository at this point in the history
  • Loading branch information
czy-29 committed Jan 30, 2021
1 parent 897821c commit cad82dd
Show file tree
Hide file tree
Showing 7 changed files with 538 additions and 0 deletions.
33 changes: 33 additions & 0 deletions snake_09_cpp/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Project: �����̰����
# Makefile created by Dev-C++ 4.9.9.2

CPP = g++.exe -D__DEBUG__
CC = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES = ̰����_private.res
OBJ = main.o $(RES)
LINKOBJ = main.o $(RES)
LIBS = -L"C:/Program Files/DEV-CPP/Lib" -mwindows -lgmon -pg -g3
INCS = -I"C:/Program Files/DEV-CPP/include"
CXXINCS = -I"C:/Program Files/DEV-CPP/lib/gcc/mingw32/3.4.2/include" -I"C:/Program Files/DEV-CPP/include/c++/3.4.2/backward" -I"C:/Program Files/DEV-CPP/include/c++/3.4.2/mingw32" -I"C:/Program Files/DEV-CPP/include/c++/3.4.2" -I"C:/Program Files/DEV-CPP/include"
BIN = ̰����.exe
CXXFLAGS = $(CXXINCS) -pg -g3
CFLAGS = $(INCS) -pg -g3
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before ̰����.exe all-after


clean: clean-custom
${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "̰����.exe" $(LIBS)

main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)

̰����_private.res: ̰����_private.rc
$(WINDRES) -i ̰����_private.rc --input-format=rc -o ̰����_private.res -O coff
7 changes: 7 additions & 0 deletions snake_09_cpp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# snake_09_cpp
该目录下为29大约在2009年(14岁)左右的时候使用Dev C++开发的Windows Only的贪吃蛇游戏,由于年代久远了,Dev C++已经在Win10上跑不起来了,所以现在重新上传至Github的时候也只是根据找到的历史存档直接上传上来的,并没有在如今这个时代重新进行编译和测试。因此对于依然还想尝试build from source的朋友们,我只能说……祝你好运……

当然,如果只是想玩一玩的话,csdn和pudn上都有我当年上传的,包含有预编译二进制的压缩包,大家可以到这些地方去下载来直接玩耍:

- https://download.csdn.net/download/czy_133/1742022
- http://www.pudn.com/Download/item/id/1064306.html
Loading

0 comments on commit cad82dd

Please sign in to comment.