- New Port PySpaceWar

Two ships duel in a gravity field. Gravity doesn't affect the ships
themselves (which have spanking new anti-gravity devices), but it affects
missiles launced by the ships.

You can play against the computer, or two players can play with one keyboard.
There is also a Gravity Wars mode, where the two ships do not move, and the
players repeatedly specify the direction and velocity of their missiles.
This commit is contained in:
Beech Rintoul 2013-05-12 22:13:57 +00:00
parent 837e8fc184
commit 9272bb0316
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317983
5 changed files with 119 additions and 0 deletions

View file

@ -770,6 +770,7 @@
SUBDIR += pysol-cardsets
SUBDIR += pysol-music
SUBDIR += pysolfc
SUBDIR += pyspacewar
SUBDIR += pysycache
SUBDIR += pysycache-lang
SUBDIR += pysycache-themes

51
games/pyspacewar/Makefile Normal file
View file

@ -0,0 +1,51 @@
# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$
PORTNAME= pyspacewar
PORTVERSION= 0.9.7
CATEGORIES= games python
MASTER_SITES= http://mg.pov.lt/${PORTNAME}/\
LOCAL/beech
DIST_SUBDIR= python
MAINTAINER= nemysis@gmx.ch
COMMENT= Two ships duel in a gravity field
LICENSE= GPLv2
RUN_DEPENDS= ${PYGAME}
USE_PYTHON= yes
USE_PYDISTUTILS=yes
NO_BUILD= yes
PORTDOCS= NEWS.txt README.txt TODO.txt performance-notes.txt
INSTALLS_ICONS= yes
ICON_SIZES= 16x16 22x22 32x32 48x48
DESKTOP_ENTRIES="PySpaceWar" "${COMMENT}" ${PORTNAME} \
"${PORTNAME}" "Game;ArcadeGame;" false
.include <bsd.port.options.mk>
post-patch:
.for s in 16 22 32 48
@cd ${WRKSRC}/src/pyspacewar/icons && \
${MV} ${PORTNAME}${s}.png ${PORTNAME}_${s}x${s}.png
.endfor
post-install:
.for s in ${ICON_SIZES}
@${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
${INSTALL_DATA} ${WRKSRC}/src/pyspacewar/icons/${PORTNAME}_${s}.png \
${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
@${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (python/pyspacewar-0.9.7.tar.gz) = 964d59ff8d42a6ba235ea1f616c576757ba3c232e349af78869e024b963c8b15
SIZE (python/pyspacewar-0.9.7.tar.gz) = 229319

View file

@ -0,0 +1,11 @@
PySpaceWar
Two ships duel in a gravity field. Gravity doesn't affect the ships
themselves (which have spanking new anti-gravity devices), but it affects
missiles launced by the ships.
You can play against the computer, or two players can play with one keyboard.
There is also a Gravity Wars mode, where the two ships do not move, and the
players repeatedly specify the direction and velocity of their missiles.
WWW: http://mg.pov.lt/pyspacewar/

View file

@ -0,0 +1,54 @@
bin/pyspacewar
%%PYTHON_SITELIBDIR%%/pyspacewar/__init__.py
%%PYTHON_SITELIBDIR%%/pyspacewar/__init__.pyc
%%PYTHON_SITELIBDIR%%/pyspacewar/__init__.pyo
%%PYTHON_SITELIBDIR%%/pyspacewar/ai.py
%%PYTHON_SITELIBDIR%%/pyspacewar/ai.pyc
%%PYTHON_SITELIBDIR%%/pyspacewar/ai.pyo
%%PYTHON_SITELIBDIR%%/pyspacewar/game.py
%%PYTHON_SITELIBDIR%%/pyspacewar/game.pyc
%%PYTHON_SITELIBDIR%%/pyspacewar/game.pyo
%%PYTHON_SITELIBDIR%%/pyspacewar/images/README.txt
%%PYTHON_SITELIBDIR%%/pyspacewar/images/background.jpg
%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_D3.png
%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_E0.png
%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_G0.png
%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_G2.png
%%PYTHON_SITELIBDIR%%/pyspacewar/images/planet_I0.png
%%PYTHON_SITELIBDIR%%/pyspacewar/images/title.png
%%PYTHON_SITELIBDIR%%/pyspacewar/main.py
%%PYTHON_SITELIBDIR%%/pyspacewar/main.pyc
%%PYTHON_SITELIBDIR%%/pyspacewar/main.pyo
%%PYTHON_SITELIBDIR%%/pyspacewar/music/README.txt
%%PYTHON_SITELIBDIR%%/pyspacewar/music/music.ini
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Grenade2.au
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Grenade2.wav
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Gun_Silencer.wav
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Pink_Noise1.au
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/Pink_Noise1.wav
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/README.txt
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/bomb.wav
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/briefcs1.wav
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/coin2.wav
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/electricshock.wav
%%PYTHON_SITELIBDIR%%/pyspacewar/sounds/sounds.ini
%%PYTHON_SITELIBDIR%%/pyspacewar/ui.py
%%PYTHON_SITELIBDIR%%/pyspacewar/ui.pyc
%%PYTHON_SITELIBDIR%%/pyspacewar/ui.pyo
%%PYTHON_SITELIBDIR%%/pyspacewar/version.py
%%PYTHON_SITELIBDIR%%/pyspacewar/version.pyc
%%PYTHON_SITELIBDIR%%/pyspacewar/version.pyo
%%PYTHON_SITELIBDIR%%/pyspacewar/world.py
%%PYTHON_SITELIBDIR%%/pyspacewar/world.pyc
%%PYTHON_SITELIBDIR%%/pyspacewar/world.pyo
share/icons/hicolor/16x16/apps/pyspacewar.png
share/icons/hicolor/22x22/apps/pyspacewar.png
share/icons/hicolor/32x32/apps/pyspacewar.png
share/icons/hicolor/48x48/apps/pyspacewar.png
share/pixmaps/pyspacewar.png
@dirrm %%PYTHON_SITELIBDIR%%/pyspacewar/sounds
@dirrm %%PYTHON_SITELIBDIR%%/pyspacewar/music
@dirrm %%PYTHON_SITELIBDIR%%/pyspacewar/images
@dirrm %%PYTHON_SITELIBDIR%%/pyspacewar
@dirrmtry %%PYTHON_SITELIBDIR%%
@dirrmtry %%PYTHON_LIBDIR%%