Pyggel (Python Graphical Game Engine + Libraries) will ease the learning curve

of getting into 3d programming, while also having a strong enough framework
for full-sized applications.

PYGGEL demo game

WWW: https://code.google.com/p/pyggel/
This commit is contained in:
Rusmir Dusko 2014-04-09 16:15:39 +00:00
parent ec8153cdbe
commit e387fda487
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350724
6 changed files with 102 additions and 0 deletions

View file

@ -830,6 +830,7 @@
SUBDIR += rftg
SUBDIR += ri-li
SUBDIR += rnd_jue
SUBDIR += robocalypto
SUBDIR += robocode
SUBDIR += robotfindskitten
SUBDIR += rockdodger

View file

@ -0,0 +1,54 @@
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= robocalypto
PORTVERSION= 0.08
DISTVERSIONSUFFIX= -alpha4c
CATEGORIES= games python
MASTER_SITES= GOOGLE_CODE \
SF/nemysisfreebsdp/games/:icons
PROJECTHOST= pyggel
DISTFILES= PYGGEL-V${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= python
EXTRACT_ONLY= PYGGEL-V${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= PYGGEL demo game
LICENSE= Public_Domain_LICENSE
LICENSE_NAME= Public Domain License
LICENSE_TEXT= Public Domain
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyggel>=0:${PORTSDIR}/graphics/py-pyggel
WRKSRC= ${WRKDIR}/PYGGEL-V${DISTVERSION}${DISTVERSIONSUFFIX}/Robocalypto
USES= zip
USE_PYTHON_RUN= yes
NO_BUILD= yes
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Robocalypto" "" "${PORTNAME}" \
"${PORTNAME}" "Game;StrategyGame;" ""
post-patch:
.for f in run_game.py gamelib/main.py gamelib/game.py
@${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|' \
${WRKSRC}/${f}
.endfor
@${FIND} ${WRKSRC} -name "*.bak" -delete
do-install:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
${WRKDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data gamelib" ${STAGEDIR}${DATADIR})
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>

View file

@ -0,0 +1,4 @@
SHA256 (python/PYGGEL-V0.08-alpha4c.zip) = 492bafd20a8cb1af2de4c5142875371a5d6dd3f1223959b169c15b6196bbca92
SIZE (python/PYGGEL-V0.08-alpha4c.zip) = 438750
SHA256 (python/robocalypto.png) = fadd40ed071b46267d84c969ef0748cb282bc5dece5ba0d7e8bebd78a4c3a602
SIZE (python/robocalypto.png) = 4520

View file

@ -0,0 +1,7 @@
#!/bin/sh
#
# $FreeBSD$
#
cd "%%DATADIR%%"
exec %%PYTHON_CMD%% ./run_game.py "${@}"

View file

@ -0,0 +1,7 @@
Pyggel (Python Graphical Game Engine + Libraries) will ease the learning curve
of getting into 3d programming, while also having a strong enough framework
for full-sized applications.
PYGGEL demo game
WWW: https://code.google.com/p/pyggel/

View file

@ -0,0 +1,29 @@
bin/robocalypto
share/pixmaps/robocalypto.png
%%DATADIR%%/data/DS-DIGI.ttf
%%DATADIR%%/data/bullet.mtl
%%DATADIR%%/data/bullet.obj
%%DATADIR%%/data/ceiling.png
%%DATADIR%%/data/digital-7.ttf
%%DATADIR%%/data/door.png
%%DATADIR%%/data/explosion.png
%%DATADIR%%/data/flash.png
%%DATADIR%%/data/floor.png
%%DATADIR%%/data/gun.mtl
%%DATADIR%%/data/gun.obj
%%DATADIR%%/data/gun4.mtl
%%DATADIR%%/data/gun4.obj
%%DATADIR%%/data/hud.png
%%DATADIR%%/data/robo.mtl
%%DATADIR%%/data/robo.obj
%%DATADIR%%/data/screen.png
%%DATADIR%%/data/target.png
%%DATADIR%%/data/wall.png
%%DATADIR%%/gamelib/__init__.py
%%DATADIR%%/gamelib/game.py
%%DATADIR%%/gamelib/main.py
%%DATADIR%%/gamelib/objects.py
%%DATADIR%%/run_game.py
@dirrm %%DATADIR%%/gamelib
@dirrm %%DATADIR%%/data
@dirrm %%DATADIR%%