rocksndiamonds.git
4 months agofixed tile selection cursor position for levels smaller than the playfield master 4.1.0.0
Holger Schemel [Tue, 10 Apr 2018 19:44:08 +0000 (21:44 +0200)]
fixed tile selection cursor position for levels smaller than the playfield

For centered levels that are smaller than the playfield (MM engine),
the tile selection cursor position was not shifted like the level,
but was still inside the top/left aligned grid as if the level was
not centered.

This fix also centers the tile selection cursor position accordingly.

4 months agofixed always redrawing global border when redrawing playfield area
Holger Schemel [Mon, 9 Apr 2018 22:42:50 +0000 (00:42 +0200)]
fixed always redrawing global border when redrawing playfield area

When in the level editor, the "special editor door" area was not redrawn
correctly when redrawing the global border, but was instead always
redrawn with the "normal" border (without special treatment for the
larger editor door area).

This workaround fixes redrawing the global border inside the level editor.

4 months agoversion number set to 4.1.0.0
Holger Schemel [Fri, 6 Apr 2018 13:18:39 +0000 (15:18 +0200)]
version number set to 4.1.0.0

4 months agoadded always redrawing global border when redrawing playfield area
Holger Schemel [Thu, 5 Apr 2018 22:45:20 +0000 (00:45 +0200)]
added always redrawing global border when redrawing playfield area

Before, the global border was only redrawn if its graphics had changed
or if any of the viewport areas (playfield or doors) had changed their
position or size.

Now, it is always redrawn if the playfield area is cleared (to redraw
its content). This has the advantage that accidentally damaged global
border areas (caused by buggy graphics definitions from custom artwork
sets) are redrawn much earlier than before (where it could require
loading a different level set with different graphics to "repair" the
damaged global border).

4 months agoadded support for non-button touch pads for MM game engine
Holger Schemel [Mon, 2 Apr 2018 10:33:11 +0000 (12:33 +0200)]
added support for non-button touch pads for MM game engine

There are some systems with touch pads (like Mac notebooks) which do not
have separate left/right buttons, which are required for controlling the
Mirror Magic game engine (which usually works best with left/right mouse
buttons).

This change adds support for recognizing touch clicks on the left and
right half of the touch pad as left and right button clicks to rotate
mirrors and other rotatable game elements in the MM game engine to the
left or to the right.

4 months agoadded support for compiling non-default Windows icons into the executable
Holger Schemel [Mon, 2 Apr 2018 10:19:00 +0000 (12:19 +0200)]
added support for compiling non-default Windows icons into the executable

If the environment variable "EDITION" is defined, it is used to search at
a non-default location for icons to be compiled into the R'n'D executable
when building the game for the Windows platform.

4 months agofixed some level editor element descriptions
Holger Schemel [Sun, 25 Mar 2018 23:13:29 +0000 (01:13 +0200)]
fixed some level editor element descriptions

4 months agoadded using options for left/right/top/bottom spacing on some info screens
Holger Schemel [Sun, 25 Mar 2018 11:07:20 +0000 (13:07 +0200)]
added using options for left/right/top/bottom spacing on some info screens

4 months agoadded options for left/right/top/bottom spacing for the info screens
Holger Schemel [Sun, 25 Mar 2018 11:03:21 +0000 (13:03 +0200)]
added options for left/right/top/bottom spacing for the info screens

4 months agoreplaced some info screen positions with already defined symbolic names
Holger Schemel [Sun, 25 Mar 2018 00:17:37 +0000 (01:17 +0100)]
replaced some info screen positions with already defined symbolic names

4 months agofixed bug when creating static mappings of elements to graphics
Holger Schemel [Sat, 24 Mar 2018 22:14:03 +0000 (23:14 +0100)]
fixed bug when creating static mappings of elements to graphics

This bug showed up with wrong mapping for "mm_pacman.eating.right" (as
defined in "src/conf_gfx.c") in auto-conf file "src/conf_e2g.c" being

  {
    EL_MM_PACMAN,                       ACTION_EATING, -1, FALSE,
    IMG_MM_PACMAN_EATING_RIGHT
  },

where it should correctly be

  {
    EL_MM_PACMAN,                       ACTION_EATING, MV_BIT_RIGHT, FALSE,
    IMG_MM_PACMAN_EATING_RIGHT
  },

instead. This problem was fixed by always using the calculated direction
(which can still be "-1" if no direction is specified).

4 months agoadded centering levels that are smaller than the playfield (MM engine)
Holger Schemel [Fri, 23 Mar 2018 22:19:59 +0000 (23:19 +0100)]
added centering levels that are smaller than the playfield (MM engine)

4 months agofixed incorrect sizes of some arrays in menu info structure
Holger Schemel [Wed, 21 Mar 2018 20:28:08 +0000 (21:28 +0100)]
fixed incorrect sizes of some arrays in menu info structure

4 months agofixed compiling MM engine code with MinGW environment
Holger Schemel [Mon, 19 Mar 2018 21:49:22 +0000 (22:49 +0100)]
fixed compiling MM engine code with MinGW environment

4 months agofixed name of element 'beamer' to 'teleporter'
Holger Schemel [Sun, 18 Mar 2018 12:31:57 +0000 (13:31 +0100)]
fixed name of element 'beamer' to 'teleporter'

4 months agofixed name of element 'polarisator' to 'polarizer'
Holger Schemel [Sun, 18 Mar 2018 12:04:26 +0000 (13:04 +0100)]
fixed name of element 'polarisator' to 'polarizer'

4 months agofixed bug with deriving game data directory from default 'setup.conf'
Holger Schemel [Wed, 14 Mar 2018 18:41:20 +0000 (19:41 +0100)]
fixed bug with deriving game data directory from default 'setup.conf'

4 months agoremoved shortly visible video display when starting game from level editor
Holger Schemel [Sat, 10 Mar 2018 20:49:40 +0000 (21:49 +0100)]
removed shortly visible video display when starting game from level editor

4 months agoremoved short black screen when starting test game from level editor
Holger Schemel [Sat, 10 Mar 2018 20:40:11 +0000 (21:40 +0100)]
removed short black screen when starting test game from level editor

4 months agoadded message 'level solved' after solving a level
Holger Schemel [Sat, 10 Mar 2018 20:06:10 +0000 (21:06 +0100)]
added message 'level solved' after solving a level

4 months agoreplaced duplicated code with equivalent function call
Holger Schemel [Sat, 10 Mar 2018 19:32:44 +0000 (20:32 +0100)]
replaced duplicated code with equivalent function call

4 months agoadded asking for restart after game was lost (MM game engine only)
Holger Schemel [Sat, 10 Mar 2018 19:18:07 +0000 (20:18 +0100)]
added asking for restart after game was lost (MM game engine only)

4 months agofixed displaying title strings from config files in info screen headline
Holger Schemel [Sat, 10 Mar 2018 19:11:33 +0000 (20:11 +0100)]
fixed displaying title strings from config files in info screen headline

4 months agomoved getting title strings from config files to separate functions
Holger Schemel [Sat, 10 Mar 2018 19:10:08 +0000 (20:10 +0100)]
moved getting title strings from config files to separate functions

4 months agofixed bug with always drawing level playfield in editor after test playing
Holger Schemel [Wed, 31 Jan 2018 21:01:11 +0000 (22:01 +0100)]
fixed bug with always drawing level playfield in editor after test playing

- even if the last edit mode was "level info", "element properties" etc.
- this bug was introduced by the commit with the following message:
  "added editor door 1 animation if viewport is unchanged and contains toolbox"
  (no commit ID given here due to frequent use of "git rebase")

4 months agofixed saving snapshots (step, move and collect mode) to MM game engine
Holger Schemel [Thu, 21 Dec 2017 17:37:10 +0000 (18:37 +0100)]
fixed saving snapshots (step, move and collect mode) to MM game engine

4 months agofixed bug in (still largely broken) single-step mode when using joystick
Holger Schemel [Tue, 19 Dec 2017 21:02:18 +0000 (22:02 +0100)]
fixed bug in (still largely broken) single-step mode when using joystick

4 months agoadded single-step mode (well, sort of) to MM game engine
Holger Schemel [Tue, 19 Dec 2017 20:55:07 +0000 (21:55 +0100)]
added single-step mode (well, sort of) to MM game engine

4 months agofixed updating tile selection cursor position when using mouse in MM games
Holger Schemel [Fri, 15 Dec 2017 08:15:13 +0000 (09:15 +0100)]
fixed updating tile selection cursor position when using mouse in MM games

4 months agofixed showing/hiding mouse cursor in playfield when playing MM style games
Holger Schemel [Fri, 15 Dec 2017 08:13:12 +0000 (09:13 +0100)]
fixed showing/hiding mouse cursor in playfield when playing MM style games

4 months agoimproved smoothness of moving tile selection cursor
Holger Schemel [Fri, 15 Dec 2017 07:29:27 +0000 (08:29 +0100)]
improved smoothness of moving tile selection cursor

4 months agofixed moving tile selection cursor
Holger Schemel [Fri, 15 Dec 2017 07:19:27 +0000 (08:19 +0100)]
fixed moving tile selection cursor

4 months agofixed bug with keyboard/joystick events unpausing MM style games
Holger Schemel [Fri, 15 Dec 2017 07:13:22 +0000 (08:13 +0100)]
fixed bug with keyboard/joystick events unpausing MM style games

4 months agofixed bug with ending solved MM level without scores when using keyboard
Holger Schemel [Wed, 13 Dec 2017 07:55:26 +0000 (08:55 +0100)]
fixed bug with ending solved MM level without scores when using keyboard

4 months agoadded tile selection cursor for playing MM levels with keyboard or joystick
Holger Schemel [Wed, 13 Dec 2017 07:39:30 +0000 (08:39 +0100)]
added tile selection cursor for playing MM levels with keyboard or joystick

4 months agoadded delaying joystick actions also on the high scores screen
Holger Schemel [Tue, 12 Dec 2017 21:18:01 +0000 (22:18 +0100)]
added delaying joystick actions also on the high scores screen

4 months agocompleted touch controls (follow finger) for MM game engine on Android
Holger Schemel [Mon, 4 Dec 2017 00:13:37 +0000 (01:13 +0100)]
completed touch controls (follow finger) for MM game engine on Android

4 months agoadded touch controls (follow finger) for MM game engine on Android
Holger Schemel [Sun, 3 Dec 2017 11:35:49 +0000 (12:35 +0100)]
added touch controls (follow finger) for MM game engine on Android

4 months agomoved code for separate touch controls to separate functions (cleanup)
Holger Schemel [Fri, 1 Dec 2017 21:26:29 +0000 (22:26 +0100)]
moved code for separate touch controls to separate functions (cleanup)

4 months agocleanup of gadget handling for Android/non-Android platforms
Holger Schemel [Fri, 1 Dec 2017 20:46:31 +0000 (21:46 +0100)]
cleanup of gadget handling for Android/non-Android platforms

4 months agoadded touch controls (wipe gestures) for MM game engine on Android
Holger Schemel [Tue, 28 Nov 2017 20:40:14 +0000 (21:40 +0100)]
added touch controls (wipe gestures) for MM game engine on Android

4 months agoadded option 'off' for touch controls (for non-Android platforms)
Holger Schemel [Tue, 28 Nov 2017 08:50:26 +0000 (09:50 +0100)]
added option 'off' for touch controls (for non-Android platforms)

4 months agofixed text output for deactivated anti-aliasing menu option
Holger Schemel [Tue, 28 Nov 2017 08:40:13 +0000 (09:40 +0100)]
fixed text output for deactivated anti-aliasing menu option

4 months agomoved function for processing 'follow finger' controls if no events pending
Holger Schemel [Tue, 28 Nov 2017 08:32:18 +0000 (09:32 +0100)]
moved function for processing 'follow finger' controls if no events pending

4 months agocleanup of function names related to processing (no) pending events
Holger Schemel [Tue, 28 Nov 2017 08:28:50 +0000 (09:28 +0100)]
cleanup of function names related to processing (no) pending events

4 months agoadded support for main menu titles in level and graphics config file
Holger Schemel [Fri, 24 Nov 2017 20:21:19 +0000 (21:21 +0100)]
added support for main menu titles in level and graphics config file

4 months agochanged handling artwork info cache to allow partial (default) entries
Holger Schemel [Fri, 24 Nov 2017 20:12:42 +0000 (21:12 +0100)]
changed handling artwork info cache to allow partial (default) entries

4 months agocompleted game engine snapshot values to save/load for MM game engine
Holger Schemel [Mon, 20 Nov 2017 20:05:28 +0000 (21:05 +0100)]
completed game engine snapshot values to save/load for MM game engine

4 months agofixed bug when loading game engine snapshot values for MM game engine
Holger Schemel [Mon, 20 Nov 2017 20:00:57 +0000 (21:00 +0100)]
fixed bug when loading game engine snapshot values for MM game engine

4 months agofixed setting selected editor tile size for MM style levels after playing
Holger Schemel [Thu, 16 Nov 2017 20:42:41 +0000 (21:42 +0100)]
fixed setting selected editor tile size for MM style levels after playing

4 months agofixed closing door 2 after door 1 when no tape is to be saved after playing
Holger Schemel [Tue, 14 Nov 2017 21:35:29 +0000 (22:35 +0100)]
fixed closing door 2 after door 1 when no tape is to be saved after playing

4 months agofixed stopping game music after running out of time (MM engine)
Holger Schemel [Tue, 14 Nov 2017 08:39:14 +0000 (09:39 +0100)]
fixed stopping game music after running out of time (MM engine)

4 months agorearranged some elements in level editor to match game engines
Holger Schemel [Sat, 11 Nov 2017 20:24:57 +0000 (21:24 +0100)]
rearranged some elements in level editor to match game engines

4 months agoadded options to use artwork and to copy template when creating level set
Holger Schemel [Sat, 11 Nov 2017 19:54:10 +0000 (20:54 +0100)]
added options to use artwork and to copy template when creating level set

4 months agochanged function from static to public
Holger Schemel [Sat, 11 Nov 2017 19:31:57 +0000 (20:31 +0100)]
changed function from static to public

4 months agoadded function to copy file
Holger Schemel [Sat, 11 Nov 2017 19:27:43 +0000 (20:27 +0100)]
added function to copy file

4 months agounified some setup menu titles (and adjusted them for smaller screens)
Holger Schemel [Wed, 8 Nov 2017 21:55:19 +0000 (22:55 +0100)]
unified some setup menu titles (and adjusted them for smaller screens)

4 months agoadded checking for default setup file in global config directory
Holger Schemel [Tue, 7 Nov 2017 22:27:27 +0000 (23:27 +0100)]
added checking for default setup file in global config directory

4 months agorenamed variable
Holger Schemel [Tue, 7 Nov 2017 22:24:32 +0000 (23:24 +0100)]
renamed variable

4 months agomove function for getting program base directory to appropriate source file
Holger Schemel [Tue, 7 Nov 2017 22:19:16 +0000 (23:19 +0100)]
move function for getting program base directory to appropriate source file

4 months agomove check for configured program base directory to appropriate function
Holger Schemel [Tue, 7 Nov 2017 22:14:56 +0000 (23:14 +0100)]
move check for configured program base directory to appropriate function

4 months agoremoved reference to (potentially undefined) global variable from function
Holger Schemel [Tue, 7 Nov 2017 22:08:54 +0000 (23:08 +0100)]
removed reference to (potentially undefined) global variable from function

4 months agoremoved unneeded reference to app bundle directory for Mac OS X
Holger Schemel [Tue, 7 Nov 2017 22:03:08 +0000 (23:03 +0100)]
removed unneeded reference to app bundle directory for Mac OS X

4 months agofixed bug that may lead to free()ing static memory
Holger Schemel [Tue, 7 Nov 2017 21:55:42 +0000 (22:55 +0100)]
fixed bug that may lead to free()ing static memory

4 months agoadded setting correct editor drawing elements (depending on game engine)
Holger Schemel [Mon, 6 Nov 2017 00:21:54 +0000 (01:21 +0100)]
added setting correct editor drawing elements (depending on game engine)

4 months agoadded setting correct default editor tile size (depending on game engine)
Holger Schemel [Mon, 6 Nov 2017 00:01:19 +0000 (01:01 +0100)]
added setting correct default editor tile size (depending on game engine)

4 months agoadded setting correct editor tile size for MM style levels
Holger Schemel [Sun, 5 Nov 2017 23:56:00 +0000 (00:56 +0100)]
added setting correct editor tile size for MM style levels

4 months agoadded editor door 1 animation if viewport is unchanged and contains toolbox
Holger Schemel [Sun, 5 Nov 2017 23:28:27 +0000 (00:28 +0100)]
added editor door 1 animation if viewport is unchanged and contains toolbox

4 months agofixed bug with invisible initial fonts
Holger Schemel [Sun, 5 Nov 2017 17:25:30 +0000 (18:25 +0100)]
fixed bug with invisible initial fonts

- this bug was introduced by the commit with the following message:
  "added support for font definitions with different character offset and size"
  (no commit ID given here due to frequent use of "git rebase")

4 months agofixed bug causing crash when playing levels with 'time orb bug'
Holger Schemel [Sat, 4 Nov 2017 00:20:46 +0000 (01:20 +0100)]
fixed bug causing crash when playing levels with 'time orb bug'

4 months agoadded suppressing border elements in editor for MM style levels
Holger Schemel [Fri, 3 Nov 2017 23:52:59 +0000 (00:52 +0100)]
added suppressing border elements in editor for MM style levels

4 months agoadded options for custom position of editor tooltip (mouse-over info text)
Holger Schemel [Fri, 3 Nov 2017 18:30:55 +0000 (19:30 +0100)]
added options for custom position of editor tooltip (mouse-over info text)

4 months agofixed fading complete screen if playfield viewport has changed
Holger Schemel [Fri, 3 Nov 2017 13:39:54 +0000 (14:39 +0100)]
fixed fading complete screen if playfield viewport has changed

4 months agofixed bug with drawing to default door 2 area while in editor
Holger Schemel [Fri, 3 Nov 2017 13:06:34 +0000 (14:06 +0100)]
fixed bug with drawing to default door 2 area while in editor

4 months agoadded options for post delay for door actions
Holger Schemel [Thu, 2 Nov 2017 00:00:23 +0000 (01:00 +0100)]
added options for post delay for door actions

4 months agoadded support for separate opening/closing sounds for game/tape doors
Holger Schemel [Wed, 1 Nov 2017 23:43:39 +0000 (00:43 +0100)]
added support for separate opening/closing sounds for game/tape doors

4 months agofixed bug with playing level music in main menu when pressing music button
Holger Schemel [Wed, 1 Nov 2017 23:21:49 +0000 (00:21 +0100)]
fixed bug with playing level music in main menu when pressing music button

4 months agoadded game-panel-only buttons for stop/play/pause and sounds (for MM games)
Holger Schemel [Wed, 1 Nov 2017 23:01:52 +0000 (00:01 +0100)]
added game-panel-only buttons for stop/play/pause and sounds (for MM games)

4 months agoadded null pointer check to gadget function
Holger Schemel [Wed, 1 Nov 2017 21:14:44 +0000 (22:14 +0100)]
added null pointer check to gadget function

4 months agoreused unused font definition for text on joystick configuration page
Holger Schemel [Tue, 31 Oct 2017 12:06:58 +0000 (13:06 +0100)]
reused unused font definition for text on joystick configuration page

4 months agocompleted options for vertical text spacing on info and setup screens
Holger Schemel [Tue, 31 Oct 2017 11:49:28 +0000 (12:49 +0100)]
completed options for vertical text spacing on info and setup screens

4 months agoimproved options for vertical text spacing on info and setup screens
Holger Schemel [Mon, 30 Oct 2017 15:22:32 +0000 (16:22 +0100)]
improved options for vertical text spacing on info and setup screens

4 months agoadded missing option for menu draw offset for (empty) title info screen
Holger Schemel [Mon, 30 Oct 2017 09:50:25 +0000 (10:50 +0100)]
added missing option for menu draw offset for (empty) title info screen

4 months agoadded options for vertical text spacing (used on info screens for now)
Holger Schemel [Sat, 21 Oct 2017 23:43:24 +0000 (01:43 +0200)]
added options for vertical text spacing (used on info screens for now)

4 months agofixed (switched) fonts for constant and variable text output
Holger Schemel [Sat, 21 Oct 2017 16:52:47 +0000 (18:52 +0200)]
fixed (switched) fonts for constant and variable text output

4 months agoadded displaying fake version as 'fake' on the version info screen
Holger Schemel [Sat, 21 Oct 2017 16:42:22 +0000 (18:42 +0200)]
added displaying fake version as 'fake' on the version info screen

4 months agoadded support for font definitions with different character offset and size
Holger Schemel [Sat, 21 Oct 2017 14:49:28 +0000 (16:49 +0200)]
added support for font definitions with different character offset and size

4 months agocorrected comment
Holger Schemel [Sat, 21 Oct 2017 14:41:55 +0000 (16:41 +0200)]
corrected comment

4 months agofixed bug that could cause crash when artwork changes editor palette size
Holger Schemel [Sat, 21 Oct 2017 14:36:44 +0000 (16:36 +0200)]
fixed bug that could cause crash when artwork changes editor palette size

4 months agoremoved unused option to set first level of user level sets not to be '1'
Holger Schemel [Tue, 17 Oct 2017 19:42:26 +0000 (21:42 +0200)]
removed unused option to set first level of user level sets not to be '1'

4 months agofixed bug with new user level sets (first level should always be '1')
Holger Schemel [Tue, 17 Oct 2017 19:34:42 +0000 (21:34 +0200)]
fixed bug with new user level sets (first level should always be '1')

4 months agofixed small bug with (unused) bad path in level info tree top node
Holger Schemel [Tue, 17 Oct 2017 19:32:32 +0000 (21:32 +0200)]
fixed small bug with (unused) bad path in level info tree top node

4 months agoadded loading newly created user level set after it was created in editor
Holger Schemel [Tue, 17 Oct 2017 19:27:18 +0000 (21:27 +0200)]
added loading newly created user level set after it was created in editor

4 months agoadded updating internal level directory tree when changing user level set
Holger Schemel [Tue, 17 Oct 2017 16:57:55 +0000 (18:57 +0200)]
added updating internal level directory tree when changing user level set

4 months agosmall change to tidy up level info files
Holger Schemel [Tue, 17 Oct 2017 16:48:27 +0000 (18:48 +0200)]
small change to tidy up level info files

4 months agofixed updating user level set fields (more generic approach)
Holger Schemel [Tue, 17 Oct 2017 16:43:57 +0000 (18:43 +0200)]
fixed updating user level set fields (more generic approach)

4 months agoadded function to get existing or new user level set
Holger Schemel [Tue, 17 Oct 2017 16:39:20 +0000 (18:39 +0200)]
added function to get existing or new user level set

4 months agoadded updating metadata for current level set and creating new level sets
Holger Schemel [Sun, 15 Oct 2017 19:38:47 +0000 (21:38 +0200)]
added updating metadata for current level set and creating new level sets

4 months agoreplaced duplicate code for updating user level set with function call
Holger Schemel [Sun, 15 Oct 2017 19:06:29 +0000 (21:06 +0200)]
replaced duplicate code for updating user level set with function call

4 months agoadded functions for creating and updating user level sets
Holger Schemel [Sun, 15 Oct 2017 19:01:21 +0000 (21:01 +0200)]
added functions for creating and updating user level sets