Package: monsterz Version: 0.7.0-1 Severity: wishlist Tags: patch hi Sam
as the name says, this patch adds a simple animation to the start screen, and names for the monsters (in en and it locale - you may add fr) thanks a. ps: the animation is inspired by the g'old pacman -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-5-686 Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Versions of packages monsterz depends on: ii libc6 2.3.6.ds1-13etch2 GNU C Library: Shared libraries ii monsterz-data 0.7.0-1 graphics and audio data for monste monsterz recommends no packages. -- no debconf information -- Andrea Mennucc "E' un mondo difficile. Che vita intensa!" (Tonino Carotone)
--- /usr/share/games/monsterz/monsterz.py~ 2006-05-13 16:49:27.000000000 +0200
+++ /usr/share/games/monsterz/monsterz.py 2007-08-27 16:25:09.000000000 +0200
@@ -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.0'
@@ -41,6 +41,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
@@ -1360,6 +1370,33 @@
return True
return False
+ wander_monster=None
+ wander_x=0
+ wander_y=0
+ def wanderer_draw(self):
+ if self.wander_monster==None :
+ if randint(0,30) == 1 :
+ self.wander_monster = randint(0,ITEMS-1)
+ 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_monster=None
+
msat = [0] * 4
marea = None
def iterate_menu(self):
@@ -1389,6 +1426,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]]
signature.asc
Description: Digital signature

