rocksndiamonds.git
3 weeks agofixed covering screen if last level did not use BD engine
Holger Schemel [Mon, 6 Jan 2025 16:22:06 +0000 (17:22 +0100)]
fixed covering screen if last level did not use BD engine

3 weeks agofixed errors with covering BD screen when not using BD engine
Holger Schemel [Mon, 6 Jan 2025 15:57:45 +0000 (16:57 +0100)]
fixed errors with covering BD screen when not using BD engine

3 weeks agofixed showing wrong playfield actions when closing "replace tape" door
Holger Schemel [Mon, 6 Jan 2025 15:43:44 +0000 (16:43 +0100)]
fixed showing wrong playfield actions when closing "replace tape" door

This bug was introduced by commit feec08d4.

3 weeks agofixed showing level story when playing without hall of fame after game
Holger Schemel [Mon, 6 Jan 2025 14:53:08 +0000 (15:53 +0100)]
fixed showing level story when playing without hall of fame after game

If showing scores after a game is disabled, only the first level story
for a series of played levels was shown (because the game never left
the game mode "playing").

3 weeks agomoved code to close game panel door before starting game
Holger Schemel [Mon, 6 Jan 2025 14:06:19 +0000 (15:06 +0100)]
moved code to close game panel door before starting game

3 weeks agoremoved redundant closing of game panel door before starting game
Holger Schemel [Mon, 6 Jan 2025 14:03:31 +0000 (15:03 +0100)]
removed redundant closing of game panel door before starting game

3 weeks agofixed bug with closing tape recorder door after game
Holger Schemel [Mon, 6 Jan 2025 13:34:06 +0000 (14:34 +0100)]
fixed bug with closing tape recorder door after game

Only close tape recorder door when entering hall of fame, but not when
playing next game or when returning to main menu.

3 weeks agoadded always closing game panel door in main menu
Holger Schemel [Mon, 6 Jan 2025 13:32:14 +0000 (14:32 +0100)]
added always closing game panel door in main menu

3 weeks agoimproved support for restart key when playing BD games with multiple lives
Holger Schemel [Sun, 5 Jan 2025 21:41:58 +0000 (22:41 +0100)]
improved support for restart key when playing BD games with multiple lives

3 weeks agoimproved code logic (removed redundant condition)
Holger Schemel [Sun, 5 Jan 2025 21:40:45 +0000 (22:40 +0100)]
improved code logic (removed redundant condition)

3 weeks agofixed support for restart key when playing BD games with multiple lives
Holger Schemel [Sun, 5 Jan 2025 21:04:17 +0000 (22:04 +0100)]
fixed support for restart key when playing BD games with multiple lives

3 weeks agoadded support for restart key when playing BD games with multiple lives
Holger Schemel [Sun, 5 Jan 2025 17:13:02 +0000 (18:13 +0100)]
added support for restart key when playing BD games with multiple lives

3 weeks agoadded skipping screen fading when restarting game using BD engine
Holger Schemel [Sun, 5 Jan 2025 16:05:45 +0000 (17:05 +0100)]
added skipping screen fading when restarting game using BD engine

3 weeks agoadded checking for BD engine for not covering BD screen
Holger Schemel [Sun, 5 Jan 2025 16:00:41 +0000 (17:00 +0100)]
added checking for BD engine for not covering BD screen

3 weeks agomoved code to cover BD screen before fading out when restarting game
Holger Schemel [Sun, 5 Jan 2025 15:57:47 +0000 (16:57 +0100)]
moved code to cover BD screen before fading out when restarting game

3 weeks agoupdated title text and border graphic to show current year
Holger Schemel [Sun, 5 Jan 2025 14:38:52 +0000 (15:38 +0100)]
updated title text and border graphic to show current year

3 weeks agoadded support for showing multiple lives for BD games in game panel
Holger Schemel [Sat, 4 Jan 2025 16:48:06 +0000 (17:48 +0100)]
added support for showing multiple lives for BD games in game panel

3 weeks agoadded game panel classes to show items only before or after BD hatching
Holger Schemel [Sat, 4 Jan 2025 16:33:11 +0000 (17:33 +0100)]
added game panel classes to show items only before or after BD hatching

Example: When using game panel definitions like

game.panel.levelset_name.class: bd_pre_hatching

or

game.panel.score.class:         bd_post_hatching

the corresponding game panel items will only be displayed before or
after the player was hatched in levels using the native BD game engine.
(For levels not using the BD engine, items using "bd_pre_hatching" will
never be displayed, while items using "bd_post_hatching" will always be
displayed.)

3 weeks agoadded support for narrow font if game panel text too large
Holger Schemel [Sat, 4 Jan 2025 16:25:03 +0000 (17:25 +0100)]
added support for narrow font if game panel text too large

If player name, level set name, level name or level author to be drawn
on game panel is larger than a specified size (using ".chars" option)
or larger than the game panel width, an alternative (less wide) font
(using ".font_narrow" option) will be used.

3 weeks agoadded support to show level set name in game panel
Holger Schemel [Sat, 4 Jan 2025 16:16:34 +0000 (17:16 +0100)]
added support to show level set name in game panel

3 weeks agoadded support for playing BD games with multiple lives and global score
Holger Schemel [Fri, 3 Jan 2025 23:31:36 +0000 (00:31 +0100)]
added support for playing BD games with multiple lives and global score

3 weeks agominor code change (no functional change)
Holger Schemel [Fri, 3 Jan 2025 23:16:06 +0000 (00:16 +0100)]
minor code change (no functional change)

3 weeks agofixed initializing level specific colors when loading non-BD levels
Holger Schemel [Fri, 3 Jan 2025 13:59:27 +0000 (14:59 +0100)]
fixed initializing level specific colors when loading non-BD levels

3 weeks agoadded skipping extra colors when using reduced BD style color template
Holger Schemel [Fri, 3 Jan 2025 13:56:01 +0000 (14:56 +0100)]
added skipping extra colors when using reduced BD style color template

4 weeks agoadded variable to be set when using reduced color template colors
Holger Schemel [Thu, 2 Jan 2025 13:19:43 +0000 (14:19 +0100)]
added variable to be set when using reduced color template colors

4 weeks agofixed bug with scrolling screen towards initially created player
Holger Schemel [Wed, 1 Jan 2025 13:32:30 +0000 (14:32 +0100)]
fixed bug with scrolling screen towards initially created player

4 weeks agofixed bugs with potentially using off-playfield position
Holger Schemel [Wed, 1 Jan 2025 13:27:23 +0000 (14:27 +0100)]
fixed bugs with potentially using off-playfield position

4 weeks agoadded setting color type and colors for editor after loading level
Holger Schemel [Tue, 31 Dec 2024 15:33:33 +0000 (16:33 +0100)]
added setting color type and colors for editor after loading level

4 weeks 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.

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

4 weeks 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

4 weeks 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

4 weeks 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)

4 weeks 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.

4 weeks 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

4 weeks 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

5 weeks 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)

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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

6 weeks 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.

6 weeks 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.

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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).

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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.

6 weeks 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.

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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.

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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.

7 weeks 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)

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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

7 weeks 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

8 weeks 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