added being able to create a host on the game server now need to work on joining that game

This commit is contained in:
2026-02-06 16:36:13 -06:00
parent 468ab94aa7
commit b2fa3052f3
23 changed files with 432 additions and 326 deletions

View File

@@ -19,7 +19,7 @@ ifeq ($(debug),on)
CPPFLAGS += -Ddebug
endif
BINARIES = game client server
BINARIES = game game_server
all : $(BINARIES)
@@ -66,10 +66,7 @@ $(OBJ)overworld.o : overworld.c $(INC)overworld.h | $(OBJ)
$(OBJ)net.o : net.c $(INC)net.h | $(OBJ)
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
$(OBJ)client.o : client.c $(INC)net.h | $(OBJ)
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
$(OBJ)server.o : server.c $(INC)net.h | $(OBJ)
$(OBJ)game_server.o : game_server.c $(INC)net.h | $(OBJ)
$(CC) $(CPPFLAGS) -o $@ $< $(INCFLAGS)
@@ -84,11 +81,8 @@ $(OBJ)server.o : server.c $(INC)net.h | $(OBJ)
#$(BIN) : $(OBJ) | $(BIN)
# $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
$(BIN)client : $(OBJ)client.o | $(BIN)
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
$(BIN)server: $(OBJ)server.o | $(BIN)
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
$(BIN)game_server: $(OBJ)game_server.o $(OBJ)net.o | $(BIN)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(BIN)game : $(OBJ)main.o $(OBJ)input.o $(OBJ)battle.o $(OBJ)game.o\
$(OBJ)options.o $(OBJ)host.o $(OBJ)join.o $(OBJ)overworld.o $(OBJ)net.o\