rocksndiamonds.git
10 months agochanged setting random colors for BD style levels for new levels only
Holger Schemel [Tue, 31 Dec 2024 15:23:42 +0000 (16:23 +0100)]
changed setting random colors for BD style levels for new levels only

Without this change, levels loaded from existing level files may get
wrong colors, as default colors (that are not stored in level file)
have been replaced with random colors before, which is wrong.

10 months agorenamed variable
Holger Schemel [Tue, 31 Dec 2024 15:21:44 +0000 (16:21 +0100)]
renamed variable

10 months agofixed saving BD style snap element in level file
Holger Schemel [Tue, 31 Dec 2024 14:11:15 +0000 (15:11 +0100)]
fixed saving BD style snap element in level file

10 months agofixed multi-line request text overlapping with request buttons
Holger Schemel [Mon, 30 Dec 2024 18:08:14 +0000 (19:08 +0100)]
fixed multi-line request text overlapping with request buttons

10 months agochanged code to use narrow request font (no functional change)
Holger Schemel [Mon, 30 Dec 2024 18:06:43 +0000 (19:06 +0100)]
changed code to use narrow request font (no functional change)

10 months agofixed bug with sounds not being played in native BD sound engine
Holger Schemel [Fri, 27 Dec 2024 15:10:51 +0000 (16:10 +0100)]
fixed bug with sounds not being played in native BD sound engine

This fixes a bug where sounds (when using the native BD sound engine)
were not played because other sounds with higher precedence were
already playing. However, this should only be true for two sounds to
be played at the same time, while a sound with lower precedence may
be played if another sound with higher precedence is already playing
for some time.

10 months agofixed sound action ".growing" to be non-looping in native BD engine
Holger Schemel [Fri, 27 Dec 2024 14:42:56 +0000 (15:42 +0100)]
fixed sound action ".growing" to be non-looping in native BD engine

10 months agoversion number set to 4.4.0.1-test-1
Holger Schemel [Fri, 27 Dec 2024 14:37:56 +0000 (15:37 +0100)]
version number set to 4.4.0.1-test-1

10 months agoversion number set to 4.4.0.0 (stable) master-next-major-release 4.4.0.0
Holger Schemel [Mon, 23 Dec 2024 12:55:42 +0000 (13:55 +0100)]
version number set to 4.4.0.0 (stable)

10 months agofixed playing native BD replays with correct engine version
Holger Schemel [Sun, 22 Dec 2024 12:19:56 +0000 (13:19 +0100)]
fixed playing native BD replays with correct engine version

10 months agoadded renaming already existing level directory when dropping zip file
Holger Schemel [Fri, 20 Dec 2024 21:14:37 +0000 (22:14 +0100)]
added renaming already existing level directory when dropping zip file

10 months agomoved static local strings to global structure for zip support
Holger Schemel [Fri, 20 Dec 2024 19:11:14 +0000 (20:11 +0100)]
moved static local strings to global structure for zip support

10 months agochanged checking for directory in zip file in last step
Holger Schemel [Fri, 20 Dec 2024 18:58:56 +0000 (19:58 +0100)]
changed checking for directory in zip file in last step

10 months agoadded storing state of checked zip file
Holger Schemel [Fri, 20 Dec 2024 18:33:23 +0000 (19:33 +0100)]
added storing state of checked zip file

10 months agoadded command line option to list available SDL render drivers
Holger Schemel [Fri, 20 Dec 2024 17:46:57 +0000 (18:46 +0100)]
added command line option to list available SDL render drivers

10 months agochanged threshold for fast counting down remaining BD engine level time
Holger Schemel [Tue, 17 Dec 2024 19:15:23 +0000 (20:15 +0100)]
changed threshold for fast counting down remaining BD engine level time

Changed from 60 to 100 seconds, else it looks a bit strange if level
time counter quickly counts from 100 to 60, then counting down slower.

10 months agofixed playing time bonus sound in BD engine with R'n'D sound engine
Holger Schemel [Tue, 17 Dec 2024 19:16:56 +0000 (20:16 +0100)]
fixed playing time bonus sound in BD engine with R'n'D sound engine

Without this addition, no time bonus sound is played while counting
down the last few seconds after a game is won, using the native BD
game engine while using the non-native (R'n'D) sound engine.

10 months agoimproved graphics for digging crumbled BD style sloped sand
Holger Schemel [Tue, 17 Dec 2024 19:05:30 +0000 (20:05 +0100)]
improved graphics for digging crumbled BD style sloped sand

10 months agochanged positions of some BD style graphics inside image file
Holger Schemel [Tue, 17 Dec 2024 18:15:46 +0000 (19:15 +0100)]
changed positions of some BD style graphics inside image file

10 months agoadded crumbled graphics support for more BD style game elements
Holger Schemel [Tue, 17 Dec 2024 18:09:12 +0000 (19:09 +0100)]
added crumbled graphics support for more BD style game elements

- bdx_sand_sloped_up_left
- bdx_sand_sloped_up_right
- bdx_sand_sloped_down_left
- bdx_sand_sloped_down_right

10 months agofixed broken BDCFF token for BD engine
Holger Schemel [Tue, 17 Dec 2024 18:06:16 +0000 (19:06 +0100)]
fixed broken BDCFF token for BD engine

10 months agoadded separate level editor graphics for BD style non-sloped wall
Holger Schemel [Mon, 16 Dec 2024 22:14:45 +0000 (23:14 +0100)]
added separate level editor graphics for BD style non-sloped wall

10 months agoimproved support for player dying sound for native BD engine
Holger Schemel [Mon, 16 Dec 2024 22:00:16 +0000 (23:00 +0100)]
improved support for player dying sound for native BD engine

10 months agoadded sound support for some enemies for the BD engine
Holger Schemel [Mon, 16 Dec 2024 20:00:30 +0000 (21:00 +0100)]
added sound support for some enemies for the BD engine

10 months agofixed amoeba sounds for BD engine
Holger Schemel [Mon, 16 Dec 2024 19:06:32 +0000 (20:06 +0100)]
fixed amoeba sounds for BD engine

10 months agofixed smoothing player movement with variable cave speed in BD engine
Holger Schemel [Mon, 16 Dec 2024 18:40:44 +0000 (19:40 +0100)]
fixed smoothing player movement with variable cave speed in BD engine

10 months agofixed drawing graphics for crumbled sand with BD game engine
Holger Schemel [Sun, 15 Dec 2024 20:33:08 +0000 (21:33 +0100)]
fixed drawing graphics for crumbled sand with BD game engine

This change handles another special case when using non-standard cave
scheduling (that is, using either non-milliseconds scheduling, or
using a game cycle delay other than 160 ms).

10 months agoversion number set to 4.4.0.0-test-7
Holger Schemel [Sun, 15 Dec 2024 12:02:11 +0000 (13:02 +0100)]
version number set to 4.4.0.0-test-7

10 months agoadded classic BD level set using native BD game engine 4.4.0.0-test-6
Holger Schemel [Sun, 15 Dec 2024 08:44:51 +0000 (09:44 +0100)]
added classic BD level set using native BD game engine

10 months agoadded sound for opening exit in native BD game engine
Holger Schemel [Sat, 14 Dec 2024 18:16:44 +0000 (19:16 +0100)]
added sound for opening exit in native BD game engine

10 months agofixed graphics when digging crumbled sand with BD game engine
Holger Schemel [Sat, 14 Dec 2024 18:10:30 +0000 (19:10 +0100)]
fixed graphics when digging crumbled sand with BD game engine

This change is needed for BD1 cave scheduling where animation cycle is
not always in sync with the game engine.

10 months agofixed playing loop sounds when using native BD game engine
Holger Schemel [Sat, 14 Dec 2024 17:18:25 +0000 (18:18 +0100)]
fixed playing loop sounds when using native BD game engine

When using the native BD game engine, but not using the native BD
sound engine, loop sounds were not played anymore due to a bug with
off-playfield sound positions.

This bug was introduced by commit 386e26cf.

10 months agoremoved unused BD background color in level editor
Holger Schemel [Sat, 14 Dec 2024 14:23:57 +0000 (15:23 +0100)]
removed unused BD background color in level editor

10 months agoadded converting BD style grass for R'n'D game engine
Holger Schemel [Fri, 13 Dec 2024 20:11:38 +0000 (21:11 +0100)]
added converting BD style grass for R'n'D game engine

10 months agoadded variable to be set when using extended color template colors
Holger Schemel [Fri, 13 Dec 2024 20:04:27 +0000 (21:04 +0100)]
added variable to be set when using extended color template colors

10 months agoreplaced BD color index numbers with meaningful constants
Holger Schemel [Fri, 13 Dec 2024 20:00:22 +0000 (21:00 +0100)]
replaced BD color index numbers with meaningful constants

10 months agocleanup of BD style color definitions
Holger Schemel [Fri, 13 Dec 2024 19:39:29 +0000 (20:39 +0100)]
cleanup of BD style color definitions

10 months agoadded support for two extra colors for color templates
Holger Schemel [Fri, 13 Dec 2024 19:26:31 +0000 (20:26 +0100)]
added support for two extra colors for color templates

10 months agoadded crumbled graphics support for more BD style game elements
Holger Schemel [Thu, 12 Dec 2024 00:20:13 +0000 (01:20 +0100)]
added crumbled graphics support for more BD style game elements

- bdx_grass
- bdx_sand_glued
- bdx_biter_switch_1/2/3/4

10 months agoadded digging and crumbled graphics definitions for BD style sand
Holger Schemel [Wed, 11 Dec 2024 21:07:57 +0000 (22:07 +0100)]
added digging and crumbled graphics definitions for BD style sand

10 months agoadded more generic handling of crumbled graphics in BD graphics engine
Holger Schemel [Wed, 11 Dec 2024 21:03:58 +0000 (22:03 +0100)]
added more generic handling of crumbled graphics in BD graphics engine

10 months agoadded support for digging (crumbled) sand for BD graphics engine
Holger Schemel [Wed, 11 Dec 2024 20:10:00 +0000 (21:10 +0100)]
added support for digging (crumbled) sand for BD graphics engine

10 months agoadded support for crumbled sand for native BD graphics engine
Holger Schemel [Tue, 10 Dec 2024 20:00:50 +0000 (21:00 +0100)]
added support for crumbled sand for native BD graphics engine

10 months agofixed bug with covering screen when loading next level
Holger Schemel [Tue, 10 Dec 2024 19:40:25 +0000 (20:40 +0100)]
fixed bug with covering screen when loading next level

10 months agofixed two color template default colors currently not editable
Holger Schemel [Tue, 10 Dec 2024 19:33:17 +0000 (20:33 +0100)]
fixed two color template default colors currently not editable

10 months agochanged some BD style game elements in editor palette
Holger Schemel [Tue, 10 Dec 2024 19:31:33 +0000 (20:31 +0100)]
changed some BD style game elements in editor palette

10 months agomoved EMC style game elements to correct editor palette section
Holger Schemel [Tue, 10 Dec 2024 19:01:57 +0000 (20:01 +0100)]
moved EMC style game elements to correct editor palette section

10 months agoremoved unused black area in image file
Holger Schemel [Tue, 10 Dec 2024 18:57:03 +0000 (19:57 +0100)]
removed unused black area in image file

10 months agoadded function to free tile cursor (snow) textures
Holger Schemel [Mon, 9 Dec 2024 18:40:35 +0000 (19:40 +0100)]
added function to free tile cursor (snow) textures

10 months agoadded function to free all textures
Holger Schemel [Mon, 9 Dec 2024 18:32:56 +0000 (19:32 +0100)]
added function to free all textures

10 months agofixed initializing snow using changed window size
Holger Schemel [Mon, 9 Dec 2024 18:25:14 +0000 (19:25 +0100)]
fixed initializing snow using changed window size

10 months agofixed (and added warning when) trying to free already freed textures
Holger Schemel [Mon, 9 Dec 2024 18:21:06 +0000 (19:21 +0100)]
fixed (and added warning when) trying to free already freed textures

10 months agocleanup of functions to free bitmap surfaces and textures
Holger Schemel [Mon, 9 Dec 2024 18:16:11 +0000 (19:16 +0100)]
cleanup of functions to free bitmap surfaces and textures

10 months agofixed playing diamond sounds at wrap-around BD cave positions
Holger Schemel [Sun, 8 Dec 2024 17:21:04 +0000 (18:21 +0100)]
fixed playing diamond sounds at wrap-around BD cave positions

10 months agofixed playing sounds at wrap-around BD cave positions
Holger Schemel [Sun, 8 Dec 2024 17:18:03 +0000 (18:18 +0100)]
fixed playing sounds at wrap-around BD cave positions

This change completes commit daf84901, which only fixed sounds at
wrap-around BD cave positions when using the non-native sound engine.

10 months agofixed playing BD engine levels if preferred network player changed
Holger Schemel [Sun, 8 Dec 2024 14:48:48 +0000 (15:48 +0100)]
fixed playing BD engine levels if preferred network player changed

10 months agofixed macro to detect BD style player
Holger Schemel [Sun, 8 Dec 2024 14:47:59 +0000 (15:47 +0100)]
fixed macro to detect BD style player

10 months agoimproved code readability regarding calculation precedence
Holger Schemel [Sun, 8 Dec 2024 11:03:22 +0000 (12:03 +0100)]
improved code readability regarding calculation precedence

10 months agomoved RequestInfo structure into MenuInfo structure
Holger Schemel [Sun, 8 Dec 2024 10:53:08 +0000 (11:53 +0100)]
moved RequestInfo structure into MenuInfo structure

10 months agoversion number set to 4.4.0.0-test-6
Holger Schemel [Sun, 8 Dec 2024 10:36:37 +0000 (11:36 +0100)]
version number set to 4.4.0.0-test-6

10 months agofixed (not) pushing already moving elements in BD engine 4.4.0.0-test-5
Holger Schemel [Sun, 8 Dec 2024 00:09:47 +0000 (01:09 +0100)]
fixed (not) pushing already moving elements in BD engine

10 months agofixed moving already moving elements on conveyor belt in BD engine
Holger Schemel [Sat, 7 Dec 2024 23:44:01 +0000 (00:44 +0100)]
fixed moving already moving elements on conveyor belt in BD engine

This changes commit c1a2e3cc to be more generic: Generally prevent
moving any elements on (or under) a conveyor belt that are already
moving.

10 months agofixed some issues found by Cppcheck (static C/C++ code analysis tool)
Holger Schemel [Fri, 6 Dec 2024 19:49:33 +0000 (20:49 +0100)]
fixed some issues found by Cppcheck (static C/C++ code analysis tool)

10 months agofixed accessing invalid array position
Holger Schemel [Fri, 6 Dec 2024 19:13:19 +0000 (20:13 +0100)]
fixed accessing invalid array position

10 months agoadded support for player dying sound for native BD engine
Holger Schemel [Fri, 6 Dec 2024 19:07:26 +0000 (20:07 +0100)]
added support for player dying sound for native BD engine

10 months agoadded sounds for BD style bubble when moving/pushing
Holger Schemel [Fri, 6 Dec 2024 18:40:09 +0000 (19:40 +0100)]
added sounds for BD style bubble when moving/pushing

10 months agofixed sound action for BD style bubble changing to (growing) clock
Holger Schemel [Fri, 6 Dec 2024 18:37:13 +0000 (19:37 +0100)]
fixed sound action for BD style bubble changing to (growing) clock

10 months agochanged graphics for BD style waiting rock when moving/pushing
Holger Schemel [Fri, 6 Dec 2024 18:06:31 +0000 (19:06 +0100)]
changed graphics for BD style waiting rock when moving/pushing

10 months agochanged graphics for magic wall for native BD engine
Holger Schemel [Fri, 6 Dec 2024 17:45:50 +0000 (18:45 +0100)]
changed graphics for magic wall for native BD engine

10 months agoadded checking for NULL pointer for drawing wrapped info text
Holger Schemel [Fri, 6 Dec 2024 17:01:55 +0000 (18:01 +0100)]
added checking for NULL pointer for drawing wrapped info text

10 months agoadded checking for NULL pointer for UTF-8 conversion functions
Holger Schemel [Fri, 6 Dec 2024 17:00:32 +0000 (18:00 +0100)]
added checking for NULL pointer for UTF-8 conversion functions

11 months agoremoved old color template bitmap functions
Holger Schemel [Wed, 4 Dec 2024 21:05:34 +0000 (22:05 +0100)]
removed old color template bitmap functions

11 months agoadded color template bitmap functions to support color ranges
Holger Schemel [Wed, 4 Dec 2024 20:58:32 +0000 (21:58 +0100)]
added color template bitmap functions to support color ranges

11 months agoadded delayed game over if BD player can be re-created from effect
Holger Schemel [Wed, 4 Dec 2024 19:41:20 +0000 (20:41 +0100)]
added delayed game over if BD player can be re-created from effect

11 months agominor code cleanup
Holger Schemel [Wed, 4 Dec 2024 19:35:16 +0000 (20:35 +0100)]
minor code cleanup

11 months agofixed always marking player as seen for player birth elements
Holger Schemel [Wed, 4 Dec 2024 19:29:44 +0000 (20:29 +0100)]
fixed always marking player as seen for player birth elements

11 months agofixed initializing color template images before fading out game screen
Holger Schemel [Tue, 3 Dec 2024 19:58:21 +0000 (20:58 +0100)]
fixed initializing color template images before fading out game screen

11 months agoadded setup option for suicide key for BD game engine
Holger Schemel [Tue, 3 Dec 2024 18:59:34 +0000 (19:59 +0100)]
added setup option for suicide key for BD game engine

11 months agoadded support for suicide key for BD game engine
Holger Schemel [Tue, 3 Dec 2024 18:56:19 +0000 (19:56 +0100)]
added support for suicide key for BD game engine

11 months agominor changes (no functional changes)
Holger Schemel [Tue, 3 Dec 2024 18:48:38 +0000 (19:48 +0100)]
minor changes (no functional changes)

11 months agominor whitespace changes
Holger Schemel [Tue, 3 Dec 2024 18:15:33 +0000 (19:15 +0100)]
minor whitespace changes

11 months agofixed crash bug
Holger Schemel [Tue, 3 Dec 2024 18:07:27 +0000 (19:07 +0100)]
fixed crash bug

11 months agoadded editor graphics definitions for BD style firefly and butterfly
Holger Schemel [Mon, 2 Dec 2024 17:36:45 +0000 (18:36 +0100)]
added editor graphics definitions for BD style firefly and butterfly

11 months agoversion number set to 4.4.0.0-test-5
Holger Schemel [Mon, 2 Dec 2024 17:14:57 +0000 (18:14 +0100)]
version number set to 4.4.0.0-test-5

11 months agoadded setting increased BD cave time also in main game engine 4.4.0.0-test-4
Holger Schemel [Sun, 1 Dec 2024 15:35:18 +0000 (16:35 +0100)]
added setting increased BD cave time also in main game engine

This change is required if the BD cave time was increased by
collecting clocks; else the game is running out of time too early in
the main game engine, which still uses the previous level time, even
though the BD cave time is displayed correctly in the game panel.

However, a decreased BD cave time (for example, if a voodoo doll was
destroyed) may not be set in the main engine, as it may result in an
immediate "out of time" event, which is handled separately in the main
game engine.

11 months agofixed playing non-native sounds at wrap-around BD cave positions
Holger Schemel [Sun, 1 Dec 2024 14:50:19 +0000 (15:50 +0100)]
fixed playing non-native sounds at wrap-around BD cave positions

11 months agofixed playing BD style rocket sound if no rocket launched (diagonally)
Holger Schemel [Sun, 1 Dec 2024 14:14:54 +0000 (15:14 +0100)]
fixed playing BD style rocket sound if no rocket launched (diagonally)

11 months agoadded missing editor graphics for BD style time penalty element
Holger Schemel [Sun, 1 Dec 2024 13:49:02 +0000 (14:49 +0100)]
added missing editor graphics for BD style time penalty element

11 months agoadded game element descriptions for even more BD style game elements
Holger Schemel [Sun, 1 Dec 2024 13:28:35 +0000 (14:28 +0100)]
added game element descriptions for even more BD style game elements

11 months agoadded time penalty counter also to time penalty element in editor
Holger Schemel [Sun, 1 Dec 2024 13:15:26 +0000 (14:15 +0100)]
added time penalty counter also to time penalty element in editor

So far, this counter was only displayed for the "voodoo doll" game
element in the game element settings of the level editor.

11 months agoadded game element descriptions for some BD style game elements
Holger Schemel [Sun, 1 Dec 2024 13:13:07 +0000 (14:13 +0100)]
added game element descriptions for some BD style game elements

11 months agofixed determining non-stable version number in Android build script
Holger Schemel [Sat, 30 Nov 2024 12:08:16 +0000 (13:08 +0100)]
fixed determining non-stable version number in Android build script

11 months agofixed calculating tape engine version sub-types
Holger Schemel [Sat, 30 Nov 2024 10:23:10 +0000 (11:23 +0100)]
fixed calculating tape engine version sub-types

11 months agofixed version types for platforms with 32-bit "long" type
Holger Schemel [Sat, 30 Nov 2024 10:15:35 +0000 (11:15 +0100)]
fixed version types for platforms with 32-bit "long" type

11 months agoadded including math header file
Holger Schemel [Sat, 30 Nov 2024 09:34:07 +0000 (10:34 +0100)]
added including math header file

11 months agofixed wrong operand in "if" clause
Holger Schemel [Sat, 30 Nov 2024 09:02:42 +0000 (10:02 +0100)]
fixed wrong operand in "if" clause

11 months agoadded using empty buffer to determine required size for vsnprintf
Holger Schemel [Sat, 30 Nov 2024 08:50:26 +0000 (09:50 +0100)]
added using empty buffer to determine required size for vsnprintf

11 months agofixed crash bug caused by using va_list twice
Holger Schemel [Sat, 30 Nov 2024 08:46:08 +0000 (09:46 +0100)]
fixed crash bug caused by using va_list twice

11 months agoadded separating standard and extended game version numbers
Holger Schemel [Fri, 29 Nov 2024 19:48:49 +0000 (20:48 +0100)]
added separating standard and extended game version numbers

11 months agoadded newly born player being invulnerable for exactly one frame
Holger Schemel [Fri, 29 Nov 2024 19:04:55 +0000 (20:04 +0100)]
added newly born player being invulnerable for exactly one frame

If player is hatched from inbox and all pre-birth effect elements are
processed, add one single game frame of invulnerability for the player
against being instantly killed by enemies by using a special element.

by using a special element This is needed to be able to solve level 017 of "Arno Dash 02".