diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/pycadia/Makefile | 55 | ||||
-rw-r--r-- | games/pycadia/distinfo | 2 | ||||
-rw-r--r-- | games/pycadia/files/pycadia.conf | 56 | ||||
-rw-r--r-- | games/pycadia/pkg-descr | 9 |
5 files changed, 123 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 617ae2621d50..dd98cf2ffe08 100644 --- a/games/Makefile +++ b/games/Makefile @@ -707,6 +707,7 @@ SUBDIR += py-sgfsummary SUBDIR += py-ski SUBDIR += pyawale + SUBDIR += pycadia SUBDIR += pyching SUBDIR += pydance SUBDIR += pykawari diff --git a/games/pycadia/Makefile b/games/pycadia/Makefile new file mode 100644 index 000000000000..6df68a91ffb4 --- /dev/null +++ b/games/pycadia/Makefile @@ -0,0 +1,55 @@ +# New Ports collection makefile for: Pycadia +# Date created: 2012-05-09 +# Whom: nemysis@gmx.ch +# +# $FreeBSD$ +# + +PORTNAME= pycadia +PORTVERSION= 0.5.1 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_GENTOO:S/%SUBDIR%/distfiles/} + +MAINTAINER= nemysis@gmx.ch +COMMENT= Home to vector gaming, Python style + +LICENSE= GPLv2 + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \ + ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_PYTHON= yes +NO_BUILD= yes + +PLIST_FILES= bin/pycadia \ + share/pixmaps/pycadia.png + +PORTDATA= * +PORTDOCS= CHANGELOG INSTALL README TODO gravity.txt + +do-install: +# Scripts + @${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\ + ./${PORTNAME}.py\n" > ${WRKDIR}/${PORTNAME}.sh + @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} + +# Data +.if !defined (NOPORTDATA) + ${MKDIR} ${DATADIR} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "glade pixmaps sounds *.*" ${DATADIR}) + @(cd ${DATADIR} && ${CHMOD} 755 pycadia.py spacewarpy.py vektoroids.py) + ${INSTALL_DATA} ${FILESDIR}/pycadia.conf ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pixmaps/logo1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png +.endif + +# Documentation +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +. for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} +. endfor +.endif + +.include <bsd.port.mk> diff --git a/games/pycadia/distinfo b/games/pycadia/distinfo new file mode 100644 index 000000000000..739b6da462af --- /dev/null +++ b/games/pycadia/distinfo @@ -0,0 +1,2 @@ +SHA256 (pycadia-0.5.1.tar.gz) = c872e4aede8cd04773327308b38b7e85b06aa370facee1c7b912d9ea938f67b5 +SIZE (pycadia-0.5.1.tar.gz) = 2768619 diff --git a/games/pycadia/files/pycadia.conf b/games/pycadia/files/pycadia.conf new file mode 100644 index 000000000000..20224345c762 --- /dev/null +++ b/games/pycadia/files/pycadia.conf @@ -0,0 +1,56 @@ +[player2] +key_fire = 114 +name = Player 2 +joy_left = ['axis', 0, -1] +joy_right = ['axis', 0, 1] +joy_fire = ['button', 1, 1] +key_hyper = 100 +key_left = 97 +key_thrust = 101 +joy_hyper = ['button', 2, 1] +joy_thrust = ['button', 0, 1] +key_right = 115 +joy_id = -1 + +[player1] +key_fire = 305 +name = Player 1 +joy_left = ['axis', 0, -1] +joy_right = ['axis', 0, 1] +joy_fire = ['button', 0, 1] +key_right = 275 +key_left = 276 +key_thrust = 273 +joy_id = -1 +joy_thrust = ['button', 2, 1] +key_hyper = 274 +joy_hyper = ['button', 1, 1] + +[spacewarpy] +asteroid_delay = 15 +player_lives = 5 +shot_life = 1.25 +max_shots = 4 +asteroid_destroy = 5 +gravity = 2.0 + +[pycadia] +last_game = vektoroids +tab_position = 0 + +[vektoroids] +#player_lives = 3 +player_lives = 5 +asteroid_wave = 3 +max_shots = 3 +#shot_life = 0.5 +shot_life = 1.25 +asteroid_destroy = 1 + +[display] +fullscreen = 0 +screensize_x = 800 +screensize_y = 600 +screensize_pos = 2 +target_fps = 40 + diff --git a/games/pycadia/pkg-descr b/games/pycadia/pkg-descr new file mode 100644 index 000000000000..48f7317af4f7 --- /dev/null +++ b/games/pycadia/pkg-descr @@ -0,0 +1,9 @@ +The Pycadia project is a collection of vector arcade games written in Python +using the excellent pygame libraries. + +Current games are: + +SpaceWarpy is a conversion of the original classic game Spacewar!. +Vektoroids is loosely based on the arcade classic Asteroids. + +WWW: http://www.anti-particle.com/old/pycadia.shtml |