Skip to content

Commit

Permalink
Thu Nov 7 00:15:07 PST 2002
Browse files Browse the repository at this point in the history
    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
Show file tree
Hide file tree
Showing 58 changed files with 2,167 additions and 44,130 deletions.
89 changes: 0 additions & 89 deletions HISTORY

This file was deleted.

73 changes: 28 additions & 45 deletions Makefile
@@ -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
45 changes: 45 additions & 0 deletions NEWS
@@ -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.
13 changes: 2 additions & 11 deletions README
@@ -1,20 +1,15 @@
README for NetWalk v0.3.2
README for NetWalk v0.4
Ben Lynn

INTRODUCTION

I tried a shareware Windows game called NetWalk once. I liked the idea so
I decided to implement my own so I could play in Linux, and customize it more.

NetWalk is a puzzle game where the object is to connect every terminal to the
main server. (These are represented by coloured boxes, so I guess you could
also imagine them to be water mains, electricity cables, phone lines, etc.)

In this version, not only must every terminal be connected, but every piece of
cable must also be connected to the main server somehow.

This project is written in SmallEiffel.

USAGE

Click on a square to rotate its contents. A left click performs an
Expand All @@ -28,11 +23,7 @@ Edit the "config" file to configure the game and add presets.

COMPILATION

If you have SmallEiffel installed, you can use the Makefile to compile
Netwalk.

I have also included the C code output by SmallEiffel. To compile Netwalk from
this, run the "netwalk.make" script. SmallEiffel is not required.
Type "make" to compile the project.

LICENSE

Expand Down
20 changes: 0 additions & 20 deletions bl_lib.c

This file was deleted.

4 changes: 0 additions & 4 deletions bl_lib.h

This file was deleted.

43 changes: 0 additions & 43 deletions button.e

This file was deleted.

4 changes: 0 additions & 4 deletions cecil.se

This file was deleted.

35 changes: 0 additions & 35 deletions checkbox.e

This file was deleted.

Binary file removed chevarar.ttf
Binary file not shown.

0 comments on commit be8b7be

Please sign in to comment.