Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restarted project in C. I'm in an anti-OOP phase. Playable, but missing a few features from my Eiffel version, notably the GUI. Thu Nov 7 10:56:02 PST 2002 Added animation when you win. Fri Nov 8 10:07:35 PST 2002 Started GUI. Doing OOP in C. Fri Nov 8 17:39:28 PST 2002 Confused about implementing menus. Code is terrible, but it works. Sun Nov 17 13:16:31 PST 2002 GUI pretty boring. I pick at it every now and then. Got around to implementing wrap. Wed Dec 25 10:35:55 PST 2002 Cleaned up colour code. (Eliminated many SDL_MapRGB()'s) Mon Dec 30 11:40:27 PST 2002 Displays elapsed time. Wed Jan 1 00:19:28 PST 2003 More kludges: widget->localx and localy store relative coordinates, call widget->computexy() to compute screen coordinates. Submenu items locations are computed on the fly. Added menu items to change difficulty level, resizes window automatically. Sun Jan 2 22:23:14 PST 2003 Added no_fourway option. Mon Jan 6 13:18:52 PST 2003 Handles SDL_Quit event, doesn't try to initialize audio. Mon Jan 6 11:36:14 PST 2003 Added high scores. Code is very crufty now, will cleanup after release. Wed Jan 8 23:50:44 PST 2003 Added "showmoves" configuration option. Thu Jan 9 19:39:21 PST 2003 Forgot to remove one hardcoded colour (0xffffff for the pulse colour). Wed Jan 15 11:03:01 PST 2003 Released first C version. [netwalk-0.4.tgz]
- Loading branch information
Ben Lynn
committed
Jan 10, 2003
1 parent
83c81d8
commit be8b7be
Showing
58 changed files
with
2,167 additions
and
44,130 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 |
---|---|---|
@@ -1,60 +1,43 @@ | ||
NOSE_FILES= netwalk.[ch] netwalk.id netwalk.make eiffel.h | ||
ALLFILES = ext_sdl.c bl*.[ch] version.h *.e Makefile LICENSE README HISTORY config *.se cross.ed *.ttf $(NOSE_FILES) | ||
NOSE_SDL_LIBS=\`sdl-config --libs\` | ||
ALLFILES = *.[ch] Makefile LICENSE README NEWS config helmetr.ttf | ||
PROJNAME = netwalk | ||
ifdef WIN32 | ||
CC = i586-mingw32msvc-gcc | ||
EFLAGS=-boost -O2 -I /home/ben/cross/SDL/include/SDL | ||
CFLAGS=-O2 -Wall -I /home/ben/cross/SDL/include/SDL | ||
SDL_LIBS=-L /home/ben/cross/SDL/lib -lSDL | ||
LIBS = $(SDL_LIBS) -lSDL_ttf | ||
CFLAGS=-O2 -Wall -I /home/ben/cross/SDL/include/SDL -mwindows | ||
SDL_LIBS=-L /home/ben/cross/SDL/lib -lmingw32 -lSDLmain -lSDL | ||
LIBS = $(SDL_LIBS) -lSDL_ttf | ||
else | ||
CC = gcc | ||
CFLAGS=-O2 -Wall `sdl-config --cflags` | ||
EFLAGS=-O2 `sdl-config --cflags` | ||
CFLAGS=-Wall -O2 -fomit-frame-pointer `sdl-config --cflags` | ||
SDL_LIBS=`sdl-config --libs` | ||
LIBS = $(SDL_LIBS) -lSDL_ttf | ||
endif | ||
$(PROJNAME) : main.c | ||
$(CC) -o $@ $^ $(CFLAGS) $(LIBS) | ||
|
||
target : netwalk | ||
VERSION=0.4 | ||
DISTNAME=$(PROJNAME)-$(VERSION) | ||
|
||
bl_lib.o : bl_lib.c | ||
dist: $(ALLFILES) | ||
-rm -rf $(DISTNAME) | ||
mkdir $(DISTNAME) | ||
cp -rl --parents $(ALLFILES) $(DISTNAME) | ||
tar chfz $(DISTNAME).tgz $(DISTNAME) | ||
-rm -rf $(DISTNAME) | ||
|
||
netwalk : *.e ext_sdl.c bl_lib.o | ||
ifdef WIN32 | ||
compile_to_c -cecil cecil.se -o $@.exe netwalk $(EFLAGS) ext_sdl.c bl_lib.o $(LIBS) | ||
ed -s netwalk.make < cross.ed | ||
. netwalk.make | ||
else | ||
compile -cecil cecil.se $(EFLAGS) -o $@ netwalk ext_sdl.c bl_lib.o $(LIBS) | ||
bindist : $(PROJNAME) | ||
-rm -rf $(DISTNAME) | ||
mkdir $(DISTNAME) | ||
cp -l LICENSE $(DISTNAME) | ||
cp -l $(PROJNAME) $(DISTNAME)/$(PROJNAME).exe | ||
cp -l *.ttf $(DISTNAME) | ||
cp -l config $(DISTNAME) | ||
cp -l /home/ben/cross/SDL/lib/SDL.dll $(DISTNAME) | ||
cp -l /home/ben/cross/SDL/lib/SDL_ttf.dll $(DISTNAME) | ||
zip $(DISTNAME)-win.zip $(DISTNAME)/* | ||
-rm -rf $(DISTNAME) | ||
endif | ||
|
||
clean : | ||
-rm netwalk *.o | ||
-rm netwalk.[ch] netwalk.id netwalk.make | ||
clean netwalk | ||
projname := $(shell awk '/NETWALK_VERSION/ { print $$3 }' version.h ) | ||
#nose = No SmallEiffel | ||
nose: | ||
compile_to_c -no_split -cecil cecil.se $(EFLAGS) -o netwalk netwalk ext_sdl.c bl_lib.c $(NOSE_SDL_LIBS) -lSDL_ttf | ||
dist: nose $(ALLFILES) | ||
-rm -rf $(projname) | ||
mkdir $(projname) | ||
cp -rl --parents $(ALLFILES) $(projname) | ||
tar chfz $(projname).tgz $(projname) | ||
-rm -rf $(projname) | ||
ifdef WIN32 | ||
bindist : netwalk | ||
-rm -rf $(projname) | ||
mkdir $(projname) | ||
cp -l netwalk.exe $(projname) | ||
cp -l config $(projname) | ||
cp -l /home/ben/cross/SDL/lib/SDL.dll $(projname) | ||
cp -l /home/ben/cross/SDL/lib/SDL_ttf.dll $(projname) | ||
zip $(projname)-win.zip $(projname)/* | ||
-rm -rf $(projname) | ||
endif | ||
-rm $(PROJNAME) *.o |
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,45 @@ | ||
Thu Jan 9 19:39:21 PST 2003 | ||
Forgot to remove one hardcoded colour (0xffffff for the pulse colour). | ||
|
||
Wed Jan 8 23:50:44 PST 2003 | ||
Added "showmoves" configuration option. | ||
|
||
Mon Jan 6 11:36:14 PST 2003 | ||
Added high scores. Code is very crufty now, will cleanup after release. | ||
|
||
Mon Jan 6 13:18:52 PST 2003 | ||
Handles SDL_Quit event, doesn't try to initialize audio. | ||
|
||
Sun Jan 2 22:23:14 PST 2003 | ||
Added no_fourway option. | ||
|
||
Wed Jan 1 00:19:28 PST 2003 | ||
More kludges: widget->localx and localy store relative coordinates, | ||
call widget->computexy() to compute screen coordinates. Submenu items | ||
locations are computed on the fly. | ||
|
||
Added menu items to change difficulty level, resizes window automatically. | ||
|
||
Mon Dec 30 11:40:27 PST 2002 | ||
Displays elapsed time. | ||
|
||
Wed Dec 25 10:35:55 PST 2002 | ||
Cleaned up colour code. (Eliminated many SDL_MapRGB()'s) | ||
|
||
Sun Nov 17 13:16:31 PST 2002 | ||
GUI pretty boring. I pick at it every now and then. | ||
Got around to implementing wrap. | ||
|
||
Fri Nov 8 17:39:28 PST 2002 | ||
Confused about implementing menus. Code is terrible, but it works. | ||
|
||
Fri Nov 8 10:07:35 PST 2002 | ||
Started GUI. Doing OOP in C. | ||
|
||
Thu Nov 7 10:56:02 PST 2002 | ||
Added animation when you win. | ||
|
||
Thu Nov 7 00:15:07 PST 2002 | ||
Restarted project in C. I'm in an anti-OOP phase. | ||
Playable, but missing a few features from my Eiffel version, notably | ||
the GUI. |
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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.