debian/0000755000000000000000000000000012144742147007174 5ustar debian/source/0000755000000000000000000000000012143276362010474 5ustar debian/source/format0000644000000000000000000000001412143276362011702 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000001312143262304010030 0ustar README.txt debian/bouncy.menu0000644000000000000000000000024612143267777011375 0ustar ?package(bouncy):needs="x11" \ section="Games/Action" \ title="Bouncy the Hungry Rabbit" \ command="/usr/games/bouncy" \ icon="/usr/share/pixmaps/bouncy.xpm" debian/copyright0000644000000000000000000001356312143410412011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Bouncy Source: http://www.pyweek.org/e/bouncy Files: * Copyright: 2006, Richard Jones License: Expat Files: euclid.py Copyright: 2006, Alex Holkner License: LGPL-2.1+ Files: data/*.ttf Copyright: 2003, Bitstream, Inc. License: Bitstream-Vera-Font-License Files: debian/* Copyright: 2007-2008, Miriam Ruiz 2007, Jon Dowland 2008, Ansgar Burchardt 2007-2009, Barry deFreese 2009, Gonéri Le Bouder, Evgeni Golov 2013, Markus Koschany License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: Bitstream-Vera-Font-License Copyright (C) 2003 Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. . Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: . debian/bouncy64.xpm0000644000000000000000000001062512143262304011366 0ustar /* XPM */ static char *dummy[]={ "64 64 7 1", ". c None", "a c #000000", "# c #333333", "b c #666666", "c c #999999", "d c #cccccc", "e c #ffffff", "................................................................", "............................................#a#.................", "..........................................aaaa#a#...............", ".........................................abbcccbb#..............", "........................................#acdededcc#.............", ".......................................##cdeddeedcc#............", "......................................###cdddeddddb##...........", "......................................abccccdededddba...........", ".....................................#acccccdddddedda#..........", ".....................................abccccccddddddd##..........", ".....................................abcccccdcdeedeeb#..........", ".....................................abcccdcccdddeddb#..........", ".....................................#ccccdcddcdddeeb#..........", ".....................................abccccdccdcdeddb#..........", ".....................................abcdddcbbbbcddca#..........", ".....................................abccc#aa##a#cdca...........", ".....................................##bcbabccccbab#a...........", ".....................................babb#b#ccdc#baab...........", "......................................#a#bbcddcdc#ba#...........", "......................................babccdccdcccb#a...........", ".....................................ba#ccdcdcccddbbaa..........", ".....................................#acdccdccccddcb#a##........", "....................................b##cdddccccccccdcaca#.......", "....................................#abdccccccccccdccadca.......", "............................###aaa##aabddcdccccccccdcadeba......", "..........................#aa#######aa#cccccccccccdccadeea#.....", "........................#a#bccddddcaaa#ccccccccccdcccadee##.....", ".......................aabccdddddedaba#cdccccccccccdbadeec#.....", "......................##cdcddddeedcab#bccdcdcccccccc##eeeca#....", ".....................a#cdcddddedeeb#b#abccddccccdddc#ceeee##....", "....................##ccccdddeeeeeb#bbabccccccdcccd##eeeee##....", "...................#abccdddeedeeeebabc##ccdccccdddcaceeeed#b....", "..................#abcccdddedeeeeedabcccbcccddddc##ceeeeed##....", "..................##bcddcdeeeeeeeeda#ccc##cddeeeebceeeeeeca#....", "..................abccddddedeeeeeeeb#ccdc#bddeeeeceeeeeedba.....", ".................#abcdcdddedeeeeeeedccbccccddeeeeeeeeeeeda#.....", "................#aabcdcdddddeeeeeeeeedccdccddedeeeeeeedd#a......", "................a##ccdddeddeeeeeeeeeedcbccdcddedededdddca.......", "...............aaabbcddddedeeeeeeeeeecabbccdcddddededdc##.......", "..............#aaabbcccddeddeeeeeeeeeeecbbcccdccddddcb#.........", ".............##ccabcccddddedeeeeeeeeeeeca#bccccccccc#a#.........", "............#acdda#bccccddddeeeeeeeeeeeed#a###bcb##aa...........", "............abdeda#ccdcddeddeeeeeeeeeeeeeedc#aaaaa#.............", "...........a#cdeeb#bcccddedddeeeeeeeeeeeeeeeedbaa#..............", "...........abceeebabccdccddedeeeeeeeeeeeeeeeed#a#...............", "...........abcdeedabcccccdddeedeeeeeeeeeeeeeeda#................", "...........##cddeeb#cbcdccdeddeeeeeeeeeeeeeddb#.................", "............#bcdedcabbccdddddeddeeeeeeeeeeedca#.................", ".............#bcdddb#bbccdcdddeeddeeeeeedded##..................", "..............a#bb####bcccdccddeddddddddedd#a#..................", "...............#aa#..abcccdddcdddeeddededdc#b#a.................", "...................#aa#bbccdddccddddddddccbdedba................", "..................a#bcdcb#ccccdccdcdccdb#aceeeeb#...............", ".................abcdeeeea#bccccdcdcdcbabdeeeeeeca..............", "................#cdddeeeedbaaa#bbb##aa#cddeeeeeeeca.............", "...............abcddddeeeeedd###aaaa.abccddeeeeeee##............", "...............abdcddddedeeeeeeeca...##ccceddeeeeeca............", "...............abcccdeddeedddeedca...##bcdddedeeeed##...........", "...............#bbccdddddddddddcba....b#bccddddeeeeba...........", "................##bcccccdcccccb#a......a#bccccddddda............", ".................#aa####bbbbaaa#........#a###cdccbaa............", "...................####aaa###.............##aaaaaa..............", "................................................................", "................................................................"}; debian/bouncy.install0000644000000000000000000000061712143410412012051 0ustar *.py usr/share/games/bouncy data/*.csv usr/share/games/bouncy/data data/*.mtl usr/share/games/bouncy/data data/*.obj usr/share/games/bouncy/data data/*.png usr/share/games/bouncy/data debian/*.desktop usr/share/applications/ debian/*.xpm usr/share/pixmaps/ debian/bin/bouncy usr/games pyglyph/*.py usr/share/games/bouncy/pyglyph debian/changelog0000644000000000000000000000661512144741516011055 0ustar bouncy (0.6.20071104-4) unstable; urgency=low * Team upload. [ Ansgar Burchardt ] * debian/game.sh: Use exec when calling python. [ Markus Koschany ] * Switch to package format 3.0 (quilt). * Bump compat level to 9 and require debhelper >=9. * debian/control: - Drop quilt build-dependency because package format 3.0 uses quilt by default. - Bump Standards-Version to 3.9.4, no changes needed. - Replace python with ${python:Depends}. - Add python, python-pygame and python-opengl to Build-Depends-Indep. * Simplify debian/rules by using dh sequencer and build with --python2. * Drop bouncy.dirs file which is not necessary. * Add DEP3 headers to all patches. * Update debian/copyright to copyright format 1.0. * Install bouncy.6 via manpages files. * bouncy.desktop: Add keywords and a comment in German. * Rename game.sh to bouncy, move it to the debian/bin subdirectory and install it to /usr/games directly. Hence we can also drop bouncy.links. * Remove data_path.patch, it was not applied anyway. -- Markus Koschany Wed, 15 May 2013 19:18:01 +0200 bouncy (0.6.20071104-3) unstable; urgency=low [ Evgeni Golov ] * debian/watch: try to find out upstream version [ Gonéri Le Bouder ] * debian/watch: fix the watchfile (Closes: #450144) [ Barry deFreese ] * Update my e-mail address. * Minor syntax changes to debian/copyright. * glvertex.patch - Use glVertexXX instead of glVertex. (Closes: #516558). * Bump Standards Version to 3.8.1. (No changes needed). -- Barry deFreese Fri, 20 Mar 2009 15:21:49 -0400 bouncy (0.6.20071104-2) unstable; urgency=low [ Miriam Ruiz ] * Fixed bashism: Replaced "{build,configure}-stamp" by "build-stamp configure-stamp" in debian/rules. [ Ansgar Burchardt ] * debian/rules: + Add call to dh_desktop. + Do not call dh_link, dh_strip. We have no binaries. + Include /usr/share/quilt/quilt.make instead of calling it * debian/control: + Change XS-Vcs-* to Vcs-* + Bump Debian Standards version to 3.7.3 + Add myself to Uploaders + Remove homepage URL from description * Use DejaVu fonts instead of Bitstream Vera (Closes: #461275). + drop fonts_path.patch, new patch use_dejavu_fonts.patch includes this * Install start script to /usr/games (makes menu entries work) -- Ansgar Burchardt Tue, 19 Feb 2008 19:26:06 +0100 bouncy (0.6.20071104-1) unstable; urgency=low [ Miriam Ruiz ] * Fixed man page. Closes: #436442 [ Barry deFreese ] * New upstream release + Bugfixes * Add myself to uploaders * Add Homepage field to control * Remove deprecated Encoding tag from desktop file * Fix perms on some .py files [ Jon Dowland ] * update menu section to "Games/Action" for menu transition (thanks Linas Žvirblis) -- Miriam Ruiz Tue, 4 Nov 2007 16:28:02 +0200 bouncy (0.5.20070616-1) unstable; urgency=low * New Upstream Release. + Bug fixes + Joystick support * Removed pysupport: not needed, as we're not compiling any modules and the .py files are private (and thus not compiled to .pyc either) * Removed rules/bouncy.links -- Miriam Ruiz Sat, 16 Jun 2007 11:55:47 +0000 bouncy (0.0.20060925-1) unstable; urgency=low * Initial release (Closes: #426777) -- Miriam Ruiz Wed, 30 May 2007 10:34:07 +0000 debian/compat0000644000000000000000000000000212143270137010364 0ustar 9 debian/watch0000644000000000000000000000024412143275250010220 0ustar version=3 opts=uversionmangle=s/^/0./,dversionmangle=s/\.200.*// \ http://www.pyweek.org/e/bouncy/ \ http://media\.pyweek\.org/dl/3/bouncy/bouncy-post-r(.*)\.tgz debian/bouncy.60000644000000000000000000000204012143262304010545 0ustar .TH "Bouncy the Hungry Rabbit" "6" "May 2007" "" "Games" .SH "NAME" bouncy \- game for kids .SH "SYNOPSIS" .B bouncy .SH "DESCRIPTION" You play Bouncy the Hungry Rabbit. You're in a garden with yummy veggies and a farmer who's not keen on you eating them. You can hide (and move around) under the ground. Bouncy was written so it could be enjoyed by the author's daughter, who was about to turn 3, and by older gamers. Hence it's not a violent game and "easy" is really, really easy, and "hard" is challenging. .SH "USAGE" You are a hungry rabbit. Your mission is to eat food to complete the level. CONTROLS: arrows \- move around "e" \- eat whatever is in front of you "d" \- dig into the ground (hold to go underground) also, when underground, "d"ig to surface escape \- quit Dig for long enough and you'll go into the hole. Move around under ground \- fences no longer stop you and the farmer can't see you. Hold "d" again to surface. .SH "SEE ALSO" You can find more information at http://www.pyweek.org/e/bouncy/ debian/bouncy.desktop0000644000000000000000000000054312143410126012054 0ustar [Desktop Entry] Type=Application Name=Bouncy the Hungry Rabbit GenericName=bouncy Comment=Eat the yummy veggies in the garden (game for small kids) Comment[de]=Esse das leckere Gemüse im Garten (Spiel für kleine Kinder) Icon=bouncy Exec=bouncy Terminal=false Categories=Game;ArcadeGame;KidsGame; Keywords=kids;game;veggies;children;bunny;garden;rabbit; debian/rules0000755000000000000000000000005512143275227010253 0ustar #!/usr/bin/make -f %: dh $@ --with python2 debian/control0000644000000000000000000000215412143410412010563 0ustar Source: bouncy Section: games Priority: extra Maintainer: Debian Games Team Uploaders: Miriam Ruiz , Barry deFreese , Ansgar Burchardt Build-Depends: debhelper (>= 9) Build-Depends-Indep: python, python-opengl, python-pygame Standards-Version: 3.9.4 Homepage: http://www.pyweek.org/e/bouncy/ Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/bouncy/ Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/bouncy/ Package: bouncy Architecture: all Depends: python-opengl, python-pygame, ttf-dejavu-core, ${misc:Depends}, ${python:Depends} Description: eat the yummy veggies in the garden - game for small kids You play Bouncy the Hungry Rabbit. You're in a garden with yummy veggies and a farmer who's not keen on you eating them. You can hide (and move around) under the ground. . Bouncy was written so it could be enjoyed by the author's daughter, who was about to turn 3, and by older gamers. Hence it's not a violent game and "easy" is really, really easy, and "hard" is challenging. debian/patches/0000755000000000000000000000000012144742137010622 5ustar debian/patches/series0000644000000000000000000000006012143276405012032 0ustar env.patch use_dejavu_fonts.patch glvertex.patch debian/patches/glvertex.patch0000644000000000000000000001177212143276405013512 0ustar From: Debian Games Team Date: Sat, 11 May 2013 01:04:32 +0200 Subject: glvertex =================================================================== --- farmer.py | 2 +- leveledit.py | 8 ++++---- map.py | 32 ++++++++++++++++---------------- pyglyph/font.py | 8 ++++---- ui.py | 8 ++++---- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/farmer.py b/farmer.py index 7c1a3a3..56af30a 100644 --- a/farmer.py +++ b/farmer.py @@ -189,7 +189,7 @@ class Farmer: glColor(1, 0, 0) glBegin(GL_LINE_STRIP) for node in self.path.nodes: - glVertex(node.l[0] + s, 0, node.l[1] + s) + glVertex3f(node.l[0] + s, 0, node.l[1] + s) glEnd() glEnable(GL_DEPTH_TEST) diff --git a/leveledit.py b/leveledit.py index 49b4b21..3b6364c 100644 --- a/leveledit.py +++ b/leveledit.py @@ -292,11 +292,11 @@ class LevelEditor: glColor(1., 1., 1., .3) glBegin(GL_LINES) for x in range(left, left + self.width + 4*scale, 4*scale): - glVertex(x, top, 30) - glVertex(x, top+self.height + 4*scale, 30) + glVertex3f(x, top, 30) + glVertex3f(x, top+self.height + 4*scale, 30) for y in range(top, top + self.height + 4*scale, 4*scale): - glVertex(left, y, 30) - glVertex(left+self.width + 4*scale, y, 30) + glVertex3f(left, y, 30) + glVertex3f(left+self.width + 4*scale, y, 30) glEnd() glPopMatrix() glDisable(GL_BLEND) diff --git a/map.py b/map.py index e4d204f..1cbfb5c 100644 --- a/map.py +++ b/map.py @@ -99,10 +99,10 @@ class Map(ui.UserInterface): glPushMatrix() glTranslate(x+s, 0, z+s) glBegin(GL_QUADS) - glVertex(-s,0,-s) - glVertex(-s,0,s) - glVertex(s,0,s) - glVertex(s,0,-s) + glVertex3f(-s,0,-s) + glVertex3f(-s,0,s) + glVertex3f(s,0,s) + glVertex3f(s,0,-s) glEnd() glPopMatrix() @@ -112,10 +112,10 @@ class Map(ui.UserInterface): self.rabbit.position.z) glTranslate(x+s, 0, z+s) glBegin(GL_QUADS) - glVertex(-s,1,-s) - glVertex(-s,1,s) - glVertex(s,1,s) - glVertex(s,1,-s) + glVertex3f(-s,1,-s) + glVertex3f(-s,1,s) + glVertex3f(s,1,s) + glVertex3f(s,1,-s) glEnd() glPopMatrix() @@ -126,10 +126,10 @@ class Map(ui.UserInterface): self.farmer.position.z) glTranslate(x+s, 0, z+s) glBegin(GL_QUADS) - glVertex(-s,1,-s) - glVertex(-s,1,s) - glVertex(s,1,s) - glVertex(s,1,-s) + glVertex3f(-s,1,-s) + glVertex3f(-s,1,s) + glVertex3f(s,1,s) + glVertex3f(s,1,-s) glEnd() glPopMatrix() glEnable(GL_LIGHTING) @@ -338,10 +338,10 @@ class Map(ui.UserInterface): glColor4f(.5, .5, .5, .5) glBegin(GL_QUADS) - glVertex(0, 0, 5) - glVertex(404, 0, 5) - glVertex(404, 138, 5) - glVertex(0, 138, 5) + glVertex3f(0, 0, 5) + glVertex3f(404, 0, 5) + glVertex3f(404, 138, 5) + glVertex3f(0, 138, 5) glEnd() glPushMatrix() diff --git a/pyglyph/font.py b/pyglyph/font.py index 586d071..da41f2e 100644 --- a/pyglyph/font.py +++ b/pyglyph/font.py @@ -369,13 +369,13 @@ class FontInstance: glBegin(GL_QUADS) for renderbox, texbox in boxes: glTexCoord2f(texbox[0], texbox[1]) - glVertex(renderbox[0], renderbox[1]) + glVertex2d(renderbox[0], renderbox[1]) glTexCoord2f(texbox[2], texbox[1]) - glVertex(renderbox[2], renderbox[1]) + glVertex2d(renderbox[2], renderbox[1]) glTexCoord2f(texbox[2], texbox[3]) - glVertex(renderbox[2], renderbox[3]) + glVertex2d(renderbox[2], renderbox[3]) glTexCoord2f(texbox[0], texbox[3]) - glVertex(renderbox[0], renderbox[3]) + glVertex2d(renderbox[0], renderbox[3]) glEnd() def _pow2(n): diff --git a/ui.py b/ui.py index 2460cd0..768406a 100644 --- a/ui.py +++ b/ui.py @@ -71,9 +71,9 @@ class UserInterface: glColor(0, 0, 0, min(1, float(ts)/ts_max)) else: glColor(0, 0, 0, max(0, 1 - float(ts)/ts_max)) - glVertex(0, 0, 0) - glVertex(0, y, 0) - glVertex(x, y, 0) - glVertex(x, 0, 0) + glVertex3f(0, 0, 0) + glVertex3f(0, y, 0) + glVertex3f(x, y, 0) + glVertex3f(x, 0, 0) glEnd() debian/patches/env.patch0000644000000000000000000000065612143276405012441 0ustar From: Debian Games Team Date: Sat, 11 May 2013 01:04:32 +0200 Subject: env --- pyglyph/ttf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyglyph/ttf.py b/pyglyph/ttf.py index 820e3ef..9f0ff49 100644 --- a/pyglyph/ttf.py +++ b/pyglyph/ttf.py @@ -1,4 +1,4 @@ -#!/bin/env python +#!/usr/bin/env python # $Id: ttf.py,v 1.7 2006/05/22 14:48:18 alex Exp $ """ debian/patches/use_dejavu_fonts.patch0000644000000000000000000000614412143276405015212 0ustar From: Debian Games Team Date: Sat, 11 May 2013 01:04:32 +0200 Subject: use_dejavu_fonts =================================================================== --- fonts.py | 8 ++++---- game.py | 4 ++-- leveledit.py | 9 +++------ pyglyph/html.py | 2 +- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/fonts.py b/fonts.py index beeb28a..a1bb32e 100644 --- a/fonts.py +++ b/fonts.py @@ -1,13 +1,13 @@ import pyglyph # load up fonts -fonts = pyglyph.font.LocalFontFactory('data') -sans20 = fonts.get_font(family='bitstream vera sans', +fonts = pyglyph.font.LocalFontFactory('/usr/share/fonts/truetype/ttf-dejavu') +sans20 = fonts.get_font(family='DejaVu sans', size=20, bold=False, italic=False) -sans40 = fonts.get_font(family='bitstream vera sans', +sans40 = fonts.get_font(family='DejaVu sans', size=40, bold=False, italic=False) -mono20 = fonts.get_font(family='bitstream vera sans mono', +mono20 = fonts.get_font(family='DejaVu sans mono', size=20, bold=False, italic=False) diff --git a/game.py b/game.py index 04dc6e0..ab6dcac 100644 --- a/game.py +++ b/game.py @@ -44,7 +44,7 @@ class Game(ui.UserInterface): def menu(self): instructions = pyglyph.layout_html(''' - + (I)nstructions
(E)asy
(N)ormal
@@ -132,7 +132,7 @@ class Game(ui.UserInterface): def instructions(self): instructions = pyglyph.layout_html(''' - + Bouncy the Rabbit by Richard Jones
Written for the 3rd PyWeek Challenge: http://www.pyweek.org/ diff --git a/leveledit.py b/leveledit.py index 7dcca1a..49b4b21 100644 --- a/leveledit.py +++ b/leveledit.py @@ -1,4 +1,5 @@ import sys, pygame, csv, shutil, os +import fonts from pygame.locals import * from pygame.constants import * @@ -44,12 +45,8 @@ class LevelEditor: self.mode = 'props' # load up fonts - fonts = pyglyph.font.LocalFontFactory('data') - self.sans20 = fonts.get_font(family='bitstream vera sans', - size=20, bold=False, italic=False) - - self.sans40 = fonts.get_font(family='bitstream vera sans', - size=40, bold=False, italic=False) + self.sans20 = fonts.sans20 + self.sans40 = fonts.sans40 # button labels and callback funcs self.buttons = [ diff --git a/pyglyph/html.py b/pyglyph/html.py index 18714b1..a792e3b 100644 --- a/pyglyph/html.py +++ b/pyglyph/html.py @@ -131,7 +131,7 @@ class StylePrototype: self._attrs[Attribute.Bold] = False self._attrs[Attribute.Italic] = False self._attrs[Attribute.FontSize] = 12 - self._attrs[Attribute.FontName] = 'bitstream vera serif' + self._attrs[Attribute.FontName] = 'DejaVu serif' self._attrs[Attribute.Color] = (0, 0, 0, 1) def set_attribute(self, attribute, value): debian/bin/0000755000000000000000000000000012144741233007737 5ustar debian/bin/bouncy0000755000000000000000000000010312143262304011152 0ustar #!/bin/sh -- cd /usr/share/games/bouncy/ exec python game.py "$@" debian/manpages0000644000000000000000000000002012143300151010662 0ustar debian/bouncy.6 debian/bouncy.xpm0000644000000000000000000001223612143262304011214 0ustar /* XPM */ static char *dummy[]={ "32 32 191 2", "Qt c None", "#t c #000000", "aa c #040404", "#c c #060606", ".v c #0a0a0a", "as c #0c0c0c", ".G c #0e0e0e", ".5 c #101010", "aT c #111111", ".B c #151515", "#2 c #161616", "a6 c #181818", ".O c #191919", "a# c #1b1b1b", "#. c #1c1c1c", "aS c #1d1d1d", "aw c #1e1e1e", ".p c #1f1f1f", ".W c #212121", "a. c #222222", "al c #232323", ".9 c #242424", ".o c #252525", "#a c #262626", "aE c #272727", "aF c #282828", "#F c #2b2b2b", ".0 c #2c2c2c", ".U c #2d2d2d", ".u c #2e2e2e", "aK c #2f2f2f", "## c #303030", "#b c #313131", ".l c #323232", "#E c #333333", ".f c #343434", ".V c #353535", ".Z c #363636", "a7 c #373737", "#A c #383838", "#k c #393939", ".6 c #3a3a3a", ".e c #3b3b3b", ".P c #3e3e3e", ".Q c #3f3f3f", ".K c #404040", "#r c #414141", "aR c #424242", ".L c #434343", ".A c #464646", ".T c #474747", "a8 c #484848", ".k c #494949", "ag c #4a4a4a", "ax c #4c4c4c", ".1 c #4d4d4d", "#m c #4e4e4e", "aL c #505050", "aY c #515151", ".b c #525252", ".7 c #535353", "#s c #545454", ".a c #565656", "ai c #5a5a5a", "#f c #5c5c5c", ".X c #626262", "aN c #636363", "#C c #646464", "aX c #656565", ".q c #666666", "#j c #676767", "aP c #686868", "a4 c #696969", ".J c #6a6a6a", "a5 c #6c6c6c", "#K c #6d6d6d", ".H c #6e6e6e", "aM c #6f6f6f", "aj c #707070", ".4 c #737373", "#J c #747474", "ab c #757575", "#X c #767676", ".w c #777777", "aA c #787878", "ar c #7a7a7a", "#z c #7b7b7b", "#d c #7c7c7c", "a3 c #7d7d7d", ".M c #7f7f7f", "#G c #808080", ".c c #818181", ".d c #828282", "aB c #838383", ".C c #848484", "#O c #858585", "#4 c #868686", "aG c #888888", ".8 c #898989", "at c #8a8a8a", "#Z c #8b8b8b", ".# c #8c8c8c", "aV c #8d8d8d", "#P c #8e8e8e", "aJ c #8f8f8f", "am c #909090", "ah c #929292", "aZ c #949494", "ak c #969696", "#Y c #979797", "#S c #989898", ".R c #9e9e9e", "an c #9f9f9f", "#L c #a0a0a0", "#v c #a3a3a3", ".Y c #a5a5a5", "ay c #a6a6a6", ".j c #a7a7a7", ".S c #a8a8a8", "#n c #a9a9a9", "ac c #aaaaaa", "a0 c #ababab", "#g c #acacac", "#B c #adadad", ".2 c #aeaeae", ".I c #afafaf", ".D c #b0b0b0", ".x c #b1b1b1", ".r c #b2b2b2", ".E c #b3b3b3", ".3 c #b4b4b4", "ad c #b5b5b5", "#0 c #b6b6b6", ".N c #b7b7b7", "#5 c #bababa", "au c #bbbbbb", "#o c #bdbdbd", "a2 c #c0c0c0", ".m c #c1c1c1", "#W c #c2c2c2", "a1 c #c3c3c3", ".s c #c4c4c4", "ae c #c5c5c5", ".g c #c6c6c6", "aU c #c7c7c7", "#h c #c8c8c8", "#M c #cacaca", "#R c #cccccc", "aq c #cdcdcd", ".y c #cfcfcf", "aC c #d1d1d1", "#i c #d2d2d2", "ao c #d3d3d3", "az c #d4d4d4", ".t c #d5d5d5", "#T c #d7d7d7", "#6 c #d8d8d8", "af c #d9d9d9", ".F c #dadada", ".n c #dbdbdb", "#w c #dcdcdc", "#p c #dddddd", "aO c #dedede", "aI c #dfdfdf", "aH c #e0e0e0", "#N c #e1e1e1", ".h c #e3e3e3", "#7 c #e4e4e4", ".z c #e5e5e5", ".i c #e6e6e6", "aD c #e7e7e7", "#e c #e8e8e8", "#q c #e9e9e9", "#8 c #eaeaea", "#H c #ebebeb", "#9 c #ececec", "#l c #ededed", "ap c #eeeeee", "#x c #f0f0f0", "aQ c #f2f2f2", "aW c #f3f3f3", "#1 c #f4f4f4", "#u c #f6f6f6", "#U c #f7f7f7", "av c #f9f9f9", "#y c #fafafa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