debian/0000755000000000000000000000000012164337350007172 5ustar debian/source/0000755000000000000000000000000012164337350010472 5ustar debian/source/format0000644000000000000000000000001412164337350011700 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000002412164337350010041 0ustar README TODO AUTHORS debian/postinst0000644000000000000000000000110312164337350010773 0ustar #! /bin/sh set -e DATA=/var/games/monsterz PROG=/usr/games/monsterz case "$1" in configure) # Properly use statoverride if ! [ -x /usr/sbin/dpkg-statoverride ] || \ ! dpkg-statoverride --list "$PROG" >/dev/null ; then chown root:games "$PROG" chmod 2755 "$PROG" fi if [ ! -f "$DATA" ]; then echo "" > "$DATA" fi chown root:games "$DATA" chmod 664 "$DATA" ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# debian/monsterz.60000644000000000000000000000333212164337350011143 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. .TH MONSTERZ "6" "October 2007" "monsterz 0.7.0" "User Commands" .SH NAME monsterz \- a puzzle game of monsters .SH SYNOPSIS .B monsterz [\fIOPTION\fR]... .SH DESCRIPTION Options .TP \fB\-h\fR, \fB\-\-help\fR display this help and exit .TP \fB\-v\fR, \fB\-\-version\fR display version information and exit .TP \fB\-f\fR, \fB\-\-fullscreen\fR start in full screen mode .TP \fB\-m\fR, \fB\-\-nomusic\fR disable music .TP \fB\-s\fR, \fB\-\-nosfx\fR disable sound effects .TP \fB\-\-outfd\fR output scores to file descriptor .TP \fB\-\-data\fR set alternate data directory to .HP \fB\-\-score\fR set score file to .SH AUTHOR Written by Sam Hocevar, music by MenTaLguY, sound effects by Sun Microsystems, Inc., Michael Speck, David White and the Battle for Wesnoth project, Mike Kershaw and Sam Hocevar. .SH "REPORTING BUGS" Report bugs or suggestions to . .SH COPYRIGHT Copyright \(co 2005, 2006 Sam Hocevar (C) 1998 MenTaLguY (C) 2002, 2005 Sun Microsystems, Inc. (C) Michael Speck (C) 2003 by David White and the Battle for Wesnoth project (C) Mike Kershaw This program is free software; you can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/ for more details. The sound effects are released under their own licences: applause.wav and pop.wav are covered by the LGPL, the others are covered by the GPL. .SH "SEE ALSO" The in-game help option. debian/copyright0000644000000000000000000000547712164337350011142 0ustar This package was downloaded from http://sam.zoy.org/monsterz/ Files: debian/* Copyright: © 2004-2007 Sam Hocevar License: GPL-2+ The Debian packaging information is under the GPL, version 2 or later Files: *.c, *.py Copyright: © 2004-2005 Sam Hocevar License: other-BSD | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | Version 2, December 2004 | | Copyright © 2004 Sam Hocevar | 22 rue de Plaisance, 75014 Paris, France | Everyone is permitted to copy and distribute verbatim or modified | copies of this license document, and changing it is allowed as long | as the name is changed. | | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | | 0. You just DO WHAT THE FUCK YOU WANT TO. Files: music.s3m Copyright: © 1998 MenTaLguY License: PD music.s3m was put in the public domain by MenTaLguY. Files: applause.wav, pop.wav Copyright: © 2002, 2005 Sun Microsystems, Inc. License: LGPL-2.1 applause.wav was taken from OpenOffice.org's applause.wav and pop.wav was taken from OpenOffice.org's laser.wav. This product is made available subject to the terms of GNU Lesser General Public License Version 2.1. Files: click.wav Copyright: © Michael Speck License: GPL-2+ click.wav was taken from Barrage's click.wav. This program 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. Files: boing.wav, ding.wav, duh.wav, grunt.wav, laugh.wav, whip.wav Copyright: © 2003 by David White and the Battle for Wesnoth project © 2006 Sam Hocevar License: GPL-any boing.wav was taken from Wesnoth's spear.wav and reworked by Sam Hocevar, ding.wav was taken from receive.wav, duh.wav was taken from female-strong-hit.wav, grunt.wav was taken from dwarf-die.wav, laugh.wav was taken from zombie-hit.wav, whip.wav was taken from dagger-swish.wav. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. Files: warning.wav Copyright: © Mike Kershaw License: GPL-any warning.wav was taken from Kismet's alert.wav. It is distributed under the terms of the GNU General Public License. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2' and the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. debian/menu0000644000000000000000000000027712164337350010067 0ustar ?package(monsterz):needs="X11" section="Games/Puzzles" \ title="Monsterz" command="/usr/games/monsterz" \ icon="/usr/share/games/monsterz/graphics/icon.xpm" debian/preinst0000644000000000000000000000034012164337350010576 0ustar #!/bin/sh # dpkg does not replace symlinks with directories and vice versa, therefore # maintainer scripts need to be used. set -e if [ -L /usr/share/doc/monsterz ] ; then rm -f /usr/share/doc/monsterz fi #DEBHELPER# debian/monsterz.manpages0000644000000000000000000000002212164337350012562 0ustar debian/monsterz.6 debian/changelog0000644000000000000000000000747312164337350011057 0ustar monsterz (0.7.1-7) unstable; urgency=low * Team upload. * debian/control: - Use canonical VCS-URI. - Add Breaks and Replaces relation to monsterz-data. This prevents that monsterz fails to upgrade. (Closes: #710733) - monsterz: Tighten dependency on monsterz-data (>= ${source:Version}). * Bump compatibility level to 9 and require debhelper >= 9 for automatic hardening build flags. * Use hardening-wrapper to harden the monsterz binary completely hence we can drop 040_makefile_cflags.patch. * Fix lintian issue copyright-refers-to-symlink-license and point to GPL-2 and LGPL-2.1 licenses. * Add preinst script because dpkg does not replace symlinks with directories and vice versa, therefore maintainer scripts need to be used. -- Markus Koschany Mon, 01 Jul 2013 12:02:42 +0200 monsterz (0.7.1-6) unstable; urgency=low * Remove yes flag from --with-python2. (Closes: #710376). -- Barry deFreese Thu, 30 May 2013 05:40:28 -0400 monsterz (0.7.1-5) unstable; urgency=low * Add startup animation patch. (Closes: #439807). - Thanks to A Mennucc for the patch. * Move existing manpage to section 6. (Closes: #605981). * Change packaging to dh7 style. * Add patch to pass CFLAGS to Makefile. - Add hardening flags. * Change to source format 3.0 quilt. - Drop quilt build-dep. * Bump Standards Version to 3.9.4. -- Barry deFreese Sun, 26 May 2013 21:35:56 -0400 monsterz (0.7.1-4) unstable; urgency=low * Add monsterz.postrm to purge /var/games/monsterz * Add myself in Uploaders * Standards-Version: 3.8.2, no change -- Gonéri Le Bouder Mon, 27 Jul 2009 18:42:39 +0200 monsterz (0.7.1-3) unstable; urgency=low [ Barry deFreese ] * Add myself to uploaders. * 020_fix_blit_crash.diff - (Closes: #523877). + Fix crash with blit in pygame 1.8.1. + Thanks to Arnaud Jeansen and RafaÅ‚ Psota. * Add set -e to postinst. * Fix up manpage what-is section. * Bump Standards Version to 3.8.1. -- Barry deFreese Fri, 15 May 2009 21:18:05 -0400 monsterz (0.7.1-2) unstable; urgency=low * Remove deprecated Encoding key from .desktop file [ Sam Hocevar ] * debian/control: + Use quilt for patch management. * debian/patches/010_64-bit-alignment-issues-with-python2.5.diff: + New patch from upstream. Fix a startup crash on 64-bit systems (Closes: #373905). -- Sam Hocevar (Debian packages) Fri, 09 May 2008 16:33:52 +0000 monsterz (0.7.1-1) unstable; urgency=high [ Eddy Petrișor ] * removed invalid category "Application" from the desktop file [ Cyril Brulebois ] * Adjusted XS-Vcs-Svn and XS-Vcs-Browser fields in the control file. [ Barry deFreese ] * Add simple man page * Remove short description from long description * Make distclean not ignore errors [ Sam Hocevar ] * New upstream release. Removes potentially offensive language from the title page (Closes: #456781). * debian/control: + Set policy to 3.7.3. + Added Homepage: field. + Fixed Vcs: fields, they don't need "XS-" prepended. * debian/copyright: + Add link to the GPL and the LGPL texts. -- Sam Hocevar (Debian packages) Wed, 11 Jul 2007 11:06:35 +0300 monsterz (0.7.0-2) unstable; urgency=low * Moved packaging to the Debian Games Team. * debian/control: + Added Vcs fields. * debian/compat: + Bumped level to 5. * debian/monsterz.desktop: + Added desktop file, courtesy of Jean Privat (Closes: #395908). -- Sam Hocevar (Debian packages) Fri, 30 Mar 2007 12:07:13 +0200 monsterz (0.7.0-1) unstable; urgency=low * Initial Debian upload (Closes: #329323). -- Sam Hocevar (Debian packages) Wed, 10 May 2006 01:11:29 -0500 debian/compat0000644000000000000000000000000212164337350010370 0ustar 9 debian/monsterz.desktop0000644000000000000000000000035012164337350012444 0ustar [Desktop Entry] Version=1.0 Name=Monsterz Comment=Little arcade puzzle game, similar to the famous Bejeweled Exec=monsterz Icon=/usr/share/games/monsterz/graphics/icon.png Terminal=false Type=Application Categories=Game;ArcadeGame; debian/watch0000644000000000000000000000007612164337350010226 0ustar version=3 http://sam.zoy.org/monsterz/monsterz-(.*)\.tar\.gz debian/monsterz.dirs0000644000000000000000000000006012164337350011732 0ustar usr/share/doc usr/share/games/monsterz/graphics debian/monsterz-data.dirs0000644000000000000000000000006012164337350012641 0ustar usr/share/doc usr/share/games/monsterz/graphics debian/rules0000755000000000000000000000111212164337350010245 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. #export DH_VERBOSE=1 export DEB_BUILD_HARDENING=1 %: dh $@ --with python2 override_dh_auto_build: $(MAKE) prefix=/usr override_dh_auto_install: $(MAKE) install prefix=/usr DESTDIR=$(CURDIR)/debian/tmp override_dh_install: convert graphics/icon.png -sample 32x32 debian/tmp/usr/share/games/monsterz/graphics/icon.xpm mkdir -p debian/tmp/usr/share/applications cp debian/monsterz.desktop debian/tmp/usr/share/applications rm -f debian/tmp/var/games/monsterz dh_install debian/control0000644000000000000000000000255412164337350010603 0ustar Source: monsterz Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Sam Hocevar (Debian packages) , Barry deFreese , Gonéri Le Bouder Build-Depends: debhelper (>= 9), hardening-wrapper, imagemagick, python-dev Standards-Version: 3.9.4 Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/monsterz/ Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/monsterz/ Homepage: http://sam.zoy.org/monsterz/ Package: monsterz Architecture: any Depends: monsterz-data (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} Description: arcade puzzle game Monsterz is similar to the Bejeweled, Zookeeper or Zooo games. The goal is to swap adjacent tiles to create alignments, causing chain reactions to earn more points. Package: monsterz-data Architecture: all Depends: ${misc:Depends}, python-pygame, python Replaces: monsterz (<< 0.7.1-5) Breaks: monsterz (<< 0.7.1-5) Description: graphics and audio data for monsterz Monsterz is an arcade puzzle game, similar to the Bejeweled, Zookeeper or Zooo games. The goal is to swap adjacent tiles to create alignments, causing chain reactions to earn more points. . This package contains the architecture-independent data for monsterz. For more information, see the monsterz package. debian/monsterz-data.install0000644000000000000000000000015012164337350013346 0ustar /usr/share/games/monsterz/sound /usr/share/games/monsterz/*.py /usr/share/games/monsterz/graphics/*.png debian/monsterz.install0000644000000000000000000000012412164337350012440 0ustar /var /usr/games /usr/share/games/monsterz/graphics/icon.xpm /usr/share/applications debian/patches/0000755000000000000000000000000012164337350010621 5ustar debian/patches/series0000644000000000000000000000014112164337350012032 0ustar 010_64-bit-alignment-issues-with-python2.5.diff 020_fix_blit_crash.diff 030_startup_screen.patch debian/patches/030_startup_screen.patch0000644000000000000000000000626112164337350015272 0ustar Author: A Mennucc Description: Add startup animation with random monster. Index: monsterz-0.7.1/monsterz.py =================================================================== --- monsterz-0.7.1.orig/monsterz.py 2013-05-26 22:22:45.000000000 -0400 +++ monsterz-0.7.1/monsterz.py 2013-05-26 22:28:08.000000000 -0400 @@ -17,7 +17,7 @@ from random import randint from sys import argv, exit, platform from os.path import join, isdir, isfile, dirname, expanduser -from os import write, mkdir +from os import write, mkdir, getenv # String constants VERSION = '0.7.1' @@ -40,6 +40,16 @@ ITEM_METAL = ITEMS + 2 ITEM_PUZZLE = ITEMS + 3 +LANG = getenv('LC_MESSAGES') or getenv('LC_ALL') or getenv('LANG') or '' + +ITEM_NAMES = ['hairy','cloudy','cyclop','auntie','roswell','horny', + 'bluewhale','octopie','ghost'] + +if LANG[:2] == 'it': + ITEM_NAMES=['buffopelo','nuvolastra','ciclope', + 'ziantonietta','roswell','cornutazzo', + 'balenablu','polipetto','fantasmino'] + STATUS_MENU = 0 STATUS_NEW = 1 STATUS_GAME = 2 @@ -890,6 +900,10 @@ w, h = text.get_rect().size system.blit(text, (192 - w / 2 - 8, 24 + 288 - h / 2)) system.blit(data.normal[self.lucky], (192 + w / 2, 288)) + text = fonter.render(ITEM_NAMES[self.lucky],20) + wn, hn = text.get_rect().size + system.blit(text, (192 + w/2 - wn/2 + ITEM_SIZE/2, + 24 + 288 + ITEM_SIZE - h/2 - hn/2)) elif self.lost_timer != -1: # Draw pieces self.board_draw() @@ -1374,6 +1388,33 @@ return True return False + wander_monster=randint(0,ITEMS-1) + wander_x=None + wander_y=0 + def wanderer_draw(self): + if self.wander_x==None : + if randint(0,30) == 1 : + self.wander_monster = (self.wander_monster+1)%ITEMS + self.wander_y=randint(20,SCREEN_HEIGHT-ITEM_SIZE-20) + self.wander_x=-ITEM_SIZE + return + if randint(0,10) == 1 : + monster = data.blink[self.wander_monster] + else: + monster = data.normal[self.wander_monster] + system.blit(monster, (self.wander_x, self.wander_y)) + system.blit(fonter.render(ITEM_NAMES[self.wander_monster], + 30, (250,250,250)), + (self.wander_x+ITEM_SIZE, self.wander_y+ITEM_SIZE/2-15)) + if self.wander_x < SCREEN_WIDTH/3 or self.wander_x > (SCREEN_WIDTH/3)*2 : + self.wander_x += randint(4,8) + self.wander_y += randint(-2,2) + else: + self.wander_x += 3 + self.wander_y += randint(-1,1) + if self.wander_x > SCREEN_WIDTH : + self.wander_x=None + msat = [0] * 4 marea = None def iterate_menu(self): @@ -1403,6 +1444,7 @@ # Print logo and menu w, h = data.logo.get_size() system.blit(data.logo, (24 + 192 - w / 2, 24 + 96 - h / 2)) + self.wanderer_draw() for x in range(4): if self.msat[x] > 180: monster = data.surprise[shapes[x]] debian/patches/010_64-bit-alignment-issues-with-python2.5.diff0000644000000000000000000000221712164337350021044 0ustar Author: Unknown Description: Fix issues with alignment on 64 bit systems. Index: monsterz-0.7.1/monsterz.py =================================================================== --- monsterz-0.7.1.orig/monsterz.py 2008-05-09 16:35:25.000000000 +0000 +++ monsterz-0.7.1/monsterz.py 2008-05-09 16:35:33.000000000 +0000 @@ -108,7 +108,9 @@ M = int(max(r, g, b)) m = int(min(r, g, b)) val = (2 * M + r + g + b) / 5 - p[:] = (val + r) / 2, (val + g) / 2, (val + b) / 2 + p[0] = (val + r) / 2 + p[1] = (val + g) / 2 + p[2] = (val + b) / 2 if alpha[y][x] >= 250: alpha[y][x] = 255 - (M - m) * 3 / 4 del pixels @@ -129,7 +131,9 @@ r, g, b = p M = int(max(r, g, b)) m = int(min(r, g, b)) - p[:] = (m + r) / 2, (m + g) / 2, (m + b) / 2 + p[0] = (m + r) / 2 + p[1] = (m + g) / 2 + p[2] = (m + b) / 2 if alpha[y][x] >= 250: alpha[y][x] = 255 - M * 2 / 3 del pixels debian/patches/020_fix_blit_crash.diff0000644000000000000000000000313112164337350015012 0ustar Patch to fix crash on startup caused by errors in the blit() function in monsterz.py. See Ubuntu bug #275492 for details. Index: monsterz-0.7.1/monsterz.py =================================================================== --- monsterz-0.7.1.orig/monsterz.py 2009-02-08 20:39:58.000000000 +0000 +++ monsterz-0.7.1/monsterz.py 2009-02-08 20:40:03.000000000 +0000 @@ -833,10 +833,10 @@ pass else: for x in range(4): - for y, p in enumerate(alpha[x]): - alpha[x][y] = p * x / 4 - for y, p in enumerate(alpha[406 - x - 1]): - alpha[406 - x - 1][y] = p * x / 4 + for y in range(len(alpha[x])): + alpha[x][y] = alpha[x][y] * x / 4 + for y in range(len(alpha[406 - x - 1])): + alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 4 for col in alpha: l = len(col) for y in range(4): @@ -1291,10 +1291,10 @@ pass else: for x in range(10): - for y, p in enumerate(alpha[x]): - alpha[x][y] = p * x / 12 - for y, p in enumerate(alpha[406 - x - 1]): - alpha[406 - x - 1][y] = p * x / 12 + for y in range(len(alpha[x])): + alpha[x][y] = alpha[x][y] * x / 12 + for y in range(len(alpha[406 - x - 1])): + alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 12 del alpha scroll.unlock() system.blit(scroll, (13, 437)) debian/monsterz.postrm0000644000000000000000000000040012164337350012313 0ustar #! /bin/sh set -e case "$1" in purge|remove) rm -f /var/games/monsterz ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER#