Modified the devcpp projects to incorporate the many changes that have occurred since the last devcpp update. Also had to initialize the next and prev properties of Tiles created by newTile, as the generated executable segfaulted due to non-initialized pointers.
parent
29cdd11ec8
commit
675e6862c5
|
|
@ -12,4 +12,4 @@ From Dev-Cpp (Windows):
|
||||||
open devcpp/timesynk-pdcurses.dev // opens the curses client, linked to the PDCurses library.
|
open devcpp/timesynk-pdcurses.dev // opens the curses client, linked to the PDCurses library.
|
||||||
- the pdcurses project assumes curses.h and pdcurses.lib to be in "../../PDCurses/". Once compiled, copy PDCurses.dll to the same directory as the timesynk.exe
|
- the pdcurses project assumes curses.h and pdcurses.lib to be in "../../PDCurses/". Once compiled, copy PDCurses.dll to the same directory as the timesynk.exe
|
||||||
open devcpp/timesynk-sdl.dev // opens the SDL client
|
open devcpp/timesynk-sdl.dev // opens the SDL client
|
||||||
- the SDL project is compiled against SDL-1.2.15, and as such, looks for SDL's "lib/" and "include/" directories in "../../SDL-1.2.15/". Copy SDL.dll to the same directory as timesynk.exe.
|
- the SDL project is compiled against SDL-1.2.15 and SDL_image-1.2.12, and as such, looks for SDL's "lib/" and "include/" directories in "../../SDL-1.2.15/". Copy SDL.dll, SDL_image.dll, libpng15-15.dll, and zlib1.dll to the same directory as timesynk.exe.
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
# Project: timesynk-pdcurses
|
# Project: timesynk-sdl
|
||||||
# Makefile created by Dev-C++ 5.4.2
|
# Makefile created by Dev-C++ 5.4.2
|
||||||
|
|
||||||
CPP = g++.exe
|
CPP = g++.exe
|
||||||
CC = gcc.exe
|
CC = gcc.exe
|
||||||
WINDRES = windres.exe
|
WINDRES = windres.exe
|
||||||
OBJ = ../main.o ../interface/curses.o ../net/sockets.o ../game.o ../player.o
|
OBJ = ../main.o ../interface/sdl.o ../net/sockets.o ../game.o ../player.o ../wall.o ../tiles/tiles.o ../console.o ../context.o ../helper.o ../map.o ../npc.o ../tile.o
|
||||||
LINKOBJ = ../main.o ../interface/curses.o ../net/sockets.o ../game.o ../player.o
|
LINKOBJ = ../main.o ../interface/sdl.o ../net/sockets.o ../game.o ../player.o ../wall.o ../tiles/tiles.o ../console.o ../context.o ../helper.o ../map.o ../npc.o ../tile.o
|
||||||
LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -static-libstdc++ -static-libgcc ../../PDCurses/pdcurses.lib
|
LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -static-libstdc++ -static-libgcc -L"../../SDL-1.2.15/lib" -mwindows -lsdl -lSDL_image -lSDLmain -g3
|
||||||
INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"../../PDCurses"
|
INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"../../SDL-1.2.15/include"
|
||||||
CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"../../PDCurses"
|
CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"../../SDL-1.2.15/include"
|
||||||
BIN = timesynk-pdcurses.exe
|
BIN = timesynk-sdl.exe
|
||||||
CXXFLAGS = $(CXXINCS)
|
CXXFLAGS = $(CXXINCS) -g3
|
||||||
CFLAGS = $(INCS)
|
CFLAGS = $(INCS) -g3
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
|
||||||
.PHONY: all all-before all-after clean clean-custom
|
.PHONY: all all-before all-after clean clean-custom
|
||||||
|
|
@ -28,8 +28,8 @@ $(BIN): $(OBJ)
|
||||||
../main.o: ../main.c
|
../main.o: ../main.c
|
||||||
$(CC) -c ../main.c -o ../main.o $(CFLAGS)
|
$(CC) -c ../main.c -o ../main.o $(CFLAGS)
|
||||||
|
|
||||||
../interface/curses.o: ../interface/curses.c
|
../interface/sdl.o: ../interface/sdl.c
|
||||||
$(CC) -c ../interface/curses.c -o ../interface/curses.o $(CFLAGS)
|
$(CC) -c ../interface/sdl.c -o ../interface/sdl.o $(CFLAGS)
|
||||||
|
|
||||||
../net/sockets.o: ../net/sockets.c
|
../net/sockets.o: ../net/sockets.c
|
||||||
$(CC) -c ../net/sockets.c -o ../net/sockets.o $(CFLAGS)
|
$(CC) -c ../net/sockets.c -o ../net/sockets.o $(CFLAGS)
|
||||||
|
|
@ -39,3 +39,27 @@ $(BIN): $(OBJ)
|
||||||
|
|
||||||
../player.o: ../player.c
|
../player.o: ../player.c
|
||||||
$(CC) -c ../player.c -o ../player.o $(CFLAGS)
|
$(CC) -c ../player.c -o ../player.o $(CFLAGS)
|
||||||
|
|
||||||
|
../wall.o: ../wall.c
|
||||||
|
$(CC) -c ../wall.c -o ../wall.o $(CFLAGS)
|
||||||
|
|
||||||
|
../tiles/tiles.o: ../tiles/tiles.c
|
||||||
|
$(CC) -c ../tiles/tiles.c -o ../tiles/tiles.o $(CFLAGS)
|
||||||
|
|
||||||
|
../console.o: ../console.c
|
||||||
|
$(CC) -c ../console.c -o ../console.o $(CFLAGS)
|
||||||
|
|
||||||
|
../context.o: ../context.c
|
||||||
|
$(CC) -c ../context.c -o ../context.o $(CFLAGS)
|
||||||
|
|
||||||
|
../helper.o: ../helper.c
|
||||||
|
$(CC) -c ../helper.c -o ../helper.o $(CFLAGS)
|
||||||
|
|
||||||
|
../map.o: ../map.c
|
||||||
|
$(CC) -c ../map.c -o ../map.o $(CFLAGS)
|
||||||
|
|
||||||
|
../npc.o: ../npc.c
|
||||||
|
$(CC) -c ../npc.c -o ../npc.o $(CFLAGS)
|
||||||
|
|
||||||
|
../tile.o: ../tile.c
|
||||||
|
$(CC) -c ../tile.c -o ../tile.o $(CFLAGS)
|
||||||
|
|
|
||||||
|
|
@ -24,12 +24,12 @@ HostApplication=
|
||||||
UseCustomMakefile=0
|
UseCustomMakefile=0
|
||||||
CustomMakefile=
|
CustomMakefile=
|
||||||
CommandLine=
|
CommandLine=
|
||||||
Folders=interface,net
|
Folders=interface,net,tiles
|
||||||
IncludeVersionInfo=0
|
IncludeVersionInfo=0
|
||||||
SupportXPThemes=0
|
SupportXPThemes=0
|
||||||
CompilerSet=0
|
CompilerSet=0
|
||||||
CompilerSettings=0000000000000000000000000
|
CompilerSettings=0000000000000000001000000
|
||||||
UnitCount=11
|
UnitCount=28
|
||||||
|
|
||||||
[VersionInfo]
|
[VersionInfo]
|
||||||
Major=1
|
Major=1
|
||||||
|
|
@ -160,3 +160,173 @@ Priority=1000
|
||||||
OverrideBuildCmd=0
|
OverrideBuildCmd=0
|
||||||
BuildCmd=
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit12]
|
||||||
|
FileName=..\display.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit13]
|
||||||
|
FileName=..\map.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit14]
|
||||||
|
FileName=..\wall.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit15]
|
||||||
|
FileName=..\wall.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit16]
|
||||||
|
FileName=..\console.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit17]
|
||||||
|
FileName=..\console.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit18]
|
||||||
|
FileName=..\context.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit19]
|
||||||
|
FileName=..\context.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit20]
|
||||||
|
FileName=..\helper.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit21]
|
||||||
|
FileName=..\helper.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit22]
|
||||||
|
FileName=..\map.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit23]
|
||||||
|
FileName=..\npc.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit24]
|
||||||
|
FileName=..\npc.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit25]
|
||||||
|
FileName=..\tile.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit26]
|
||||||
|
FileName=..\tile.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-pdcurses
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit27]
|
||||||
|
FileName=..\tiles\curses_tiles.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=tiles
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit28]
|
||||||
|
FileName=..\tiles\curses_tiles.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=tiles
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ Focused=-1
|
||||||
[Editor_1]
|
[Editor_1]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
CursorCol=1
|
CursorCol=14
|
||||||
CursorRow=1
|
CursorRow=25
|
||||||
TopLine=1
|
TopLine=1
|
||||||
LeftChar=1
|
LeftChar=1
|
||||||
[Editor_2]
|
[Editor_2]
|
||||||
|
|
@ -25,28 +25,119 @@ LeftChar=1
|
||||||
[Editor_3]
|
[Editor_3]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_4]
|
[Editor_4]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
CursorCol=22
|
CursorCol=1
|
||||||
CursorRow=35
|
CursorRow=61
|
||||||
TopLine=1
|
TopLine=46
|
||||||
LeftChar=1
|
LeftChar=1
|
||||||
[Editor_5]
|
[Editor_5]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_6]
|
[Editor_6]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_7]
|
[Editor_7]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=3
|
||||||
|
CursorRow=26
|
||||||
|
TopLine=13
|
||||||
|
LeftChar=1
|
||||||
[Editor_8]
|
[Editor_8]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_9]
|
[Editor_9]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=4
|
||||||
|
CursorRow=27
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_10]
|
[Editor_10]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=24
|
||||||
|
CursorRow=8
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
|
[Editor_11]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_12]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_13]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_14]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_15]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
|
[Editor_16]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
|
[Editor_17]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_18]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=3
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
|
[Editor_19]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_20]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_21]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_22]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_23]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_24]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_25]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_26]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_27]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ ResourceIncludes=
|
||||||
MakeIncludes=
|
MakeIncludes=
|
||||||
Compiler=
|
Compiler=
|
||||||
CppCompiler=
|
CppCompiler=
|
||||||
Linker=-lsdl -lSDLmain_@@_
|
Linker=-lsdl -lSDL_image -lSDLmain_@@_
|
||||||
IsCpp=0
|
IsCpp=0
|
||||||
Icon=
|
Icon=
|
||||||
ExeOutput=
|
ExeOutput=
|
||||||
|
|
@ -24,12 +24,12 @@ HostApplication=
|
||||||
UseCustomMakefile=0
|
UseCustomMakefile=0
|
||||||
CustomMakefile=
|
CustomMakefile=
|
||||||
CommandLine=
|
CommandLine=
|
||||||
Folders=interface,net
|
Folders=interface,net,tiles
|
||||||
IncludeVersionInfo=0
|
IncludeVersionInfo=0
|
||||||
SupportXPThemes=0
|
SupportXPThemes=0
|
||||||
CompilerSet=0
|
CompilerSet=0
|
||||||
CompilerSettings=0000000000000000000000000
|
CompilerSettings=0000000000000000001000000
|
||||||
UnitCount=11
|
UnitCount=28
|
||||||
|
|
||||||
[VersionInfo]
|
[VersionInfo]
|
||||||
Major=1
|
Major=1
|
||||||
|
|
@ -160,3 +160,173 @@ Priority=1000
|
||||||
OverrideBuildCmd=0
|
OverrideBuildCmd=0
|
||||||
BuildCmd=
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit12]
|
||||||
|
FileName=..\display.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit13]
|
||||||
|
FileName=..\map.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit14]
|
||||||
|
FileName=..\wall.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit15]
|
||||||
|
FileName=..\wall.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit16]
|
||||||
|
FileName=..\tiles\tiles.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=tiles
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit17]
|
||||||
|
FileName=..\tiles\tiles.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=tiles
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit18]
|
||||||
|
FileName=..\console.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit19]
|
||||||
|
FileName=..\console.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit20]
|
||||||
|
FileName=..\context.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit21]
|
||||||
|
FileName=..\context.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit22]
|
||||||
|
FileName=..\helper.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit23]
|
||||||
|
FileName=..\helper.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit24]
|
||||||
|
FileName=..\map.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit25]
|
||||||
|
FileName=..\npc.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit26]
|
||||||
|
FileName=..\npc.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit27]
|
||||||
|
FileName=..\tile.c
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
[Unit28]
|
||||||
|
FileName=..\tile.h
|
||||||
|
CompileCpp=0
|
||||||
|
Folder=timesynk-sdl
|
||||||
|
Compile=1
|
||||||
|
Link=1
|
||||||
|
Priority=1000
|
||||||
|
OverrideBuildCmd=0
|
||||||
|
BuildCmd=
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[Editor_0]
|
[Editor_0]
|
||||||
CursorCol=1
|
CursorCol=7
|
||||||
CursorRow=1
|
CursorRow=13
|
||||||
TopLine=1
|
TopLine=1
|
||||||
LeftChar=1
|
LeftChar=1
|
||||||
Open=0
|
Open=0
|
||||||
|
|
@ -11,34 +11,121 @@ Focused=-1
|
||||||
[Editor_1]
|
[Editor_1]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_2]
|
[Editor_2]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_3]
|
[Editor_3]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_4]
|
[Editor_4]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=34
|
||||||
|
CursorRow=67
|
||||||
|
TopLine=54
|
||||||
|
LeftChar=1
|
||||||
[Editor_5]
|
[Editor_5]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_6]
|
[Editor_6]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
[Editor_7]
|
[Editor_7]
|
||||||
CursorCol=1
|
CursorCol=10
|
||||||
CursorRow=1
|
CursorRow=66
|
||||||
TopLine=1
|
TopLine=31
|
||||||
LeftChar=1
|
LeftChar=1
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
[Editor_8]
|
[Editor_8]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_9]
|
[Editor_9]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=7
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
[Editor_10]
|
[Editor_10]
|
||||||
Open=0
|
Open=0
|
||||||
Top=0
|
Top=0
|
||||||
|
CursorCol=1
|
||||||
|
CursorRow=1
|
||||||
|
TopLine=1
|
||||||
|
LeftChar=1
|
||||||
|
[Editor_11]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_12]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_13]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_14]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_15]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_16]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_17]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_18]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_19]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_20]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_21]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_22]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_23]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_24]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_25]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
[Editor_26]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
CursorCol=25
|
||||||
|
CursorRow=38
|
||||||
|
TopLine=36
|
||||||
|
LeftChar=1
|
||||||
|
[Editor_27]
|
||||||
|
Open=0
|
||||||
|
Top=0
|
||||||
|
|
|
||||||
4
game.c
4
game.c
|
|
@ -111,8 +111,8 @@ int gameCollision(target_x, target_y) {
|
||||||
|
|
||||||
void gameMoveTile(struct Tile *tile, int target_x, int target_y) {
|
void gameMoveTile(struct Tile *tile, int target_x, int target_y) {
|
||||||
// remove tile from chain and connect tile's neighbors to each other
|
// remove tile from chain and connect tile's neighbors to each other
|
||||||
if (tile->prev != NULL) {
|
if (tile->prev) {
|
||||||
if (tile->next != NULL) {
|
if (tile->next) {
|
||||||
tile->prev->next = tile->next;
|
tile->prev->next = tile->next;
|
||||||
} else {
|
} else {
|
||||||
tile->prev->next = NULL;
|
tile->prev->next = NULL;
|
||||||
|
|
|
||||||
1
main.c
1
main.c
|
|
@ -23,7 +23,6 @@ int main(int argc, char *argv[]) {
|
||||||
playerSetCommand(PLAYER_LOOK, playerLook);
|
playerSetCommand(PLAYER_LOOK, playerLook);
|
||||||
|
|
||||||
gameInit();
|
gameInit();
|
||||||
|
|
||||||
// start our program loop!
|
// start our program loop!
|
||||||
while(is_running) {
|
while(is_running) {
|
||||||
if (is_networking)
|
if (is_networking)
|
||||||
|
|
|
||||||
2
tile.c
2
tile.c
|
|
@ -34,6 +34,8 @@ struct Tile *newTile(unsigned int type_id, short id, short x, short y) {
|
||||||
new_tile->id = id;
|
new_tile->id = id;
|
||||||
new_tile->x = x;
|
new_tile->x = x;
|
||||||
new_tile->y = y;
|
new_tile->y = y;
|
||||||
|
new_tile->next = NULL;
|
||||||
|
new_tile->prev = NULL;
|
||||||
switch(type_id) {
|
switch(type_id) {
|
||||||
case WALL:
|
case WALL:
|
||||||
new_tile->data = (WallTile *) malloc(sizeof(WallTile));
|
new_tile->data = (WallTile *) malloc(sizeof(WallTile));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue