rocksndiamonds.git
7 months agoadded support for line-shifting wrap-around in BD engine to level editor
Holger Schemel [Sun, 10 Mar 2024 16:40:10 +0000 (17:40 +0100)]
added support for line-shifting wrap-around in BD engine to level editor

7 months agoincreased scrolling speed when wrapping around for BD engine
Holger Schemel [Sun, 10 Mar 2024 16:35:56 +0000 (17:35 +0100)]
increased scrolling speed when wrapping around for BD engine

7 months agofixed wrong types for BD level values
Holger Schemel [Sun, 10 Mar 2024 15:33:36 +0000 (16:33 +0100)]
fixed wrong types for BD level values

7 months agoadded support for hatching delay in BD engine to level editor
Holger Schemel [Sun, 10 Mar 2024 15:14:26 +0000 (16:14 +0100)]
added support for hatching delay in BD engine to level editor

7 months agoadded support for game cycle delay in BD engine to level editor
Holger Schemel [Sun, 10 Mar 2024 14:41:28 +0000 (15:41 +0100)]
added support for game cycle delay in BD engine to level editor

7 months agowhite space changes
Holger Schemel [Sun, 10 Mar 2024 14:08:07 +0000 (15:08 +0100)]
white space changes

7 months agoadded difficulty level to level names for native BD levels
Holger Schemel [Sat, 9 Mar 2024 12:06:13 +0000 (13:06 +0100)]
added difficulty level to level names for native BD levels

7 months agoadded support for scheduling type in BD engine to level editor
Holger Schemel [Sat, 9 Mar 2024 11:51:07 +0000 (12:51 +0100)]
added support for scheduling type in BD engine to level editor

7 months agoadded support for PAL timing in BD engine to level editor
Holger Schemel [Sat, 9 Mar 2024 11:21:47 +0000 (12:21 +0100)]
added support for PAL timing in BD engine to level editor

7 months agochanged info text for extra diamonds for BD engine in level editor
Holger Schemel [Sat, 9 Mar 2024 10:37:30 +0000 (11:37 +0100)]
changed info text for extra diamonds for BD engine in level editor

7 months agorestricted slippery walls option to R'n'D engine in level editor
Holger Schemel [Sat, 9 Mar 2024 10:33:08 +0000 (11:33 +0100)]
restricted slippery walls option to R'n'D engine in level editor

7 months agorestricted customizing empty space to R'n'D engine in level editor
Holger Schemel [Sat, 9 Mar 2024 10:28:59 +0000 (11:28 +0100)]
restricted customizing empty space to R'n'D engine in level editor

7 months agowhite space changes
Holger Schemel [Sat, 9 Mar 2024 00:45:40 +0000 (01:45 +0100)]
white space changes

7 months agoadded support for extra diamond score in BD engine to level editor
Holger Schemel [Sat, 9 Mar 2024 00:38:46 +0000 (01:38 +0100)]
added support for extra diamond score in BD engine to level editor

7 months agoreduced delay until game over after player died in BD engine
Holger Schemel [Fri, 8 Mar 2024 20:21:38 +0000 (21:21 +0100)]
reduced delay until game over after player died in BD engine

7 months agofixed crash bug when running in headless mode
Holger Schemel [Fri, 8 Mar 2024 20:20:20 +0000 (21:20 +0100)]
fixed crash bug when running in headless mode

7 months agoadded special handling of BD intermission levels on game over
Holger Schemel [Fri, 8 Mar 2024 19:30:17 +0000 (20:30 +0100)]
added special handling of BD intermission levels on game over

This change is required if asking for restart after gave over is
disabled in the setup menu.

7 months agoadded special handling of BD intermission levels when restarting game
Holger Schemel [Fri, 8 Mar 2024 18:52:32 +0000 (19:52 +0100)]
added special handling of BD intermission levels when restarting game

7 months agoadded special handling of BD intermission levels when skipping levels
Holger Schemel [Fri, 8 Mar 2024 18:52:01 +0000 (19:52 +0100)]
added special handling of BD intermission levels when skipping levels

7 months agomoved code to separate function
Holger Schemel [Fri, 8 Mar 2024 17:54:45 +0000 (18:54 +0100)]
moved code to separate function

7 months agoadded support for intermission levels in BD engine to level editor
Holger Schemel [Fri, 8 Mar 2024 17:48:36 +0000 (18:48 +0100)]
added support for intermission levels in BD engine to level editor

7 months agowhite space changes
Holger Schemel [Fri, 8 Mar 2024 13:10:05 +0000 (14:10 +0100)]
white space changes

7 months agoadded level editor config tab/page for BD game engine (currently empty)
Holger Schemel [Fri, 8 Mar 2024 13:07:24 +0000 (14:07 +0100)]
added level editor config tab/page for BD game engine (currently empty)

7 months agoadded macros for some game elements
Holger Schemel [Fri, 8 Mar 2024 13:02:45 +0000 (14:02 +0100)]
added macros for some game elements

7 months agochanged default audio replay sample rate back to 22.05 kHz
Holger Schemel [Fri, 8 Mar 2024 09:27:54 +0000 (10:27 +0100)]
changed default audio replay sample rate back to 22.05 kHz

When using 44.1 kHz sample rate, upsampling larger audio files with
lower sample rate causes a crash in some versions of the SDL library.

7 months agoimproved converting BD game engine elements for R'n'D game engine
Holger Schemel [Thu, 7 Mar 2024 19:22:48 +0000 (20:22 +0100)]
improved converting BD game engine elements for R'n'D game engine

7 months agofixed another graphical bug when using smooth movements with BD engine
Holger Schemel [Thu, 7 Mar 2024 18:40:47 +0000 (19:40 +0100)]
fixed another graphical bug when using smooth movements with BD engine

7 months agofixed graphical bugs when using smooth movements with BD engine
Holger Schemel [Thu, 7 Mar 2024 00:08:40 +0000 (01:08 +0100)]
fixed graphical bugs when using smooth movements with BD engine

7 months agofixed preview size of intermission levels for native BD level sets
Holger Schemel [Wed, 6 Mar 2024 23:50:06 +0000 (00:50 +0100)]
fixed preview size of intermission levels for native BD level sets

7 months agoadded graphics config option for level-specific colors for BD engine
Holger Schemel [Wed, 6 Mar 2024 23:03:47 +0000 (00:03 +0100)]
added graphics config option for level-specific colors for BD engine

This adds a config option "bd_game_graphics_color_template" for the
custom artwork config file "graphicsinfo.conf" to specify a template
image file used to create level-specific game graphics colors for
native Boulder Dash level files (to be used for all game elements
for both in-game graphics and main menu preview graphics), while the
normal game element image config options specify a default image file
with static/fixed colors to be used in the level editor (that is, all
levels in the level editor use the same colors).

This implementation only works correctly for all game element graphics
if all BD style game graphics are defined in one single image file, so
the newly defined template image file must have the same image size
and layout of game graphics as the default image file (which must also
be a single image file containing game graphics for all game elements).

7 months agofixed level-specific colors for BD engine using small game elements
Holger Schemel [Wed, 6 Mar 2024 22:52:58 +0000 (23:52 +0100)]
fixed level-specific colors for BD engine using small game elements

7 months agoadded converting BD game engine elements for R'n'D game engine
Holger Schemel [Wed, 6 Mar 2024 15:42:22 +0000 (16:42 +0100)]
added converting BD game engine elements for R'n'D game engine

7 months agoadded dedicated empty space element for BD engine (currently not used)
Holger Schemel [Wed, 6 Mar 2024 14:02:22 +0000 (15:02 +0100)]
added dedicated empty space element for BD engine (currently not used)

8 months agoadded support for level-specific preview colors for BD engine
Holger Schemel [Wed, 6 Mar 2024 09:19:13 +0000 (10:19 +0100)]
added support for level-specific preview colors for BD engine

8 months agoadded support for level-specific game graphics colors for BD engine
Holger Schemel [Wed, 6 Mar 2024 09:13:14 +0000 (10:13 +0100)]
added support for level-specific game graphics colors for BD engine

8 months agoadded function to create bitmap from SDL surface
Holger Schemel [Wed, 6 Mar 2024 08:57:30 +0000 (09:57 +0100)]
added function to create bitmap from SDL surface

8 months agomoved function
Holger Schemel [Wed, 6 Mar 2024 08:55:00 +0000 (09:55 +0100)]
moved function

8 months agoadded using game element properties for smooth moving in BD engine
Holger Schemel [Wed, 6 Mar 2024 08:16:45 +0000 (09:16 +0100)]
added using game element properties for smooth moving in BD engine

8 months agofixed potential crash bug in BD engine
Holger Schemel [Wed, 6 Mar 2024 08:10:26 +0000 (09:10 +0100)]
fixed potential crash bug in BD engine

8 months agofixed comment
Holger Schemel [Wed, 6 Mar 2024 08:08:30 +0000 (09:08 +0100)]
fixed comment

8 months agoadded color functions and definitions for BD engine (not used yet)
Holger Schemel [Wed, 6 Mar 2024 08:07:25 +0000 (09:07 +0100)]
added color functions and definitions for BD engine (not used yet)

8 months agoadded functions to check game element properties (not used yet)
Holger Schemel [Wed, 6 Mar 2024 08:04:21 +0000 (09:04 +0100)]
added functions to check game element properties (not used yet)

8 months agoadded game element properties for BD engine (not used yet)
Holger Schemel [Wed, 6 Mar 2024 08:01:47 +0000 (09:01 +0100)]
added game element properties for BD engine (not used yet)

8 months agominor code formatting change
Holger Schemel [Wed, 6 Mar 2024 08:00:09 +0000 (09:00 +0100)]
minor code formatting change

8 months agochanged function to scale SDL surface to be externally available
Holger Schemel [Wed, 6 Mar 2024 07:57:01 +0000 (08:57 +0100)]
changed function to scale SDL surface to be externally available

8 months agochanged function to create native SDL surface
Holger Schemel [Wed, 6 Mar 2024 07:48:12 +0000 (08:48 +0100)]
changed function to create native SDL surface

8 months agoadded gadget type id to arrays to do some additional consistency checks
Holger Schemel [Sat, 2 Mar 2024 09:15:00 +0000 (10:15 +0100)]
added gadget type id to arrays to do some additional consistency checks

8 months agoadded support for diagonal player movement in BD engine to level editor
Holger Schemel [Wed, 28 Feb 2024 21:59:36 +0000 (22:59 +0100)]
added support for diagonal player movement in BD engine to level editor

8 months agochanged some comments
Holger Schemel [Wed, 28 Feb 2024 19:15:09 +0000 (20:15 +0100)]
changed some comments

8 months agochanged most comments from C to C++ style for BD engine code
Holger Schemel [Wed, 28 Feb 2024 18:16:48 +0000 (19:16 +0100)]
changed most comments from C to C++ style for BD engine code

8 months agofixed some element class names
Holger Schemel [Wed, 28 Feb 2024 15:57:39 +0000 (16:57 +0100)]
fixed some element class names

8 months agorenamed panel option "game.panel.gems_total" to "game.panel.gems_needed"
Holger Schemel [Wed, 28 Feb 2024 15:44:08 +0000 (16:44 +0100)]
renamed panel option "game.panel.gems_total" to "game.panel.gems_needed"

8 months agoadded loading both level packages and single levels in BDCFF format
Holger Schemel [Wed, 28 Feb 2024 15:08:06 +0000 (16:08 +0100)]
added loading both level packages and single levels in BDCFF format

8 months agoadded saving BD style levels in R'n'D format as native BDCFF files
Holger Schemel [Wed, 28 Feb 2024 15:06:08 +0000 (16:06 +0100)]
added saving BD style levels in R'n'D format as native BDCFF files

8 months agoadded setting new caveset name to current levelset name for BD engine
Holger Schemel [Wed, 28 Feb 2024 10:05:43 +0000 (11:05 +0100)]
added setting new caveset name to current levelset name for BD engine

8 months agofixed checking file extension for BD engine
Holger Schemel [Wed, 28 Feb 2024 09:40:47 +0000 (10:40 +0100)]
fixed checking file extension for BD engine

8 months agoadded asking before overwriting when saving native level files
Holger Schemel [Wed, 28 Feb 2024 09:31:14 +0000 (10:31 +0100)]
added asking before overwriting when saving native level files

8 months agoadded saving native BDCFF file with cheat code ":save-native-level"
Holger Schemel [Tue, 27 Feb 2024 21:07:29 +0000 (22:07 +0100)]
added saving native BDCFF file with cheat code ":save-native-level"

8 months agoadded saving BDCFF files for BD engine
Holger Schemel [Tue, 27 Feb 2024 20:26:13 +0000 (21:26 +0100)]
added saving BDCFF files for BD engine

8 months agoimproved color handling when loading BDCFF file in BD engine
Holger Schemel [Tue, 27 Feb 2024 20:13:57 +0000 (21:13 +0100)]
improved color handling when loading BDCFF file in BD engine

8 months agowhite space changes
Holger Schemel [Tue, 27 Feb 2024 20:06:02 +0000 (21:06 +0100)]
white space changes

8 months agomoved color handling functions to separate source files for BD engine
Holger Schemel [Tue, 27 Feb 2024 19:49:25 +0000 (20:49 +0100)]
moved color handling functions to separate source files for BD engine

8 months agoadded "const" to some file function parameters
Holger Schemel [Tue, 27 Feb 2024 19:35:38 +0000 (20:35 +0100)]
added "const" to some file function parameters

8 months agoadded functions to print to and to escape strings
Holger Schemel [Tue, 27 Feb 2024 19:29:47 +0000 (20:29 +0100)]
added functions to print to and to escape strings

8 months agoadded checking pointers for hash table iterator
Holger Schemel [Tue, 27 Feb 2024 19:24:45 +0000 (20:24 +0100)]
added checking pointers for hash table iterator

8 months agofixed function to iterate through hash table and remove hash entries
Holger Schemel [Tue, 27 Feb 2024 19:21:06 +0000 (20:21 +0100)]
fixed function to iterate through hash table and remove hash entries

8 months agoremoved library dependency to glib-2.0
Holger Schemel [Sun, 25 Feb 2024 03:06:45 +0000 (04:06 +0100)]
removed library dependency to glib-2.0

8 months agoreplaced glib function calls to g_print()
Holger Schemel [Sun, 25 Feb 2024 02:23:36 +0000 (03:23 +0100)]
replaced glib function calls to g_print()

8 months agoreplaced glib function calls to g_file_get_contents()
Holger Schemel [Sun, 25 Feb 2024 02:21:44 +0000 (03:21 +0100)]
replaced glib function calls to g_file_get_contents()

8 months agoreplaced glib function calls to g_byte_array*()
Holger Schemel [Sun, 25 Feb 2024 01:56:33 +0000 (02:56 +0100)]
replaced glib function calls to g_byte_array*()

8 months agoreplaced glib function calls to g_utf8_strdown()
Holger Schemel [Sun, 25 Feb 2024 00:51:12 +0000 (01:51 +0100)]
replaced glib function calls to g_utf8_strdown()

8 months agoreplaced glib function calls to g_rand_*() and g_random_*()
Holger Schemel [Sun, 25 Feb 2024 00:40:35 +0000 (01:40 +0100)]
replaced glib function calls to g_rand_*() and g_random_*()

8 months agoadded random generator functions (from glib)
Holger Schemel [Sun, 25 Feb 2024 00:34:17 +0000 (01:34 +0100)]
added random generator functions (from glib)

8 months agofixed using strtod() by resetting errno to detect overflow/underflow
Holger Schemel [Sun, 25 Feb 2024 00:18:15 +0000 (01:18 +0100)]
fixed using strtod() by resetting errno to detect overflow/underflow

8 months agoremoved unused variable
Holger Schemel [Sat, 24 Feb 2024 23:15:56 +0000 (00:15 +0100)]
removed unused variable

8 months agofixed compiler warning
Holger Schemel [Sat, 24 Feb 2024 23:15:18 +0000 (00:15 +0100)]
fixed compiler warning

8 months agoremoved unused function
Holger Schemel [Sat, 24 Feb 2024 23:14:38 +0000 (00:14 +0100)]
removed unused function

8 months agorenamed function to allocate and copy memory
Holger Schemel [Sat, 24 Feb 2024 13:03:58 +0000 (14:03 +0100)]
renamed function to allocate and copy memory

8 months agoadded using checked memory handling functions to list handling
Holger Schemel [Sat, 24 Feb 2024 12:58:40 +0000 (13:58 +0100)]
added using checked memory handling functions to list handling

8 months agoreplaced glib function calls to g_stat() and g_path_get_basename()
Holger Schemel [Sat, 24 Feb 2024 12:53:20 +0000 (13:53 +0100)]
replaced glib function calls to g_stat() and g_path_get_basename()

8 months agoreplaced glib function calls to g_return_val_if_fail()
Holger Schemel [Sat, 24 Feb 2024 12:52:09 +0000 (13:52 +0100)]
replaced glib function calls to g_return_val_if_fail()

8 months agoreplaced glib function calls to g_strlcpy()
Holger Schemel [Fri, 23 Feb 2024 18:13:53 +0000 (19:13 +0100)]
replaced glib function calls to g_strlcpy()

8 months agoreplaced glib function calls to g_memmove()
Holger Schemel [Fri, 23 Feb 2024 18:06:36 +0000 (19:06 +0100)]
replaced glib function calls to g_memmove()

8 months agoreplaced glib function calls to g_str_equal()
Holger Schemel [Fri, 23 Feb 2024 18:05:31 +0000 (19:05 +0100)]
replaced glib function calls to g_str_equal()

8 months agoreplaced glib function calls to g_ascii_strup()
Holger Schemel [Fri, 23 Feb 2024 18:04:01 +0000 (19:04 +0100)]
replaced glib function calls to g_ascii_strup()

8 months agoreplaced glib function calls to g_ascii_tolower()
Holger Schemel [Fri, 23 Feb 2024 18:00:43 +0000 (19:00 +0100)]
replaced glib function calls to g_ascii_tolower()

8 months agoreplaced glib function calls to g_strstrip() and g_strchomp()
Holger Schemel [Fri, 23 Feb 2024 17:59:12 +0000 (18:59 +0100)]
replaced glib function calls to g_strstrip() and g_strchomp()

8 months agoadded functions to remove leading and/or trailing whitespace from strings
Holger Schemel [Fri, 23 Feb 2024 17:57:48 +0000 (18:57 +0100)]
added functions to remove leading and/or trailing whitespace from strings

8 months agofixed comment
Holger Schemel [Fri, 23 Feb 2024 17:37:42 +0000 (18:37 +0100)]
fixed comment

8 months agoreplaced glib function calls to g_ascii_strtod()
Holger Schemel [Fri, 23 Feb 2024 17:34:09 +0000 (18:34 +0100)]
replaced glib function calls to g_ascii_strtod()

8 months agoreplaced glib function calls to g_snprintf()
Holger Schemel [Fri, 23 Feb 2024 17:28:02 +0000 (18:28 +0100)]
replaced glib function calls to g_snprintf()

8 months agoreplaced glib function calls to g_list_*()
Holger Schemel [Fri, 23 Feb 2024 17:24:14 +0000 (18:24 +0100)]
replaced glib function calls to g_list_*()

8 months agoadded list handling functions (from glib)
Holger Schemel [Fri, 23 Feb 2024 17:19:08 +0000 (18:19 +0100)]
added list handling functions (from glib)

8 months agofixed wrong linking order of libraries in Makefile
Holger Schemel [Fri, 23 Feb 2024 17:03:18 +0000 (18:03 +0100)]
fixed wrong linking order of libraries in Makefile

8 months agoreplaced glib macro G_STRUCT_OFFSET
Holger Schemel [Fri, 23 Feb 2024 15:48:18 +0000 (16:48 +0100)]
replaced glib macro G_STRUCT_OFFSET

8 months agoreplaced glib function calls to g_memdup()
Holger Schemel [Fri, 23 Feb 2024 15:03:10 +0000 (16:03 +0100)]
replaced glib function calls to g_memdup()

8 months agoadded function to allocate and copy memory
Holger Schemel [Fri, 23 Feb 2024 15:02:27 +0000 (16:02 +0100)]
added function to allocate and copy memory

8 months agoreplaced remaining glib function calls to g_hash_table_*()
Holger Schemel [Fri, 23 Feb 2024 14:46:06 +0000 (15:46 +0100)]
replaced remaining glib function calls to g_hash_table_*()

8 months agoadded type definition for hash table structure
Holger Schemel [Fri, 23 Feb 2024 14:41:19 +0000 (15:41 +0100)]
added type definition for hash table structure

8 months agoadded functions to iterate through hash table and remove hash entries
Holger Schemel [Fri, 23 Feb 2024 14:25:19 +0000 (15:25 +0100)]
added functions to iterate through hash table and remove hash entries