rocksndiamonds.git
3 weeks agofixed bugs with wrong newline handling in envelopes (game and editor)
Holger Schemel [Tue, 4 Jun 2024 21:13:07 +0000 (23:13 +0200)]
fixed bugs with wrong newline handling in envelopes (game and editor)

This is the second (and hopefully final) attempt to fix a bug that was
already thought to be fixed with commit e567cb7f (which only fixed the
bug partially, and introduced new problems).

See the detailed description in function "LoadLevel_FixEnvelopes()"
for more details on the problem and the solution.

5 weeks agoimproved converting BD game engine elements for R'n'D game engine
Holger Schemel [Sun, 26 May 2024 00:31:12 +0000 (02:31 +0200)]
improved converting BD game engine elements for R'n'D game engine

5 weeks agoadded using masked drawing for player on walkable tiles in BD engine
Holger Schemel [Sat, 25 May 2024 23:49:22 +0000 (01:49 +0200)]
added using masked drawing for player on walkable tiles in BD engine

5 weeks agofixed graphical bug when snap-pushing with smooth movement in BD engine
Holger Schemel [Sat, 25 May 2024 23:08:13 +0000 (01:08 +0200)]
fixed graphical bug when snap-pushing with smooth movement in BD engine

5 weeks agofixed player entering pot when using smooth movement
Holger Schemel [Sat, 25 May 2024 20:17:19 +0000 (22:17 +0200)]
fixed player entering pot when using smooth movement

5 weeks agoadded checking availability of level specific colors in level editor
Holger Schemel [Sat, 25 May 2024 17:23:35 +0000 (19:23 +0200)]
added checking availability of level specific colors in level editor

5 weeks agochanged default game cycle delay value for BD engine
Holger Schemel [Sat, 25 May 2024 16:37:41 +0000 (18:37 +0200)]
changed default game cycle delay value for BD engine

5 weeks agoadded precedence of game keys over speed/debug keys when playing
Holger Schemel [Sat, 25 May 2024 10:26:59 +0000 (12:26 +0200)]
added precedence of game keys over speed/debug keys when playing

5 weeks agominor code formatting changes
Holger Schemel [Sat, 25 May 2024 10:03:50 +0000 (12:03 +0200)]
minor code formatting changes

5 weeks agoadded setup option for fast game start from level editor
Holger Schemel [Sat, 25 May 2024 10:02:34 +0000 (12:02 +0200)]
added setup option for fast game start from level editor

5 weeks agochanged some texts in setup menu that were too long
Holger Schemel [Sat, 25 May 2024 09:35:04 +0000 (11:35 +0200)]
changed some texts in setup menu that were too long

5 weeks agochanged logic and defaults for falling element sounds in BD engine
Holger Schemel [Sat, 25 May 2024 09:32:12 +0000 (11:32 +0200)]
changed logic and defaults for falling element sounds in BD engine

5 weeks agoversion number set to 4.4.0.0-test-2
Holger Schemel [Fri, 24 May 2024 14:38:11 +0000 (16:38 +0200)]
version number set to 4.4.0.0-test-2

5 weeks agoadded support for opening level set zip files in Android version
Holger Schemel [Fri, 24 May 2024 14:35:49 +0000 (16:35 +0200)]
added support for opening level set zip files in Android version

5 weeks agoadded command line option to drop file into program window
Holger Schemel [Wed, 22 May 2024 16:47:55 +0000 (18:47 +0200)]
added command line option to drop file into program window

7 weeks agominor code cleanup
Holger Schemel [Sat, 11 May 2024 12:05:47 +0000 (14:05 +0200)]
minor code cleanup

7 weeks agofixed cave flashing on open outbox for non-black cave background color
Holger Schemel [Sat, 11 May 2024 11:47:14 +0000 (13:47 +0200)]
fixed cave flashing on open outbox for non-black cave background color

7 weeks agofixed score time for BD engine
Holger Schemel [Sat, 11 May 2024 11:24:18 +0000 (13:24 +0200)]
fixed score time for BD engine

7 weeks agorenamed variables
Holger Schemel [Sat, 11 May 2024 10:55:00 +0000 (12:55 +0200)]
renamed variables

7 weeks agofixed undefined element reference in default graphics configuration
Holger Schemel [Sat, 11 May 2024 08:55:24 +0000 (10:55 +0200)]
fixed undefined element reference in default graphics configuration

7 weeks agoremoved showing level in cave names for BDCFF cave sets without levels
Holger Schemel [Sat, 11 May 2024 08:31:02 +0000 (10:31 +0200)]
removed showing level in cave names for BDCFF cave sets without levels

7 weeks agoadded UTF-8 support for cave names in BDCFF files
Holger Schemel [Sat, 11 May 2024 08:27:43 +0000 (10:27 +0200)]
added UTF-8 support for cave names in BDCFF files

7 weeks agoadded support for BD game engine to Makefile for Android 4.4.0.0-test-1
Holger Schemel [Wed, 8 May 2024 23:13:50 +0000 (01:13 +0200)]
added support for BD game engine to Makefile for Android

7 weeks agofixed some more compiler warnings
Holger Schemel [Wed, 8 May 2024 22:58:14 +0000 (00:58 +0200)]
fixed some more compiler warnings

7 weeks agofixed compiler warning
Holger Schemel [Wed, 8 May 2024 22:15:25 +0000 (00:15 +0200)]
fixed compiler warning

7 weeks agofixed wrong sound position in BD engine
Holger Schemel [Wed, 8 May 2024 22:14:49 +0000 (00:14 +0200)]
fixed wrong sound position in BD engine

7 weeks agoversion number set to 4.4.0.0-test-1
Holger Schemel [Wed, 8 May 2024 19:49:45 +0000 (21:49 +0200)]
version number set to 4.4.0.0-test-1

7 weeks agoadded fast uncovering of native BD games when started from editor
Holger Schemel [Tue, 7 May 2024 23:05:17 +0000 (01:05 +0200)]
added fast uncovering of native BD games when started from editor

7 weeks agoadded functions to check if native BD cave or caveset has levels
Holger Schemel [Tue, 7 May 2024 21:58:11 +0000 (23:58 +0200)]
added functions to check if native BD cave or caveset has levels

8 weeks agochanged naming of "ECS/AGA" graphics setup to more generic "old/new"
Holger Schemel [Sun, 5 May 2024 23:35:34 +0000 (01:35 +0200)]
changed naming of "ECS/AGA" graphics setup to more generic "old/new"

8 weeks agoadded new graphics for BD engine amoeba elements
Holger Schemel [Sun, 5 May 2024 23:25:13 +0000 (01:25 +0200)]
added new graphics for BD engine amoeba elements

8 weeks agochanged order of BD style graphics and sounds (no functional change)
Holger Schemel [Sun, 5 May 2024 22:56:41 +0000 (00:56 +0200)]
changed order of BD style graphics and sounds (no functional change)

8 weeks agofixed default graphics for growing or exploding BD engine elements
Holger Schemel [Sun, 5 May 2024 22:47:29 +0000 (00:47 +0200)]
fixed default graphics for growing or exploding BD engine elements

8 weeks agochanged prefix for native BD engine game element description files
Holger Schemel [Sun, 5 May 2024 22:29:24 +0000 (00:29 +0200)]
changed prefix for native BD engine game element description files

8 weeks agoadded credits for the native BD engine
Holger Schemel [Sun, 5 May 2024 21:54:28 +0000 (23:54 +0200)]
added credits for the native BD engine

8 weeks agofixed handling enter key just before asking to play again
Holger Schemel [Sun, 5 May 2024 18:57:41 +0000 (20:57 +0200)]
fixed handling enter key just before asking to play again

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

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

2 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

2 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

2 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

2 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

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

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

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

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

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

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

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

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

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

2 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

2 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

2 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

2 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

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

2 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

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

2 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

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

2 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"

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

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

2 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

2 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

2 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"

2 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.)

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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

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

2 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

2 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

2 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

2 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

2 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

2 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

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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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