rocksndiamonds.git
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

9 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

9 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()

9 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()

9 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*()

9 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()

9 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_*()

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

9 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

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

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

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

9 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

9 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

9 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()

9 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()

9 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()

9 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()

9 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()

9 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()

9 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()

9 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()

9 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

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

9 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()

9 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()

9 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_*()

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

9 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

9 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

9 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()

9 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

9 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_*()

9 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

9 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

9 months agofixed crash bug with masked blitting in headless mode
Holger Schemel [Fri, 23 Feb 2024 00:01:39 +0000 (01:01 +0100)]
fixed crash bug with masked blitting in headless mode

9 months agoreplaced glib function calls to g_strdup()
Holger Schemel [Thu, 22 Feb 2024 22:15:07 +0000 (23:15 +0100)]
replaced glib function calls to g_strdup()

9 months agoreplaced some glib function calls to g_hash_table_*()
Holger Schemel [Thu, 22 Feb 2024 22:01:30 +0000 (23:01 +0100)]
replaced some glib function calls to g_hash_table_*()

9 months agodisabled smooth movement for player entering exit in BD engine
Holger Schemel [Thu, 22 Feb 2024 21:58:32 +0000 (22:58 +0100)]
disabled smooth movement for player entering exit in BD engine

9 months agoadded function to check if hash table value exists for a given key
Holger Schemel [Thu, 22 Feb 2024 21:51:45 +0000 (22:51 +0100)]
added function to check if hash table value exists for a given key

This function is required if integer values are used directly as hash values,
because a value of "0" would be indistinguishable from a non-existent entry,
which is returned as "NULL".

9 months agoadded function to convert string to all uppercase characters
Holger Schemel [Thu, 22 Feb 2024 21:50:23 +0000 (22:50 +0100)]
added function to convert string to all uppercase characters

9 months agoreplaced some glib function calls to g_hash_table_*()
Holger Schemel [Wed, 21 Feb 2024 23:34:24 +0000 (00:34 +0100)]
replaced some glib function calls to g_hash_table_*()

9 months agoadded function parameters for hash table creation to free keys or values
Holger Schemel [Wed, 21 Feb 2024 23:23:55 +0000 (00:23 +0100)]
added function parameters for hash table creation to free keys or values

9 months agoremoved returning value when removing entry from setup file hash
Holger Schemel [Wed, 21 Feb 2024 23:16:25 +0000 (00:16 +0100)]
removed returning value when removing entry from setup file hash

9 months agowhite space changes
Holger Schemel [Wed, 21 Feb 2024 19:21:18 +0000 (20:21 +0100)]
white space changes

9 months agoadded functions for integer hash keys
Holger Schemel [Wed, 21 Feb 2024 19:19:49 +0000 (20:19 +0100)]
added functions for integer hash keys

9 months agorenamed functions
Holger Schemel [Wed, 21 Feb 2024 18:43:39 +0000 (19:43 +0100)]
renamed functions

9 months agowhite space changes
Holger Schemel [Wed, 21 Feb 2024 18:39:29 +0000 (19:39 +0100)]
white space changes

9 months agoadded missing function prototypes
Holger Schemel [Wed, 21 Feb 2024 18:24:47 +0000 (19:24 +0100)]
added missing function prototypes

9 months agoremoved unused code
Holger Schemel [Wed, 21 Feb 2024 18:22:47 +0000 (19:22 +0100)]
removed unused code

9 months agodisabled smooth movement for exploding elements (like player) for BD engine
Holger Schemel [Tue, 20 Feb 2024 22:25:01 +0000 (23:25 +0100)]
disabled smooth movement for exploding elements (like player) for BD engine

9 months agoremoved unused functions and definitions
Holger Schemel [Tue, 20 Feb 2024 19:05:43 +0000 (20:05 +0100)]
removed unused functions and definitions

9 months agoreplaced glib function calls to g_string_*()
Holger Schemel [Tue, 20 Feb 2024 01:13:48 +0000 (02:13 +0100)]
replaced glib function calls to g_string_*()

9 months agoremoved unused functions and definitions
Holger Schemel [Tue, 20 Feb 2024 00:31:23 +0000 (01:31 +0100)]
removed unused functions and definitions

9 months agowhite space changes
Holger Schemel [Mon, 19 Feb 2024 23:55:41 +0000 (00:55 +0100)]
white space changes

9 months agoreplaced glib function calls to g_strcompress()
Holger Schemel [Mon, 19 Feb 2024 23:19:10 +0000 (00:19 +0100)]
replaced glib function calls to g_strcompress()

9 months agoadded function to replace all escaped characters in a string
Holger Schemel [Mon, 19 Feb 2024 23:18:40 +0000 (00:18 +0100)]
added function to replace all escaped characters in a string

9 months agoreplaced glib function calls to g_strv_length()
Holger Schemel [Mon, 19 Feb 2024 22:55:29 +0000 (23:55 +0100)]
replaced glib function calls to g_strv_length()

9 months agoadded function to count strings in array
Holger Schemel [Mon, 19 Feb 2024 22:54:04 +0000 (23:54 +0100)]
added function to count strings in array

9 months agoreplaced glib function calls to g_strfreev()
Holger Schemel [Mon, 19 Feb 2024 22:50:11 +0000 (23:50 +0100)]
replaced glib function calls to g_strfreev()

9 months agoadded function to free string array
Holger Schemel [Mon, 19 Feb 2024 22:50:01 +0000 (23:50 +0100)]
added function to free string array

9 months agoreplaced glib function calls to g_strsplit_set()
Holger Schemel [Mon, 19 Feb 2024 22:35:57 +0000 (23:35 +0100)]
replaced glib function calls to g_strsplit_set()

9 months agoadded function to split string by separator characters to array
Holger Schemel [Mon, 19 Feb 2024 22:35:44 +0000 (23:35 +0100)]
added function to split string by separator characters to array

9 months agoreplaced glib function calls to g_ascii_isdigit()
Holger Schemel [Mon, 19 Feb 2024 19:22:50 +0000 (20:22 +0100)]
replaced glib function calls to g_ascii_isdigit()

9 months agoadded Makefile targets to clean up header dependency files
Holger Schemel [Sun, 18 Feb 2024 17:01:37 +0000 (18:01 +0100)]
added Makefile targets to clean up header dependency files

9 months agoadded setup option to enable smooth element movement for BD engine
Holger Schemel [Sat, 17 Feb 2024 14:31:05 +0000 (15:31 +0100)]
added setup option to enable smooth element movement for BD engine

9 months agoadded setup option to disable delayed scrolling for BD engine
Holger Schemel [Sat, 17 Feb 2024 13:57:59 +0000 (14:57 +0100)]
added setup option to disable delayed scrolling for BD engine

9 months agominor code cleanup
Holger Schemel [Sat, 17 Feb 2024 13:46:05 +0000 (14:46 +0100)]
minor code cleanup

9 months agomoved drawing cave tile for BD engine to separate function
Holger Schemel [Sat, 17 Feb 2024 13:36:39 +0000 (14:36 +0100)]
moved drawing cave tile for BD engine to separate function

9 months agominor code cleanup
Holger Schemel [Sat, 17 Feb 2024 13:13:51 +0000 (14:13 +0100)]
minor code cleanup

9 months agofixed player animation when snapping for BD engine
Holger Schemel [Sat, 17 Feb 2024 13:12:51 +0000 (14:12 +0100)]
fixed player animation when snapping for BD engine

9 months agofixed element animation when collecting for BD engine
Holger Schemel [Sat, 17 Feb 2024 13:09:39 +0000 (14:09 +0100)]
fixed element animation when collecting for BD engine

9 months agoadded element properties for BD engine
Holger Schemel [Sat, 17 Feb 2024 13:07:11 +0000 (14:07 +0100)]
added element properties for BD engine

9 months agominor code cleanup
Holger Schemel [Sat, 17 Feb 2024 13:04:23 +0000 (14:04 +0100)]
minor code cleanup

9 months agoremoved unneeded statement
Holger Schemel [Sat, 17 Feb 2024 12:58:46 +0000 (13:58 +0100)]
removed unneeded statement

9 months agominor code cleanup
Holger Schemel [Sat, 17 Feb 2024 11:54:46 +0000 (12:54 +0100)]
minor code cleanup

9 months agoremoved unused variables
Holger Schemel [Sat, 17 Feb 2024 11:45:10 +0000 (12:45 +0100)]
removed unused variables

9 months agoadded variable to improve code readability
Holger Schemel [Sat, 17 Feb 2024 11:42:12 +0000 (12:42 +0100)]
added variable to improve code readability

9 months agoadded smooth game element movements for native BD engine
Holger Schemel [Sat, 17 Feb 2024 11:38:18 +0000 (12:38 +0100)]
added smooth game element movements for native BD engine

9 months agochanged image file for native BD graphics from TrueColor to 256 colors
Holger Schemel [Sat, 17 Feb 2024 11:09:35 +0000 (12:09 +0100)]
changed image file for native BD graphics from TrueColor to 256 colors

9 months agowhite space changes
Holger Schemel [Sat, 17 Feb 2024 09:49:15 +0000 (10:49 +0100)]
white space changes

9 months agoadded functions to get range corrected x/y cave position for BD engine
Holger Schemel [Sat, 17 Feb 2024 09:40:46 +0000 (10:40 +0100)]
added functions to get range corrected x/y cave position for BD engine

9 months agowhite space changes
Holger Schemel [Thu, 15 Feb 2024 20:05:05 +0000 (21:05 +0100)]
white space changes

9 months agoadded various new element action sounds to native BD engine
Holger Schemel [Wed, 14 Feb 2024 18:52:25 +0000 (19:52 +0100)]
added various new element action sounds to native BD engine

9 months agoadded sound consistency check for native BD engine
Holger Schemel [Wed, 14 Feb 2024 18:49:59 +0000 (19:49 +0100)]
added sound consistency check for native BD engine