rocksndiamonds.git
6 months agoadded handling player running into enemy from top or left in BD engine
Holger Schemel [Sun, 5 May 2024 18:52:06 +0000 (20:52 +0200)]
added handling player running into enemy from top or left in BD engine

6 months agoadded property for growing BD engine game elements
Holger Schemel [Sun, 5 May 2024 18:44:19 +0000 (20:44 +0200)]
added property for growing BD engine game elements

6 months agofixed two small bugs for BD amoeba properties in editor
Holger Schemel [Tue, 30 Apr 2024 23:49:27 +0000 (01:49 +0200)]
fixed two small bugs for BD amoeba properties in editor

6 months agochanged some default settings for native BD engine
Holger Schemel [Tue, 30 Apr 2024 23:32:50 +0000 (01:32 +0200)]
changed some default settings for native BD engine

6 months agofixed default explosion definition for native BD engine
Holger Schemel [Tue, 30 Apr 2024 23:27:44 +0000 (01:27 +0200)]
fixed default explosion definition for native BD engine

6 months agoadded command line option to dump level set info
Holger Schemel [Tue, 30 Apr 2024 22:46:20 +0000 (00:46 +0200)]
added command line option to dump level set info

6 months agomoved code to separate function
Holger Schemel [Tue, 30 Apr 2024 22:40:42 +0000 (00:40 +0200)]
moved code to separate function

6 months agoadded some safety checks
Holger Schemel [Tue, 30 Apr 2024 20:32:43 +0000 (22:32 +0200)]
added some safety checks

6 months agoremoved function (used only once)
Holger Schemel [Tue, 30 Apr 2024 20:27:00 +0000 (22:27 +0200)]
removed function (used only once)

6 months agofixed compiler warning
Holger Schemel [Tue, 30 Apr 2024 19:58:15 +0000 (21:58 +0200)]
fixed compiler warning

6 months agochanged prefix for all game elements only used by the native BD engine
Holger Schemel [Mon, 29 Apr 2024 21:31:25 +0000 (23:31 +0200)]
changed prefix for all game elements only used by the native BD engine

While the last commit added all native BD style game elements that
were shared with the R'n'D game engine before, this change renames
all game elements only supported by the native BD game engine by
changing their prefix from "bd_" to "bdx_" (so the remaining game
elements left with prefix "bd_" are those only supported by the
R'n'D game engine).

This way, game elements for the native BD game engine are finally
named consistently (to be able to easily distinguish BD style game
elements used by the R'n'D engine from those exclusively used by the
native BD engine). The ugly "_native" suffixes could be removed with
this change.

6 months agoadded all BD engine elements shared with R'n'D engine as native elements
Holger Schemel [Mon, 22 Apr 2024 16:47:32 +0000 (18:47 +0200)]
added all BD engine elements shared with R'n'D engine as native elements

There were a number of game elements covered by the native BD engine
that already existed in the R'n'D engine for a long time. So far,
these BD style game elements were "shared" between both game engines,
which had some implications and unwanted ambiguities (like defining
explosion animations which are played with different duration in both
game engines, resulting in graphical glitches, or differences in
game element properties which also requires different descriptions in
the level editor, which would simply be impossible with "shared" game
elements).

The following game elements had to be duplicated for the BD engine:

- bd_wall         -> bd_wall_native
- bd_rock         -> bd_rock_native
- bd_diamond      -> bd_diamond_native
- bd_magic_wall   -> bd_magic_wall_native
- bd_butterfly    -> bd_butterfly_1
- bd_firefly      -> bd_firefly_1
- bd_amoeba       -> bd_amoeba_1

This change does not make game element token names for artwork config
files nicer, but makes sure that there are no unwanted side effects as
described between both game engines anymore.

6 months agofixed scaling wrong images when using "clone_from" graphics parameter
Holger Schemel [Sun, 28 Apr 2024 00:34:22 +0000 (02:34 +0200)]
fixed scaling wrong images when using "clone_from" graphics parameter

When cloning graphic definitions using the ".clone_from" parameter in
custom graphics configurations, only the graphic parameters are cloned
(including bitmap pointers), but the position of the image file of the
cloned graphic does not change. This may lead to the wrong image being
scaled if the ".scale_up_factor" parameter is used to scale the cloned
graphic (which may cause further unintended side effects if the scaled
image was also used by other graphics definitions which do not intend
to scale this image).

This bug occurred when the game was started with the original Boulder
Dash graphics (used by a native Boulder Dash level set), followed by
selecting a level set which uses the classic default R'n'D graphics,
leading to broken (scaled up and truncated) fonts in the main menu.

6 months agoremoved function (directly using function code instead)
Holger Schemel [Sat, 27 Apr 2024 12:02:32 +0000 (14:02 +0200)]
removed function (directly using function code instead)

6 months agoremoved redundant code
Holger Schemel [Sat, 27 Apr 2024 11:55:16 +0000 (13:55 +0200)]
removed redundant code

6 months agofixed playfield graphics for BD runtime elements in level editor
Holger Schemel [Sat, 27 Apr 2024 11:52:38 +0000 (13:52 +0200)]
fixed playfield graphics for BD runtime elements in level editor

6 months agomoved workaround for BD runtime elements in editor to separate function
Holger Schemel [Sat, 27 Apr 2024 11:49:01 +0000 (13:49 +0200)]
moved workaround for BD runtime elements in editor to separate function

6 months agofixed element graphic on properties page in level editor
Holger Schemel [Sat, 27 Apr 2024 11:42:59 +0000 (13:42 +0200)]
fixed element graphic on properties page in level editor

6 months agoadded definitions and macro for BD engine runtime elements
Holger Schemel [Sat, 27 Apr 2024 11:39:32 +0000 (13:39 +0200)]
added definitions and macro for BD engine runtime elements

6 months agorenamed function
Holger Schemel [Fri, 26 Apr 2024 14:57:14 +0000 (16:57 +0200)]
renamed function

6 months agoadded missing code for new 3-state setup option type
Holger Schemel [Fri, 26 Apr 2024 14:55:26 +0000 (16:55 +0200)]
added missing code for new 3-state setup option type

6 months agorenamed preprocessor constants
Holger Schemel [Fri, 26 Apr 2024 14:39:14 +0000 (16:39 +0200)]
renamed preprocessor constants

6 months agoadded separate 3-state type values for "true" and "false" states
Holger Schemel [Fri, 26 Apr 2024 14:19:13 +0000 (16:19 +0200)]
added separate 3-state type values for "true" and "false" states

6 months agoadded new, 3-state setup option to allow skipping levels (yes/no/ask)
Holger Schemel [Fri, 26 Apr 2024 13:46:28 +0000 (15:46 +0200)]
added new, 3-state setup option to allow skipping levels (yes/no/ask)

This new setup option replaces the two previous setup options "Force
Solving Levels: yes/no" and "Allow Skipping Levels: yes/no" with a new
option "Allow Skipping Levels: yes/no/ask". This should simplify the
three (useful) combinations of the two previous setup options, as
follows:

- "Force Solving Levels: yes" and "Allow Skipping Levels: yes"
  => "Allow Skipping Levels: ask"

- "Force Solving Levels: yes" and "Allow Skipping Levels: no"
  => "Allow Skipping Levels: no"

- "Force Solving Levels: no" (and "Allow Skipping Levels: yes/no")
  => "Allow Skipping Levels: yes"

This hopefully makes configuring if (and how) unsolved levels may be
skipped or not easier to understand.

6 months agoadded new setup option type "yes/no/ask"
Holger Schemel [Fri, 26 Apr 2024 11:29:09 +0000 (13:29 +0200)]
added new setup option type "yes/no/ask"

6 months agorenamed another preprocessor constant
Holger Schemel [Fri, 26 Apr 2024 10:49:45 +0000 (12:49 +0200)]
renamed another preprocessor constant

6 months agorenamed preprocessor constant
Holger Schemel [Fri, 26 Apr 2024 10:33:51 +0000 (12:33 +0200)]
renamed preprocessor constant

6 months agochanged showing standard element properties for some engines in editor
Holger Schemel [Fri, 26 Apr 2024 10:15:17 +0000 (12:15 +0200)]
changed showing standard element properties for some engines in editor

6 months agofixed typo in game element descriptions
Holger Schemel [Fri, 26 Apr 2024 10:05:09 +0000 (12:05 +0200)]
fixed typo in game element descriptions

6 months agoadded alternative suffixes ".old/.new" for "graphics_set.ecs/.aga"
Holger Schemel [Fri, 26 Apr 2024 08:46:07 +0000 (10:46 +0200)]
added alternative suffixes ".old/.new" for "graphics_set.ecs/.aga"

6 months agofixed crash bug with wrongly covering the screen for native BD engine
Holger Schemel [Thu, 25 Apr 2024 18:01:30 +0000 (20:01 +0200)]
fixed crash bug with wrongly covering the screen for native BD engine

This crash bug happened when starting a new game with the native BD
game engine by using a restart button from the main menu. (The bug
did not occur when restarting during a running game.)

6 months agorenamed function
Holger Schemel [Thu, 25 Apr 2024 05:58:19 +0000 (07:58 +0200)]
renamed function

6 months agoremoved unused array for SDL key state
Holger Schemel [Thu, 25 Apr 2024 05:54:31 +0000 (07:54 +0200)]
removed unused array for SDL key state

6 months agoadded configurable keys for fast and slow playing speed
Holger Schemel [Thu, 25 Apr 2024 05:49:27 +0000 (07:49 +0200)]
added configurable keys for fast and slow playing speed

6 months agoadded missing editor graphics for BD engine game elements
Holger Schemel [Wed, 24 Apr 2024 17:36:39 +0000 (19:36 +0200)]
added missing editor graphics for BD engine game elements

6 months agoadded setup option to select 22500 or 44100 Hz audio sample rate
Holger Schemel [Mon, 22 Apr 2024 19:13:23 +0000 (21:13 +0200)]
added setup option to select 22500 or 44100 Hz audio sample rate

6 months agofixed animation for invisible exit in BD engine
Holger Schemel [Mon, 22 Apr 2024 17:07:58 +0000 (19:07 +0200)]
fixed animation for invisible exit in BD engine

6 months agoadded setup option to show invisible exit in BD engine
Holger Schemel [Mon, 22 Apr 2024 17:03:39 +0000 (19:03 +0200)]
added setup option to show invisible exit in BD engine

6 months agoadded preprocessor definitions for BD engine start and end element
Holger Schemel [Mon, 22 Apr 2024 16:50:03 +0000 (18:50 +0200)]
added preprocessor definitions for BD engine start and end element

6 months agoremoved unused image file for native Boulder Dash graphics
Holger Schemel [Sun, 21 Apr 2024 11:35:38 +0000 (13:35 +0200)]
removed unused image file for native Boulder Dash graphics

6 months agoadded some new graphics for BD engine game elements
Holger Schemel [Sun, 21 Apr 2024 11:32:42 +0000 (13:32 +0200)]
added some new graphics for BD engine game elements

6 months agoadded some new sounds for BD engine game elements
Holger Schemel [Sun, 21 Apr 2024 11:29:52 +0000 (13:29 +0200)]
added some new sounds for BD engine game elements

6 months agoadded some new graphics for BD engine game elements
Holger Schemel [Thu, 18 Apr 2024 22:15:12 +0000 (00:15 +0200)]
added some new graphics for BD engine game elements

6 months agofixed replicator animation definition for native BD engine
Holger Schemel [Thu, 18 Apr 2024 18:02:18 +0000 (20:02 +0200)]
fixed replicator animation definition for native BD engine

7 months agoadded some new graphics for BD engine game elements
Holger Schemel [Wed, 17 Apr 2024 23:12:07 +0000 (01:12 +0200)]
added some new graphics for BD engine game elements

7 months agoadded some sound definitions for BD engine game elements
Holger Schemel [Wed, 17 Apr 2024 23:10:43 +0000 (01:10 +0200)]
added some sound definitions for BD engine game elements

7 months agoadded some new graphics for BD engine game elements
Holger Schemel [Tue, 16 Apr 2024 20:00:15 +0000 (22:00 +0200)]
added some new graphics for BD engine game elements

7 months agofixed typo
Holger Schemel [Tue, 16 Apr 2024 19:53:55 +0000 (21:53 +0200)]
fixed typo

7 months agoadded setup option for muting double falling sounds in BD engine
Holger Schemel [Sun, 14 Apr 2024 22:41:57 +0000 (00:41 +0200)]
added setup option for muting double falling sounds in BD engine

7 months agofixed element properties for "can fall" and "falling" for BD engine
Holger Schemel [Sun, 14 Apr 2024 22:40:14 +0000 (00:40 +0200)]
fixed element properties for "can fall" and "falling" for BD engine

7 months agoadded setup option for "player moving up/down" graphics in BD engine
Holger Schemel [Sun, 14 Apr 2024 21:41:47 +0000 (23:41 +0200)]
added setup option for "player moving up/down" graphics in BD engine

7 months agoadded support for "player is moving up/down" graphics for BD engine
Holger Schemel [Sun, 14 Apr 2024 21:33:09 +0000 (23:33 +0200)]
added support for "player is moving up/down" graphics for BD engine

7 months agoadded setup option for using "player is pushing" graphics in BD engine
Holger Schemel [Sun, 14 Apr 2024 19:10:29 +0000 (21:10 +0200)]
added setup option for using "player is pushing" graphics in BD engine

7 months agoadded support for "player is pushing" graphics for BD engine
Holger Schemel [Sun, 14 Apr 2024 18:38:44 +0000 (20:38 +0200)]
added support for "player is pushing" graphics for BD engine

7 months agorenamed some functions
Holger Schemel [Sun, 14 Apr 2024 18:32:31 +0000 (20:32 +0200)]
renamed some functions

7 months agoadded marking Sokoban box as pushable in BD engine
Holger Schemel [Sun, 14 Apr 2024 18:25:24 +0000 (20:25 +0200)]
added marking Sokoban box as pushable in BD engine

7 months agochanged functions to check smooth movements in BD engine
Holger Schemel [Sun, 14 Apr 2024 18:22:34 +0000 (20:22 +0200)]
changed functions to check smooth movements in BD engine

7 months agofixed defining function also when not using debug mode
Holger Schemel [Sun, 14 Apr 2024 18:18:22 +0000 (20:18 +0200)]
fixed defining function also when not using debug mode

7 months agofixed drawing runtime elements in native BD engine
Holger Schemel [Sun, 14 Apr 2024 18:15:40 +0000 (20:15 +0200)]
fixed drawing runtime elements in native BD engine

7 months agoadded setup option to always play native BD caves with random colors
Holger Schemel [Wed, 10 Apr 2024 22:43:38 +0000 (00:43 +0200)]
added setup option to always play native BD caves with random colors

7 months agofixed handling changed cave colors for BD game engine
Holger Schemel [Wed, 10 Apr 2024 22:36:54 +0000 (00:36 +0200)]
fixed handling changed cave colors for BD game engine

7 months agoreplaced code by using function with same functionality
Holger Schemel [Wed, 10 Apr 2024 16:54:18 +0000 (18:54 +0200)]
replaced code by using function with same functionality

7 months agofixed empty default level according to default game engine type
Holger Schemel [Wed, 10 Apr 2024 16:46:52 +0000 (18:46 +0200)]
fixed empty default level according to default game engine type

7 months agoadded setup option to select default game engine type
Holger Schemel [Wed, 10 Apr 2024 16:32:00 +0000 (18:32 +0200)]
added setup option to select default game engine type

7 months agosmall text and comment changes
Holger Schemel [Wed, 10 Apr 2024 16:21:10 +0000 (18:21 +0200)]
small text and comment changes

7 months agorenamed setup option token
Holger Schemel [Wed, 10 Apr 2024 11:26:51 +0000 (13:26 +0200)]
renamed setup option token

7 months agofixed using invalid edit mode in level editor
Holger Schemel [Wed, 10 Apr 2024 11:12:21 +0000 (13:12 +0200)]
fixed using invalid edit mode in level editor

7 months agoadded setup option to select preferred color type for BD engine
Holger Schemel [Wed, 10 Apr 2024 11:00:23 +0000 (13:00 +0200)]
added setup option to select preferred color type for BD engine

7 months agoadded setup options to select color palettes for BD engine
Holger Schemel [Wed, 10 Apr 2024 09:10:36 +0000 (11:10 +0200)]
added setup options to select color palettes for BD engine

7 months agoadded color palette definitions for BD game engine
Holger Schemel [Wed, 10 Apr 2024 07:48:43 +0000 (09:48 +0200)]
added color palette definitions for BD game engine

7 months agominor code formatting changes
Holger Schemel [Wed, 10 Apr 2024 07:35:48 +0000 (09:35 +0200)]
minor code formatting changes

7 months agowhite space changes
Holger Schemel [Wed, 10 Apr 2024 07:23:32 +0000 (09:23 +0200)]
white space changes

7 months agofixed updating color box when changing BD engine color in level editor
Holger Schemel [Tue, 9 Apr 2024 21:44:47 +0000 (23:44 +0200)]
fixed updating color box when changing BD engine color in level editor

7 months agoadded color box for each color in BD engine to level editor
Holger Schemel [Tue, 9 Apr 2024 21:38:50 +0000 (23:38 +0200)]
added color box for each color in BD engine to level editor

7 months agoadded support for C64DTV and Atari colors in BD engine to level editor
Holger Schemel [Tue, 9 Apr 2024 21:09:26 +0000 (23:09 +0200)]
added support for C64DTV and Atari colors in BD engine to level editor

7 months agorenamed variables
Holger Schemel [Tue, 9 Apr 2024 21:02:06 +0000 (23:02 +0200)]
renamed variables

7 months agomoved code to set random level colors to separate function
Holger Schemel [Tue, 9 Apr 2024 17:21:17 +0000 (19:21 +0200)]
moved code to set random level colors to separate function

7 months agoadded button to level editor to set random level colors for BD engine
Holger Schemel [Mon, 8 Apr 2024 23:50:00 +0000 (01:50 +0200)]
added button to level editor to set random level colors for BD engine

7 months agochanged some texts in level editor
Holger Schemel [Mon, 8 Apr 2024 23:48:35 +0000 (01:48 +0200)]
changed some texts in level editor

7 months agoadded some more color functions for BD engine
Holger Schemel [Mon, 8 Apr 2024 23:46:32 +0000 (01:46 +0200)]
added some more color functions for BD engine

7 months agoadded some more random generator functions (from glib)
Holger Schemel [Mon, 8 Apr 2024 23:44:39 +0000 (01:44 +0200)]
added some more random generator functions (from glib)

7 months agoadded support for level color settings in BD engine to level editor
Holger Schemel [Mon, 8 Apr 2024 22:24:28 +0000 (00:24 +0200)]
added support for level color settings in BD engine to level editor

7 months agoadded support for text left/right of level editor text input gadgets
Holger Schemel [Mon, 8 Apr 2024 18:48:02 +0000 (20:48 +0200)]
added support for text left/right of level editor text input gadgets

7 months agomoved editor selectbox gadget to other array position
Holger Schemel [Sun, 7 Apr 2024 12:42:24 +0000 (14:42 +0200)]
moved editor selectbox gadget to other array position

7 months agoadded second row of tabs for game engine settings to level editor
Holger Schemel [Sun, 7 Apr 2024 12:07:35 +0000 (14:07 +0200)]
added second row of tabs for game engine settings to level editor

7 months agofixed delay for setting "game over" state for native Supaplex engine
Holger Schemel [Sat, 6 Apr 2024 16:52:55 +0000 (18:52 +0200)]
fixed delay for setting "game over" state for native Supaplex engine

7 months agoadded editing player name on names screen by pressing right cursor key
Holger Schemel [Fri, 5 Apr 2024 16:30:50 +0000 (18:30 +0200)]
added editing player name on names screen by pressing right cursor key

7 months agoadded playing score tape on high score screen by pressing "return" key
Holger Schemel [Fri, 5 Apr 2024 16:18:52 +0000 (18:18 +0200)]
added playing score tape on high score screen by pressing "return" key

7 months agoadded highlighting all high score entries of the current player
Holger Schemel [Fri, 5 Apr 2024 16:13:23 +0000 (18:13 +0200)]
added highlighting all high score entries of the current player

7 months agodisabled ending lost game when asking for game restart is configured
Holger Schemel [Fri, 5 Apr 2024 15:46:20 +0000 (17:46 +0200)]
disabled ending lost game when asking for game restart is configured

7 months agofixed another bug with game restart request when opening/closing doors
Holger Schemel [Fri, 5 Apr 2024 15:43:11 +0000 (17:43 +0200)]
fixed another bug with game restart request when opening/closing doors

7 months agofixed bug with game restart request when opening/closing doors
Holger Schemel [Fri, 5 Apr 2024 15:42:08 +0000 (17:42 +0200)]
fixed bug with game restart request when opening/closing doors

7 months agofixed graphical bug with door background during request dialogs
Holger Schemel [Fri, 5 Apr 2024 10:36:56 +0000 (12:36 +0200)]
fixed graphical bug with door background during request dialogs

This fixes a regression caused by commit 472e5e90.

7 months agominor code formatting changes
Holger Schemel [Fri, 5 Apr 2024 09:36:49 +0000 (11:36 +0200)]
minor code formatting changes

7 months agoadded showing scrolling title screen background for native BD cavesets
Holger Schemel [Thu, 4 Apr 2024 18:31:13 +0000 (20:31 +0200)]
added showing scrolling title screen background for native BD cavesets

7 months agofixed colors when reading native BD1/BD2/PLCK levels
Holger Schemel [Wed, 3 Apr 2024 14:44:57 +0000 (16:44 +0200)]
fixed colors when reading native BD1/BD2/PLCK levels

7 months agominor code formatting changes
Holger Schemel [Wed, 3 Apr 2024 10:56:12 +0000 (12:56 +0200)]
minor code formatting changes

7 months agoadded option for BD1 magic wall / amoeba bug for native BD engine
Holger Schemel [Tue, 2 Apr 2024 17:55:41 +0000 (19:55 +0200)]
added option for BD1 magic wall / amoeba bug for native BD engine

7 months agocleanup of setup value fonts on setup screens
Holger Schemel [Tue, 2 Apr 2024 17:14:28 +0000 (19:14 +0200)]
cleanup of setup value fonts on setup screens

7 months agochanged description for BD style magic wall
Holger Schemel [Tue, 2 Apr 2024 08:46:53 +0000 (10:46 +0200)]
changed description for BD style magic wall