From adfcb65b1bf148d5a2f5ed1392b87fd20a447899 Mon Sep 17 00:00:00 2001 From: Rusmir Dusko Date: Tue, 17 Dec 2013 13:01:12 +0000 Subject: [PATCH] Unlike your common unilateral falling block games, 'Double Cross' implements a bidirectional paradigm expanding the genre in both dimension and difficulty. Blocks fall from the top and fly in from the side settling in a joined "play area". Deletions occur when rows of ten blocks are completed. A horizontal row of 10 will cause the blocks to fall down, and a vertical row of 10 will cause the blocks to "fall" to the right. If a vertical row is completed during a vertical drop or a horizontal row is completed during a horizontal drop the corresponding deletion will not occur until the next turn. This can and will lead to non-intuitive results. Focus on the vertical alone and you will die from horizontal negligence and vice versa. WWW: https://code.google.com/p/double-cross/ PR: ports/171603 Submitted by: nemysis (self) Approved by: pawel (mentor) --- games/Makefile | 1 + games/dcross/Makefile | 55 +++++++++++++++++++++++ games/dcross/distinfo | 4 ++ games/dcross/files/dcross.in | 7 +++ games/dcross/pkg-descr | 14 ++++++ games/dcross/pkg-plist | 85 ++++++++++++++++++++++++++++++++++++ 6 files changed, 166 insertions(+) create mode 100644 games/dcross/Makefile create mode 100644 games/dcross/distinfo create mode 100644 games/dcross/files/dcross.in create mode 100644 games/dcross/pkg-descr create mode 100644 games/dcross/pkg-plist diff --git a/games/Makefile b/games/Makefile index d3eadf89329a..642ef50cd52c 100644 --- a/games/Makefile +++ b/games/Makefile @@ -183,6 +183,7 @@ SUBDIR += dangerdeep SUBDIR += dangerdeep-data SUBDIR += darkplaces + SUBDIR += dcross SUBDIR += deal SUBDIR += defendguin SUBDIR += deng diff --git a/games/dcross/Makefile b/games/dcross/Makefile new file mode 100644 index 000000000000..418bdff16ad7 --- /dev/null +++ b/games/dcross/Makefile @@ -0,0 +1,55 @@ +# Created by: Rusmir Dusko +# $FreeBSD$ + +PORTNAME= dcross +PORTVERSION= 2.0 +CATEGORIES= games python +MASTER_SITES= GOOGLE_CODE \ + SF/nemysisfreebsdp/games/:icons +PROJECTHOST= double-cross +DISTFILES= ${PORTNAME}_${DISTVERSION}${EXTRACT_SUFX} \ + ${PORTNAME}_icons${EXTRACT_SUFX}:icons +DIST_SUBDIR= python + +MAINTAINER= nemysis@FreeBSD.org +COMMENT= Unconventional falling block game + +LICENSE= GPLv2 + +RUN_DEPENDS= ${PYGAME} + +WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}/ + +USE_ZIP= yes +USES= dos2unix +DOS2UNIX_REGEX= .*.[^p][^n][^g]$ +DOS2UNIX_FILES= *.pyw +USE_PYTHON= yes + +INSTALLS_ICONS= yes +ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 + +SUB_FILES= ${PORTNAME} + +DESKTOP_ENTRIES="Double Cross" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" "" + +do-build: + @${PYTHON_CMD} -m compileall ${WRKSRC} + @${PYTHON_CMD} -O -m compileall ${WRKSRC} + +do-install: + @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \ + ${WRKDIR}/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) + +.for s in ${ICON_SIZES} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/ + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png +.endfor + ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ + +.include diff --git a/games/dcross/distinfo b/games/dcross/distinfo new file mode 100644 index 000000000000..0945875dec96 --- /dev/null +++ b/games/dcross/distinfo @@ -0,0 +1,4 @@ +SHA256 (python/dcross_2.0.zip) = 57ce35a0b41dda365c976bf5ff671785c975ebf842a3609be3d53b74a0a6bfa8 +SIZE (python/dcross_2.0.zip) = 28543733 +SHA256 (python/dcross_icons.zip) = 8501803fedea59dc897c83a332e0c5308c8bb6db73d82d5160c994701aee9edb +SIZE (python/dcross_icons.zip) = 40422 diff --git a/games/dcross/files/dcross.in b/games/dcross/files/dcross.in new file mode 100644 index 000000000000..eb7b7c68d53a --- /dev/null +++ b/games/dcross/files/dcross.in @@ -0,0 +1,7 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +cd "%%DATADIR%%" +exec %%PYTHON_CMD%% ./double-cross.pyw "${@}" diff --git a/games/dcross/pkg-descr b/games/dcross/pkg-descr new file mode 100644 index 000000000000..fd1d54b86510 --- /dev/null +++ b/games/dcross/pkg-descr @@ -0,0 +1,14 @@ +Unlike your common unilateral falling block games, 'Double Cross' implements +a bidirectional paradigm expanding the genre in both dimension and difficulty. + +Blocks fall from the top and fly in from the side settling in a joined +"play area". Deletions occur when rows of ten blocks are completed. +A horizontal row of 10 will cause the blocks to fall down, and a vertical row +of 10 will cause the blocks to "fall" to the right. +If a vertical row is completed during a vertical drop or a horizontal row is +completed during a horizontal drop the corresponding deletion will not occur +until the next turn. This can and will lead to non-intuitive results. +Focus on the vertical alone and you will die from horizontal negligence and +vice versa. + +WWW: https://code.google.com/p/double-cross/ diff --git a/games/dcross/pkg-plist b/games/dcross/pkg-plist new file mode 100644 index 000000000000..c87cb2a38902 --- /dev/null +++ b/games/dcross/pkg-plist @@ -0,0 +1,85 @@ +bin/dcross +%%DATADIR%%/data/__init__.py +%%DATADIR%%/data/__init__.pyc +%%DATADIR%%/data/__init__.pyo +%%DATADIR%%/data/blocks.py +%%DATADIR%%/data/blocks.pyc +%%DATADIR%%/data/blocks.pyo +%%DATADIR%%/data/game.py +%%DATADIR%%/data/game.pyc +%%DATADIR%%/data/game.pyo +%%DATADIR%%/data/highs.dat +%%DATADIR%%/data/highscore.py +%%DATADIR%%/data/highscore.pyc +%%DATADIR%%/data/highscore.pyo +%%DATADIR%%/data/keymap.py +%%DATADIR%%/data/keymap.pyc +%%DATADIR%%/data/keymap.pyo +%%DATADIR%%/data/loser.py +%%DATADIR%%/data/loser.pyc +%%DATADIR%%/data/loser.pyo +%%DATADIR%%/data/main.py +%%DATADIR%%/data/main.pyc +%%DATADIR%%/data/main.pyo +%%DATADIR%%/data/menu.py +%%DATADIR%%/data/menu.pyc +%%DATADIR%%/data/menu.pyo +%%DATADIR%%/data/playcontrols.dat +%%DATADIR%%/data/reset.py +%%DATADIR%%/data/reset.pyc +%%DATADIR%%/data/reset.pyo +%%DATADIR%%/data/setup.py +%%DATADIR%%/data/setup.pyc +%%DATADIR%%/data/setup.pyo +%%DATADIR%%/data/title.py +%%DATADIR%%/data/title.pyc +%%DATADIR%%/data/title.pyo +%%DATADIR%%/data/tools.py +%%DATADIR%%/data/tools.pyc +%%DATADIR%%/data/tools.pyo +%%DATADIR%%/double-cross.pyw +%%DATADIR%%/fonts/arial.ttf +%%DATADIR%%/fonts/impact.ttf +%%DATADIR%%/fonts/wadim_giant.ttf +%%DATADIR%%/fonts/wadimi.ttf +%%DATADIR%%/graphics/alphagrid.png +%%DATADIR%%/graphics/base.png +%%DATADIR%%/graphics/brick.png +%%DATADIR%%/graphics/cell_deletion1.png +%%DATADIR%%/graphics/cell_deletion2.png +%%DATADIR%%/graphics/controls.png +%%DATADIR%%/graphics/curt.png +%%DATADIR%%/graphics/dc_icon.png +%%DATADIR%%/graphics/donote.png +%%DATADIR%%/graphics/flipper_h.png +%%DATADIR%%/graphics/komrade.png +%%DATADIR%%/graphics/logo.png +%%DATADIR%%/graphics/nekey.png +%%DATADIR%%/graphics/note.png +%%DATADIR%%/graphics/scorebg.png +%%DATADIR%%/graphics/shade.png +%%DATADIR%%/graphics/strip.png +%%DATADIR%%/graphics/title1.png +%%DATADIR%%/graphics/title2.png +%%DATADIR%%/sound/effects/blipshort1.wav +%%DATADIR%%/sound/effects/chimed.wav +%%DATADIR%%/sound/effects/explosion.wav +%%DATADIR%%/sound/effects/lev.wav +%%DATADIR%%/sound/effects/line.wav +%%DATADIR%%/sound/effects/thud.wav +%%DATADIR%%/sound/music/Kalinka.mp3 +%%DATADIR%%/sound/music/Katyusha.mp3 +%%DATADIR%%/sound/music/Korobelniki.mp3 +share/icons/hicolor/32x32/apps/dcross.png +share/icons/hicolor/48x48/apps/dcross.png +share/icons/hicolor/64x64/apps/dcross.png +share/icons/hicolor/72x72/apps/dcross.png +share/icons/hicolor/96x96/apps/dcross.png +share/pixmaps/dcross.png +@dirrm %%DATADIR%%/sound/music +@dirrm %%DATADIR%%/sound/effects +@dirrm %%DATADIR%%/sound +@dirrm %%DATADIR%%/graphics +@dirrm %%DATADIR%%/fonts +@dirrm %%DATADIR%%/data +@dirrm %%DATADIR%%