rocksndiamonds.git
4 months agowhite space changes
Holger Schemel [Sun, 15 Sep 2024 17:52:39 +0000 (19:52 +0200)]
white space changes

4 months agomoved function
Holger Schemel [Sun, 15 Sep 2024 17:31:29 +0000 (19:31 +0200)]
moved function

4 months agoadded tape patch mode to set property bit to use the old BD engine
Holger Schemel [Sun, 15 Sep 2024 14:18:09 +0000 (16:18 +0200)]
added tape patch mode to set property bit to use the old BD engine

4 months agoadded tape property bit for tapes using the old BD game engine
Holger Schemel [Sun, 15 Sep 2024 13:51:38 +0000 (15:51 +0200)]
added tape property bit for tapes using the old BD game engine

This tape property bit is either set when loading old BD replays that
are explicitly tagged to use the old BD game engine, or can manually
be set for existing tape files by using the "patch tapes" command (by
using the patch command from the following commit).

4 months agochanged tape flag for solved level to tape property bit
Holger Schemel [Sun, 15 Sep 2024 12:13:06 +0000 (14:13 +0200)]
changed tape flag for solved level to tape property bit

This change has the advantage that some more property bits can be
stored in tape files.

It has the disadvantage that previous program versions may treat a
tape as a solution tape when it really isn't (but instead has other
property bits set). As this is only used for the "dump tape" command
on the command line, this potential problem can safely be ignored.

4 months agochanged code to match new GDash code (player snapping/moving)
Holger Schemel [Fri, 13 Sep 2024 15:52:36 +0000 (17:52 +0200)]
changed code to match new GDash code (player snapping/moving)

4 months agomoved redundant code to function
Holger Schemel [Thu, 12 Sep 2024 23:57:23 +0000 (01:57 +0200)]
moved redundant code to function

4 months agoadded parameter to function
Holger Schemel [Thu, 12 Sep 2024 23:54:11 +0000 (01:54 +0200)]
added parameter to function

4 months agominor changes
Holger Schemel [Thu, 12 Sep 2024 23:10:43 +0000 (01:10 +0200)]
minor changes

4 months agorenamed variable
Holger Schemel [Thu, 12 Sep 2024 23:07:32 +0000 (01:07 +0200)]
renamed variable

4 months agorenamed functions
Holger Schemel [Thu, 12 Sep 2024 22:35:46 +0000 (00:35 +0200)]
renamed functions

4 months agominor changes
Holger Schemel [Thu, 12 Sep 2024 22:32:10 +0000 (00:32 +0200)]
minor changes

4 months agorenamed variable
Holger Schemel [Thu, 12 Sep 2024 22:22:27 +0000 (00:22 +0200)]
renamed variable

4 months agoremoved function (as elements are always stored as scanned)
Holger Schemel [Thu, 12 Sep 2024 22:18:17 +0000 (00:18 +0200)]
removed function (as elements are always stored as scanned)

4 months agoadded comment
Holger Schemel [Thu, 12 Sep 2024 22:12:54 +0000 (00:12 +0200)]
added comment

4 months agoremoved function (as there is no scanned bladder in BD engine)
Holger Schemel [Thu, 12 Sep 2024 22:06:34 +0000 (00:06 +0200)]
removed function (as there is no scanned bladder in BD engine)

4 months agoremoved unneeded function call
Holger Schemel [Thu, 12 Sep 2024 21:59:50 +0000 (23:59 +0200)]
removed unneeded function call

4 months agoadded function
Holger Schemel [Thu, 12 Sep 2024 21:55:55 +0000 (23:55 +0200)]
added function

4 months agorenamed functions
Holger Schemel [Thu, 12 Sep 2024 21:47:56 +0000 (23:47 +0200)]
renamed functions

4 months agoadded array to double a direction in BD game engine
Holger Schemel [Thu, 12 Sep 2024 19:38:35 +0000 (21:38 +0200)]
added array to double a direction in BD game engine

4 months agowhite space changes
Holger Schemel [Thu, 12 Sep 2024 19:27:17 +0000 (21:27 +0200)]
white space changes

4 months agorenamed functions
Holger Schemel [Thu, 12 Sep 2024 19:13:07 +0000 (21:13 +0200)]
renamed functions

4 months agowhite space changes
Holger Schemel [Thu, 12 Sep 2024 19:03:57 +0000 (21:03 +0200)]
white space changes

4 months agofixed showing game actions after game end when request door opens/closes
Holger Schemel [Wed, 11 Sep 2024 16:56:54 +0000 (18:56 +0200)]
fixed showing game actions after game end when request door opens/closes

This fixes a bug in commit 90028d7d. It occurs when "ask on game over"
is disabled, the player has died in a game and a key to restart the
game is pressed (like "restart game", "replay & pause before end" or
"quick load game"), which causes the newly started game to immediately
freeze (although it can still be stopped with the "space" or "escape"
key).

4 months agoremoved end marker of artwork config token list (not really needed)
Holger Schemel [Mon, 9 Sep 2024 22:29:08 +0000 (00:29 +0200)]
removed end marker of artwork config token list (not really needed)

4 months agocode formatting changes
Holger Schemel [Mon, 9 Sep 2024 22:25:10 +0000 (00:25 +0200)]
code formatting changes

4 months agoremoved list of levelset config token names (not really needed)
Holger Schemel [Mon, 9 Sep 2024 22:17:36 +0000 (00:17 +0200)]
removed list of levelset config token names (not really needed)

4 months agoadded levelset config flag to force using old game engine for BD replays
Holger Schemel [Mon, 9 Sep 2024 21:45:42 +0000 (23:45 +0200)]
added levelset config flag to force using old game engine for BD replays

4 months agoremoved setup options and variables not used anymore
Holger Schemel [Mon, 9 Sep 2024 21:31:06 +0000 (23:31 +0200)]
removed setup options and variables not used anymore

These setup options and variables have been obsoleted by commit
a3ac3523.

4 months agofixed new, 3-state setup option to allow skipping levels (yes/no/ask)
Holger Schemel [Mon, 9 Sep 2024 21:20:37 +0000 (23:20 +0200)]
fixed new, 3-state setup option to allow skipping levels (yes/no/ask)

This fixes commit a3ac3523.

4 months agofixed alternative suffixes .old/.new for graphics_set.ecs/.aga
Holger Schemel [Mon, 9 Sep 2024 21:16:50 +0000 (23:16 +0200)]
fixed alternative suffixes .old/.new for graphics_set.ecs/.aga

This fixes commit 869cd97d.

4 months agoadded comments
Holger Schemel [Thu, 5 Sep 2024 21:40:52 +0000 (23:40 +0200)]
added comments

4 months agoimproved output for failed tapes of automated tape tests
Holger Schemel [Wed, 4 Sep 2024 22:19:41 +0000 (00:19 +0200)]
improved output for failed tapes of automated tape tests

Failed tapes in automated tape tests (like "autotest <level set>") are
now separated into the following three cases:

- "BROKEN"     for newer tapes with "solution tape flag" set
- "UNSOLVABLE" for newer tapes with "solution tape flag" NOT set
- "FAILED"     for older tapes that do not have a "solution tape flag"

That way, it is easier to see if a failed tape is broken or unsolvable
"by design" (or too old to tell).

4 months agochanged code for handling replicators and conveyor belts in BD engine
Holger Schemel [Tue, 3 Sep 2024 20:00:44 +0000 (22:00 +0200)]
changed code for handling replicators and conveyor belts in BD engine

This change should not break any tapes.

4 months agoadded comments
Holger Schemel [Tue, 3 Sep 2024 19:40:26 +0000 (21:40 +0200)]
added comments

4 months agoremoved code which has no effect anymore
Holger Schemel [Tue, 3 Sep 2024 19:28:26 +0000 (21:28 +0200)]
removed code which has no effect anymore

4 months agochanged how the native BD game engine handles scanned game elements
Holger Schemel [Mon, 2 Sep 2024 23:54:30 +0000 (01:54 +0200)]
changed how the native BD game engine handles scanned game elements

After scanning (processing) game elements on the playfield using the
native BD game engine, game elements are marked as "scanned" to
prevent processing them again (for example, newly created elements in
the next row that are just about to be scanned). Previously, elements
were marked by setting a "scanned" bit. Now, elements are marked by
using special "scanned" variants for the already processed element.

There is another change that breaks old cave replays (BD style tapes):
When checking game element properties, the old engine always checked
the non-scanned elements, while the new engine checks the element just
as it is (that is, either scanned or non-scanned), which causes some
game elements (like the amoeba) to behave slightly differently.

This is handled by a special flag to choose the old or new behaviour,
which is currently still set to use the old behaviour.

4 months agoadded functions to check if a BD engine element has a certain property
Holger Schemel [Mon, 2 Sep 2024 22:27:18 +0000 (00:27 +0200)]
added functions to check if a BD engine element has a certain property

4 months agoadded missing default case in switch statement
Holger Schemel [Sun, 1 Sep 2024 15:33:43 +0000 (17:33 +0200)]
added missing default case in switch statement

5 months agochanged using non-scanned elements when reading C64 cave files
Holger Schemel [Sat, 31 Aug 2024 19:21:48 +0000 (21:21 +0200)]
changed using non-scanned elements when reading C64 cave files

5 months agochanged using non-scanned effect elements when reading BDCFF files
Holger Schemel [Sat, 31 Aug 2024 19:19:26 +0000 (21:19 +0200)]
changed using non-scanned effect elements when reading BDCFF files

5 months agofixed bug with restarting game after playing unsuccessful tape
Holger Schemel [Sat, 31 Aug 2024 19:03:24 +0000 (21:03 +0200)]
fixed bug with restarting game after playing unsuccessful tape

When losing a game, pressing "space" or "enter" key before being asked
to play again restarts the game. When replaying a tape, a new game was
started instead of returning to the main menu. This commit fixes this
bug.

5 months agocleanup of BD engine game elements palette in editor
Holger Schemel [Wed, 28 Aug 2024 22:11:05 +0000 (00:11 +0200)]
cleanup of BD engine game elements palette in editor

5 months agoadded game element palette section for scanned BD elements in editor
Holger Schemel [Wed, 28 Aug 2024 21:06:14 +0000 (23:06 +0200)]
added game element palette section for scanned BD elements in editor

5 months agoadded using special editor graphics for scanned BD elements
Holger Schemel [Tue, 27 Aug 2024 21:56:03 +0000 (23:56 +0200)]
added using special editor graphics for scanned BD elements

If additional editor graphics are defined for certain BD elements,
also use these graphics for scanned BD elements in the level editor
(which always use the graphics of their non-scanned counterparts).

5 months agoadded support for scanned BD elements in editor (but not in game yet)
Holger Schemel [Tue, 27 Aug 2024 21:29:33 +0000 (23:29 +0200)]
added support for scanned BD elements in editor (but not in game yet)

This change still converts all scanned BD elements to their unscanned
counterparts when playing a game using the BD engine, but now supports
handling of scanned elements in the level editior.

5 months agoadded using non-scanned element graphics for scanned BD elements
Holger Schemel [Tue, 27 Aug 2024 21:24:09 +0000 (23:24 +0200)]
added using non-scanned element graphics for scanned BD elements

5 months agoadded exported function to get non-scanned BD element (not used yet)
Holger Schemel [Tue, 27 Aug 2024 21:16:45 +0000 (23:16 +0200)]
added exported function to get non-scanned BD element (not used yet)

5 months agoadded mapping of scanned BD elements to R'n'D elements (not used yet)
Holger Schemel [Tue, 27 Aug 2024 21:12:51 +0000 (23:12 +0200)]
added mapping of scanned BD elements to R'n'D elements (not used yet)

5 months agoadded R'n'D element definitions for scanned BD elements (not used yet)
Holger Schemel [Tue, 27 Aug 2024 20:58:32 +0000 (22:58 +0200)]
added R'n'D element definitions for scanned BD elements (not used yet)

5 months agofixed smooth animations for snapping in BD engine for non-black space
Holger Schemel [Mon, 26 Aug 2024 19:53:42 +0000 (21:53 +0200)]
fixed smooth animations for snapping in BD engine for non-black space

5 months agofixed bugs with enabling/disabling sound/music in setup menu
Holger Schemel [Thu, 22 Aug 2024 22:01:39 +0000 (00:01 +0200)]
fixed bugs with enabling/disabling sound/music in setup menu

5 months agofixed bug with fading music after disabling in setup menu
Holger Schemel [Thu, 22 Aug 2024 21:22:32 +0000 (23:22 +0200)]
fixed bug with fading music after disabling in setup menu

5 months agofixed bugs with starting/stopping sound/music in main menu
Holger Schemel [Thu, 22 Aug 2024 21:16:19 +0000 (23:16 +0200)]
fixed bugs with starting/stopping sound/music in main menu

5 months agomoved code in BD engine (should not change engine functionality)
Holger Schemel [Thu, 22 Aug 2024 18:23:54 +0000 (20:23 +0200)]
moved code in BD engine (should not change engine functionality)

5 months agoadded more support for reading scanned BD elements from cave files
Holger Schemel [Thu, 22 Aug 2024 18:12:14 +0000 (20:12 +0200)]
added more support for reading scanned BD elements from cave files

5 months agoremoved unneeded variable
Holger Schemel [Thu, 22 Aug 2024 17:50:55 +0000 (19:50 +0200)]
removed unneeded variable

5 months agochanged to more generic approach to use only unscanned BD elements
Holger Schemel [Thu, 22 Aug 2024 17:42:54 +0000 (19:42 +0200)]
changed to more generic approach to use only unscanned BD elements

While the previous approach only worked when reading caves from BDCFF
files, the new solution works for all cave file formats, as it changes
the internal cave structure after loading.

5 months agoadded function to set all elements in BD cave to unscanned (not used yet)
Holger Schemel [Thu, 22 Aug 2024 17:33:36 +0000 (19:33 +0200)]
added function to set all elements in BD cave to unscanned (not used yet)

5 months agoadded functions for scanned/non-scanned BD elements (not used yet)
Holger Schemel [Thu, 22 Aug 2024 17:28:28 +0000 (19:28 +0200)]
added functions for scanned/non-scanned BD elements (not used yet)

5 months agoadded separate buffer for playfield (un)covering in BD engine
Holger Schemel [Sun, 18 Aug 2024 11:25:56 +0000 (13:25 +0200)]
added separate buffer for playfield (un)covering in BD engine

5 months agocode formatting changes
Holger Schemel [Sat, 17 Aug 2024 23:38:04 +0000 (01:38 +0200)]
code formatting changes

5 months agoadded support for BDCFF token "AddBackward"
Holger Schemel [Sat, 17 Aug 2024 17:13:44 +0000 (19:13 +0200)]
added support for BDCFF token "AddBackward"

5 months agoadded mapping of normal to runtime BD elements (not used yet)
Holger Schemel [Thu, 15 Aug 2024 22:36:39 +0000 (00:36 +0200)]
added mapping of normal to runtime BD elements (not used yet)

5 months agoimproved reading BD runtime elements from BDCFF files
Holger Schemel [Thu, 15 Aug 2024 22:26:08 +0000 (00:26 +0200)]
improved reading BD runtime elements from BDCFF files

5 months agominor change of BD element properties array check
Holger Schemel [Thu, 15 Aug 2024 22:06:48 +0000 (00:06 +0200)]
minor change of BD element properties array check

5 months agofixed some BD element descriptions
Holger Schemel [Thu, 15 Aug 2024 21:57:47 +0000 (23:57 +0200)]
fixed some BD element descriptions

5 months agoremoved support for unused BDCFF tokens
Holger Schemel [Thu, 15 Aug 2024 18:51:21 +0000 (20:51 +0200)]
removed support for unused BDCFF tokens

5 months agochanged order of checks and initialization of cave structures
Holger Schemel [Thu, 15 Aug 2024 18:27:45 +0000 (20:27 +0200)]
changed order of checks and initialization of cave structures

This change ensures that the element properties array is checked for
consistency (in function "gd_cave_db_init()") before its values are
used (in function "gd_cave_init()").

5 months agoadded field to BD element properties (not used yet)
Holger Schemel [Wed, 14 Aug 2024 19:32:50 +0000 (21:32 +0200)]
added field to BD element properties (not used yet)

5 months agorenamed variables
Holger Schemel [Mon, 12 Aug 2024 16:51:17 +0000 (18:51 +0200)]
renamed variables

5 months agochanged internal element name in BD engine
Holger Schemel [Sun, 11 Aug 2024 13:35:49 +0000 (15:35 +0200)]
changed internal element name in BD engine

5 months agorenamed types and variables
Holger Schemel [Sat, 10 Aug 2024 13:26:41 +0000 (15:26 +0200)]
renamed types and variables

5 months agocode formatting changes
Holger Schemel [Sat, 10 Aug 2024 12:13:00 +0000 (14:13 +0200)]
code formatting changes

5 months agofixed clipping BD engine intermission levels in editor
Holger Schemel [Sat, 10 Aug 2024 10:58:45 +0000 (12:58 +0200)]
fixed clipping BD engine intermission levels in editor

6 months agoadded pushable/movable properties for BD bubble (bladder) 4.4.0.0-test-3
Holger Schemel [Fri, 5 Jul 2024 06:47:44 +0000 (08:47 +0200)]
added pushable/movable properties for BD bubble (bladder)

6 months agorenamed bladder (spender) to (trapped) bubble in BD engine
Holger Schemel [Thu, 4 Jul 2024 19:43:23 +0000 (21:43 +0200)]
renamed bladder (spender) to (trapped) bubble in BD engine

6 months agochanged element group names for BD style walls with key
Holger Schemel [Thu, 4 Jul 2024 18:54:44 +0000 (20:54 +0200)]
changed element group names for BD style walls with key

6 months agochanged descriptions for BD style diamond keys and trapped keys
Holger Schemel [Thu, 4 Jul 2024 18:54:08 +0000 (20:54 +0200)]
changed descriptions for BD style diamond keys and trapped keys

6 months agochanged descriptions for BD style pot and gravity switch
Holger Schemel [Wed, 3 Jul 2024 08:55:40 +0000 (10:55 +0200)]
changed descriptions for BD style pot and gravity switch

6 months agominor code formatting change
Holger Schemel [Wed, 3 Jul 2024 08:43:24 +0000 (10:43 +0200)]
minor code formatting change

6 months agoadded support for zero delay for gravitation switch in BD engine
Holger Schemel [Wed, 3 Jul 2024 08:39:21 +0000 (10:39 +0200)]
added support for zero delay for gravitation switch in BD engine

6 months agofixed BD elements at wrap-around cave position killing player instantly
Holger Schemel [Tue, 2 Jul 2024 22:05:05 +0000 (00:05 +0200)]
fixed BD elements at wrap-around cave position killing player instantly

6 months agofixed buggy smooth movement speed in BD engine after wrapping around
Holger Schemel [Tue, 2 Jul 2024 15:15:23 +0000 (17:15 +0200)]
fixed buggy smooth movement speed in BD engine after wrapping around

7 months agoadded BD file format specific hacks (like diagonal movement)
Holger Schemel [Mon, 1 Jul 2024 20:18:34 +0000 (22:18 +0200)]
added BD file format specific hacks (like diagonal movement)

7 months agofixed bug causing BD engine hanging in wrap-around scrolling edge case
Holger Schemel [Mon, 1 Jul 2024 08:17:37 +0000 (10:17 +0200)]
fixed bug causing BD engine hanging in wrap-around scrolling edge case

7 months agoadded reading (more) scanned BD elements from BDCFF files
Holger Schemel [Sun, 30 Jun 2024 15:01:59 +0000 (17:01 +0200)]
added reading (more) scanned BD elements from BDCFF files

7 months agoadded mapping (scanned) BD run-time elements to normal BD elements
Holger Schemel [Sun, 30 Jun 2024 14:40:19 +0000 (16:40 +0200)]
added mapping (scanned) BD run-time elements to normal BD elements

7 months agoadded some safety checks to string functions
Holger Schemel [Sun, 30 Jun 2024 14:39:18 +0000 (16:39 +0200)]
added some safety checks to string functions

7 months agoadded BD graphics definitions for chasing rock
Holger Schemel [Sun, 30 Jun 2024 13:11:01 +0000 (15:11 +0200)]
added BD graphics definitions for chasing rock

7 months agoadded BD graphics definitions for cracking nut
Holger Schemel [Sun, 30 Jun 2024 13:06:59 +0000 (15:06 +0200)]
added BD graphics definitions for cracking nut

7 months agoadded BD graphics for chasing rock and cracking nut
Holger Schemel [Sun, 30 Jun 2024 13:05:34 +0000 (15:05 +0200)]
added BD graphics for chasing rock and cracking nut

7 months agofixed various edge cases for smooth movement animation for BD engine
Holger Schemel [Sun, 30 Jun 2024 11:58:27 +0000 (13:58 +0200)]
fixed various edge cases for smooth movement animation for BD engine

The recent complete rewrite of smooth movement animations for the BD
engine still had a number of bugs and edge cases not correctly handled
(or handled at all). These problems have been fixed now, using separate
variables for game elements in the playfield array and drawing elements
that differ from the "real" game elements, to be able to correctly use
game element properties for those game elements that have "looks like"
definitions to use completely different game elements (with different
element properties) just for drawing (like the expandable wall).

7 months agofixed status bits that overlapped with element numbers in BD engine
Holger Schemel [Sun, 30 Jun 2024 11:48:29 +0000 (13:48 +0200)]
fixed status bits that overlapped with element numbers in BD engine

7 months agoadded element properties for BD engine for elements that can move
Holger Schemel [Sun, 30 Jun 2024 11:46:05 +0000 (13:46 +0200)]
added element properties for BD engine for elements that can move

7 months agoadded element properties for BD engine for elements that can dig
Holger Schemel [Sun, 30 Jun 2024 11:42:15 +0000 (13:42 +0200)]
added element properties for BD engine for elements that can dig

7 months agoadded element properties for BD engine for elements that can grow
Holger Schemel [Fri, 28 Jun 2024 10:10:24 +0000 (12:10 +0200)]
added element properties for BD engine for elements that can grow

7 months agofixed direction arrays
Holger Schemel [Fri, 28 Jun 2024 10:06:47 +0000 (12:06 +0200)]
fixed direction arrays

7 months agoadded support for smooth movement on conveyor belts in BD engine
Holger Schemel [Wed, 26 Jun 2024 16:21:10 +0000 (18:21 +0200)]
added support for smooth movement on conveyor belts in BD engine

7 months agofixed speed of conveyor belt animation for BD engine
Holger Schemel [Wed, 26 Jun 2024 16:18:00 +0000 (18:18 +0200)]
fixed speed of conveyor belt animation for BD engine