diff options
author | adam <adam@pkgsrc.org> | 2019-05-05 07:59:38 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2019-05-05 07:59:38 +0000 |
commit | 90c0a4964dcef2c0a644982b935d4c05d7042f8d (patch) | |
tree | 5aff61bdd26d8f9e09d2704968d05ca3e72567c6 /games/mirrormagic | |
parent | a9aac7681b1b4243d02890a78bf0e372a2449f8b (diff) | |
download | pkgsrc-90c0a4964dcef2c0a644982b935d4c05d7042f8d.tar.gz |
rocksndiamonds: updated to 4.1.2.0
4.1.2.0:
Levels & Artwork:
drag-and-drop support for level and artwork zip files on all platforms
zip files can be dropped into main menu or into level set selection menu
zip files placed into level (sub-)directory will be extracted at start
added support for level sketch copy/paste using Ctrl-c/v in level editor
also makes it easy to copy complete playfields between levels in editor
added support for graphics sets with dynamic window and playfield size
added special global animation mode ‘NO_TITLE’ for all but title screens
Gameplay:
added request dialog to play again after game is over without solving level
added quickly toggling team mode by clicking on main menu “name/team” text
Bug fixes:
fixed bugs in game logic of “game of life” and “biomaze” elements
fixed many bugs related to local and network multi-player games
fixed many bugs related to virtual buttons when playing on touch devices
lots of other bugs fixed in this release (see Git commit messages)
Other changes:
removed support for SDL 1.2
4.1.1.0:
Multi-player games (team mode and network games):
improved support for network multi-player games (plus lots of bugfixes)
network games can now be fully configured by using setup menu settings
when playing network games, the level to be played is now sent to all clients
added UDP broadcast to auto-detect network server in local network
multi-player levels now marked in main menu preview with network or team mode
fixed team mode games in R’n’D game engine (all players have to enter an exit)
added player option in level editor to let the first player solve the level
Virtual buttons on touch devices:
improved support for highly configurable virtual buttons on touch devices
options for transparency, grid size, highlighted and outlined virtual buttons
separately configurable virtual buttons for portrait and landscape mode
Graphics:
ultra-smooth scrolling using vertical sync (vsync) on supported devices
Game settings:
added setup option to directly play the next level after solving a level
added setup option to skip displaying the high scores after solving a level
added setup option to use extended list for game speed selection
Global animations:
added event actions (key events and screen buttons) to global animations
this allows for simulating key or button events when animations are clicked
added “passthrough” option to click several overlapping global animations
Other changes:
fixed bug with dragon fire destroying indestructible steel letter walls
fixed various other bugs (and probably added some new)
Diffstat (limited to 'games/mirrormagic')
-rw-r--r-- | games/mirrormagic/patches/patch-src_Makefile | 19 | ||||
-rw-r--r-- | games/mirrormagic/patches/patch-src_libgame_joystick.c | 22 | ||||
-rw-r--r-- | games/mirrormagic/patches/patch-src_libgame_joystick.h | 15 | ||||
-rw-r--r-- | games/mirrormagic/patches/patch-src_libgame_system.c | 18 |
4 files changed, 74 insertions, 0 deletions
diff --git a/games/mirrormagic/patches/patch-src_Makefile b/games/mirrormagic/patches/patch-src_Makefile new file mode 100644 index 00000000000..42e935b33bf --- /dev/null +++ b/games/mirrormagic/patches/patch-src_Makefile @@ -0,0 +1,19 @@ +$NetBSD: patch-src_Makefile,v 1.1 2019/05/05 07:59:38 adam Exp $ + +Append to CFLAGS and LDFLAGS. + +--- src/Makefile.orig 2017-03-15 20:15:06.000000000 +0000 ++++ src/Makefile +@@ -117,8 +117,10 @@ SYS_LDFLAGS := $(shell echo $(SYS_LDFLAG + OPTIONS = -O3 -Wall + endif + +-CFLAGS = $(OPTIONS) $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG) +-LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm ++# pkgsrc presets those variables, so use '+=' to append to them ++# flags for debugging or optimisation may be supplied from the pkgsrc Makefile ++CFLAGS += $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG) ++LDFLAGS += $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm + + + SRCS = main.c \ diff --git a/games/mirrormagic/patches/patch-src_libgame_joystick.c b/games/mirrormagic/patches/patch-src_libgame_joystick.c new file mode 100644 index 00000000000..5ff87a7161a --- /dev/null +++ b/games/mirrormagic/patches/patch-src_libgame_joystick.c @@ -0,0 +1,22 @@ +$NetBSD: patch-src_libgame_joystick.c,v 1.1 2019/05/05 07:59:38 adam Exp $ + +Allow joystick on NetBSD. + +--- src/libgame/joystick.c.orig 2015-10-20 21:58:08.000000000 +0000 ++++ src/libgame/joystick.c +@@ -9,12 +9,13 @@ + // joystick.c + // ============================================================================ + +-#if defined(PLATFORM_FREEBSD) ++#include "misc.h" ++ ++#if defined(PLATFORM_FREEBSD) || (defined(PLATFORM_NETBSD) && defined(HAVE_JOYSTICK)) + #include <machine/joystick.h> + #endif + + #include "joystick.h" +-#include "misc.h" + + + /* ========================================================================= */ diff --git a/games/mirrormagic/patches/patch-src_libgame_joystick.h b/games/mirrormagic/patches/patch-src_libgame_joystick.h new file mode 100644 index 00000000000..dc32a4e687e --- /dev/null +++ b/games/mirrormagic/patches/patch-src_libgame_joystick.h @@ -0,0 +1,15 @@ +$NetBSD: patch-src_libgame_joystick.h,v 1.1 2019/05/05 07:59:38 adam Exp $ + +Allow joystick on NetBSD. + +--- src/libgame/joystick.h.orig 2017-09-12 20:17:10.000000000 +0000 ++++ src/libgame/joystick.h +@@ -23,7 +23,7 @@ + + #define MAX_JOYSTICK_NAME_LEN 40 + +-#if defined(PLATFORM_FREEBSD) ++#if defined(PLATFORM_FREEBSD) || (defined(PLATFORM_NETBSD) && defined(HAVE_JOYSTICK)) + #define DEV_JOYSTICK_0 "/dev/joy0" + #define DEV_JOYSTICK_1 "/dev/joy1" + #define DEV_JOYSTICK_2 "/dev/joy2" diff --git a/games/mirrormagic/patches/patch-src_libgame_system.c b/games/mirrormagic/patches/patch-src_libgame_system.c new file mode 100644 index 00000000000..98bb5802114 --- /dev/null +++ b/games/mirrormagic/patches/patch-src_libgame_system.c @@ -0,0 +1,18 @@ +$NetBSD: patch-src_libgame_system.c,v 1.1 2019/05/05 07:59:38 adam Exp $ + +InitJoystick will be called more than once, so reset the state +variable 'joystick' only if there's no joystick available (yet). + +--- src/libgame/system.c.orig 2018-04-10 19:44:08.000000000 +0000 ++++ src/libgame/system.c +@@ -1744,8 +1744,10 @@ void InitJoysticks() + + /* always start with reliable default values */ + joystick.status = JOYSTICK_NOT_AVAILABLE; ++ if (joystick.status == JOYSTICK_NOT_AVAILABLE) { + for (i = 0; i < MAX_PLAYERS; i++) + joystick.nr[i] = -1; /* no joystick configured */ ++ } + + SDLInitJoysticks(); + } |