Skip to content

Commit

Permalink
Final commit for v0.95 release.
Browse files Browse the repository at this point in the history
Prepared two more libAdikted examples
Added some graphics API functions
Started making support of various map sizes
Added support for VSN files
Fixed verification of QUICK_* in script - length up to 511
Added warning if there are unclosed IF loops
  • Loading branch information
mefistotelis committed Jun 24, 2018
1 parent 18ebd2c commit 461efdf
Show file tree
Hide file tree
Showing 88 changed files with 6,460 additions and 1,941 deletions.
7 changes: 7 additions & 0 deletions docs/README_ADIKTED.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ Press F1 for help.
TODO before final:
Fixations in room things parameters (height,other)
Fixations in room corner graphics
Version: 0.95b
Prepared two more libAdikted examples
Added some graphics API functions
Started making support of various map sizes
Added support for VSN files
Fixed verification of QUICK_* in script - length up to 511
Added warning if there are unclosed IF loops
Version: 0.93b
Work on Script Generator started (ctrl+t in script mode)
Work on doxygen documentation of libAdikted started
Expand Down
16 changes: 11 additions & 5 deletions docs/dk_scripting_ref.htm
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,8 @@ <h1><a name="scrpt_group_creatures">6.0 Manipulating Creatures</a></h1>
<br/>

<p class="std">[a] - The new strength of that creature.
The strength must be between&nbsp;0 and&nbsp;255.</p>
The strength must be between&nbsp;0 and&nbsp;255. Putting higher values
will still make a final value smaller than 256, ie. 257 will set it to&nbsp;1.</p>
</div>
<br/>

Expand All @@ -1986,7 +1987,9 @@ <h1><a name="scrpt_group_creatures">6.0 Manipulating Creatures</a></h1>
<br/>

<p class="std">[a] - The new health level of that creature.
The&nbsp;health level must be between&nbsp;0 and&nbsp;1024.</p>
The&nbsp;health level must be between&nbsp;0 and&nbsp;7895.
If&nbsp;the value is greater, some creatures may instantly die when reaching
certain level of experience.</p>
</div>
<br/>

Expand All @@ -2009,7 +2012,8 @@ <h1><a name="scrpt_group_creatures">6.0 Manipulating Creatures</a></h1>
<br/>

<p class="std">[a] - The&nbsp;new armour level of that creature.
The armour level must be between 0 and 255.</p>
The armour level must be between 0 and 255. Putting higher values
will still make a final value smaller than 256.</p>
</div>
<br/>

Expand All @@ -2033,7 +2037,8 @@ <h1><a name="scrpt_group_creatures">6.0 Manipulating Creatures</a></h1>
<br/>

<p class="std">[a] - The new fear level of that creature.
The fear level must be between 0 and 255.</p>
The fear level must be between 0 and 255. Putting higher values
will still make a final value smaller than 256.</p>
</div>
<br/>

Expand Down Expand Up @@ -3003,7 +3008,8 @@ <h1><a name="scrpt_group_infobjctv">9.0
<br/>

<p class="std">[objective] - The objective text,
e.g. &quot;Your dungeon is doomed, Keeper.&quot;.</p>
e.g. &quot;Your&nbsp;dungeon is doomed, Keeper.&quot;. Length of this text cannot
exceed 511&nbsp;characters, otherwise the message will not be displayed.</p>
<br/>

<p class="std">[player] - If the player clicks on the zoom to icon
Expand Down
2 changes: 1 addition & 1 deletion example1/putgems.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main(int argc, char *argv[])
short result;

// create object for storing map
level_init(&lvl);
level_init(&lvl,MFV_DKGOLD,NULL);

// Initialize the message displaying and storing
// (we won't use them in this example,
Expand Down
2 changes: 1 addition & 1 deletion example2/puttrain.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int argc, char *argv[])
printf("%s\n",message_get());

// create object for storing map
level_init(&lvl);
level_init(&lvl,MFV_DKGOLD,NULL);

// Set paths to levels - this will allow us to
// skip the path when formatting level name
Expand Down
33 changes: 33 additions & 0 deletions example3/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Project: viewmap
# Makefile created by Dev-C++ 4.9.9.2

CPP = g++.exe -D__DEBUG__
CC = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES = viewmap_private.res
OBJ = viewmap.o $(RES)
LINKOBJ = viewmap.o $(RES)
LIBS = -L"D:/ProgsNT/Dev-Cpp/lib" -mwindows -lmingw32 -lSDLmain -lSDL ../libadikted/libadikted.a -g3 -march=i386
INCS = -I"D:/ProgsNT/Dev-Cpp/include"
CXXINCS = -I"D:/ProgsNT/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/ProgsNT/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/ProgsNT/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/ProgsNT/Dev-Cpp/include/c++/3.4.2" -I"D:/ProgsNT/Dev-Cpp/include"
BIN = viewmap.exe
CXXFLAGS = $(CXXINCS) -g3 -march=i386
CFLAGS = $(INCS) -Dmain=SDL_main -g3 -march=i386
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before viewmap.exe all-after


clean: clean-custom
${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o "viewmap.exe" $(LIBS)

viewmap.o: viewmap.c
$(CC) -c viewmap.c -o viewmap.o $(CFLAGS)

viewmap_private.res: viewmap_private.rc
$(WINDRES) -i viewmap_private.rc --input-format=rc -o viewmap_private.res -O coff
Loading

0 comments on commit 461efdf

Please sign in to comment.