Skip to content

Commit cad82dd

Browse files
committed
snake_09_cpp: 上传09年用Dev C++写的“精简版贪吃蛇”
1 parent 897821c commit cad82dd

File tree

7 files changed

+538
-0
lines changed

7 files changed

+538
-0
lines changed

snake_09_cpp/Makefile.win

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Project: �����̰����
2+
# Makefile created by Dev-C++ 4.9.9.2
3+
4+
CPP = g++.exe -D__DEBUG__
5+
CC = gcc.exe -D__DEBUG__
6+
WINDRES = windres.exe
7+
RES = ̰����_private.res
8+
OBJ = main.o $(RES)
9+
LINKOBJ = main.o $(RES)
10+
LIBS = -L"C:/Program Files/DEV-CPP/Lib" -mwindows -lgmon -pg -g3
11+
INCS = -I"C:/Program Files/DEV-CPP/include"
12+
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"
13+
BIN = ̰����.exe
14+
CXXFLAGS = $(CXXINCS) -pg -g3
15+
CFLAGS = $(INCS) -pg -g3
16+
RM = rm -f
17+
18+
.PHONY: all all-before all-after clean clean-custom
19+
20+
all: all-before ̰����.exe all-after
21+
22+
23+
clean: clean-custom
24+
${RM} $(OBJ) $(BIN)
25+
26+
$(BIN): $(OBJ)
27+
$(CPP) $(LINKOBJ) -o "̰����.exe" $(LIBS)
28+
29+
main.o: main.cpp
30+
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
31+
32+
̰����_private.res: ̰����_private.rc
33+
$(WINDRES) -i ̰����_private.rc --input-format=rc -o ̰����_private.res -O coff

snake_09_cpp/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# snake_09_cpp
2+
该目录下为29大约在2009年(14岁)左右的时候使用Dev C++开发的Windows Only的贪吃蛇游戏,由于年代久远了,Dev C++已经在Win10上跑不起来了,所以现在重新上传至Github的时候也只是根据找到的历史存档直接上传上来的,并没有在如今这个时代重新进行编译和测试。因此对于依然还想尝试build from source的朋友们,我只能说……祝你好运……
3+
4+
当然,如果只是想玩一玩的话,csdn和pudn上都有我当年上传的,包含有预编译二进制的压缩包,大家可以到这些地方去下载来直接玩耍:
5+
6+
- https://download.csdn.net/download/czy_133/1742022
7+
- http://www.pudn.com/Download/item/id/1064306.html

0 commit comments

Comments
 (0)