--- solarwolf-1.5.orig/code/snd.py +++ solarwolf-1.5/code/snd.py @@ -66,12 +66,12 @@ CurrentVolume = 1.0 SwitchingSongs = 0 def playmusic(musicname, volume=1.0): - if not music or not game.music: return global CurrentSong, SwitchingSongs, CurrentVolume if musicname == CurrentSong: return CurrentSong = musicname CurrentVolume = volume + if not music or not game.music: return if SwitchingSongs: CurrentSong = musicname SwitchingSongs = 1 @@ -102,7 +102,9 @@ prefvolume = [0, 0.6, 1.0][game.music] if not prefvolume: music.stop() - if not music.get_busy(): + if CurrentSong and not music.get_busy(): + fullname = os.path.join('data', 'music', CurrentSong) + music.load(fullname) music.play(-1) music.set_volume(prefvolume*CurrentVolume) --- solarwolf-1.5.orig/data/levels.txt +++ solarwolf-1.5/data/levels.txt @@ -55,7 +55,7 @@ ## ## # # ## ! -> Email Sprial +> Email Spiral < More Junk Mail #### # # @@ -105,7 +105,7 @@ *# ! > ae -< Daemons Fork +< Demon's Fork ## #*** #### * @@ -255,7 +255,7 @@ ### ### ! -> Geomtric Puzzle +> Geometric Puzzle < Challenged ### ### s @@ -286,7 +286,7 @@ # * # ! > That's no Moon -< It's a Spacestation +< It's a Space Station **** **** ## **** #### --- solarwolf-1.5.orig/debian/changelog +++ solarwolf-1.5/debian/changelog @@ -0,0 +1,136 @@ +solarwolf (1.5-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Port from python-support to dh-python (closes: #786097). + + -- Graham Inggs Thu, 03 Sep 2015 17:19:25 +0200 + +solarwolf (1.5-2) unstable; urgency=low + + * data/levels.txt: fix typos in level names + (closes: #260823, #372199). + * rules: s/dh_python/dh_pysupport (closes: #375594, #380956). + * Build-depend on python-support. + * Standards-version is 3.7.2. + * menu: quote everything. + * snd.py: start music when setting the volume to non-zero + (closes: #369909). + + -- Josselin Mouette Wed, 11 Oct 2006 20:00:48 +0200 + +solarwolf (1.5-1) unstable; urgency=low + + * New upstream release. + * Remove patch from solarwolf.py, it is integrated upstream. + * Use icons from upstream, remove build-dependency on sng. + + -- Josselin Mouette Tue, 17 Feb 2004 20:18:53 +0100 + +solarwolf (1.4-1) unstable; urgency=low + + * New upstream release. + * Remove patch from hud.py, upstream has its own implementation. + * Require python 2.3 and pygame 1.5.6. + * Use sng instead of sharutils. + + -- Josselin Mouette Sun, 11 Jan 2004 18:56:19 +0100 + +solarwolf (1.3-3) unstable; urgency=medium + + * New upload with medium urgency to avoid messing with the python + transition. + + -- Josselin Mouette Tue, 7 Oct 2003 23:33:01 +0200 + +solarwolf (1.3-2) unstable; urgency=low + + * code/hud.py: patch from Josh Triplett to + display correctly more than 3 lives (closes: #211605). + + -- Josselin Mouette Tue, 7 Oct 2003 22:53:57 +0200 + +solarwolf (1.3-1) unstable; urgency=low + + * New upstream release: + - doesn't crash anymore when it is fully completed (closes: #211323). + * Encode changelog in UTF8. + * Standards-version is 3.6.1. + * Use debian/compat. + + -- Josselin Mouette Tue, 23 Sep 2003 18:13:05 +0200 + +solarwolf (1.2-2) unstable; urgency=low + + * Rebuild for python 2.3, no changes. + + -- Josselin Mouette Sun, 17 Aug 2003 21:06:24 +0200 + +solarwolf (1.2-1) unstable; urgency=low + + * New upstream release. + * Revert to TrueColor for solarwolf.xpm. + * Standards-version is 3.6.0: + - move debhelper from build-depends-indep to build-depends. + * Cleanup in debian/rules. + + -- Josselin Mouette Wed, 6 Aug 2003 16:50:43 +0200 + +solarwolf (1.1-4) unstable; urgency=low + + * Build-depend on python (closes: #173525). + * Standards-version is 3.5.8. + * debian/copyright: please lintian. + * The solarwolf.xpm icon is now 32×32 with system colors. + * Provide solarwolf.png, 64×64 version, uuencoded. + * Build-depend on sharutils to extract solarwolf.png. + + -- Josselin Mouette Wed, 18 Dec 2002 18:31:05 +0100 + +solarwolf (1.1-3) unstable; urgency=low + + * debian/rules: remove .xvpics directories in clean target + (closes: #165384). + * debian/rules: use dh_install, dh_installman and dh_python now. + * debian/control: build-depend on debhelper 4.1.25. + * debian/control: standards-version is 3.5.7. + + -- Josselin Mouette Fri, 22 Nov 2002 16:38:02 +0100 + +solarwolf (1.1-2) unstable; urgency=low + + * Move to python 2.2 (closes: #158285). + * Depend on python-pygame. + + -- Josselin Mouette Sun, 1 Sep 2002 11:36:28 +0200 + +solarwolf (1.1-1) unstable; urgency=low + + * New upstream release + - Depend on pygame 1.5 + * debian/control: changed maintainer email. + * Patch upstream wrapper instead of writing one. + * debian/copyright: changed upstream URL. + + -- Josselin Mouette Tue, 20 Aug 2002 01:07:19 +0200 + +solarwolf (1.0-3) unstable; urgency=low + + * debian/rules: added a chmod -x to the executable. + * First upload to Debian (closes: #135213). + + -- Josselin Mouette Fri, 29 Mar 2002 10:14:11 +0100 + +solarwolf (1.0-2) unstable; urgency=low + + * debian/control: added SDL 1.2.3 dependency. + * debian/control,solarwolf.exec: moved dependency on python2.1 to + python >= 2.1 and << 2.2. + + -- Josselin Mouette Wed, 27 Mar 2002 13:08:06 +0100 + +solarwolf (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Josselin Mouette Fri, 22 Feb 2002 11:38:38 +0100 + --- solarwolf-1.5.orig/debian/compat +++ solarwolf-1.5/debian/compat @@ -0,0 +1 @@ +4 --- solarwolf-1.5.orig/debian/control +++ solarwolf-1.5/debian/control @@ -0,0 +1,22 @@ +Source: solarwolf +Section: games +Priority: optional +Maintainer: Josselin Mouette +Build-Depends-Indep: python-all, dh-python +Build-Depends: debhelper (>= 4.1.25) +Standards-Version: 3.7.2 + +Package: solarwolf +Architecture: all +Depends: python-pygame (>= 1.5.6), ${python:Depends} +Description: Collect the boxes and don't become mad + Solarwolf is an action/arcade game written entirely in Python, + featuring amazing graphics and cool music. + It is is originally based on the SolarFox game on the Atari 2600. + . + All this, yet the best feature of all is; it is a hecka lotta fun! + The point of the game is to scramble through 48 levels of patterns, + collecting all the boxes. The part that makes it tricky is avoiding + the relentless hailstorm of fire coming at you from all directions. + . + URL: http://www.pygame.org/shredwheat/solarwolf/ --- solarwolf-1.5.orig/debian/copyright +++ solarwolf-1.5/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Josselin Mouette on +Fri, 22 Feb 2002 11:38:38 +0100. + +It was downloaded from http://www.pygame.org/shredwheat/solarwolf/ + +Upstream Author: Pete Shinners + +Copyright: + +You are free to distribute this software under the terms of +the GNU Lesser General Public License, version 2.1 +On Debian systems, the complete text of this license can be found +in the /usr/share/common-licenses/LGPL-2.1 file. --- solarwolf-1.5.orig/debian/docs +++ solarwolf-1.5/debian/docs @@ -0,0 +1 @@ +readme.txt --- solarwolf-1.5.orig/debian/install +++ solarwolf-1.5/debian/install @@ -0,0 +1,5 @@ +solarwolf.py /usr/games/ +dist/solarwolf.png dist/solarwolf.xpm /usr/share/pixmaps +dist/solarwolf.desktop /usr/share/applications +code/*.py /usr/lib/games/solarwolf/ +data/ /usr/share/games/solarwolf/ --- solarwolf-1.5.orig/debian/manpages +++ solarwolf-1.5/debian/manpages @@ -0,0 +1 @@ +dist/solarwolf.6.gz --- solarwolf-1.5.orig/debian/menu +++ solarwolf-1.5/debian/menu @@ -0,0 +1,5 @@ +?package(solarwolf): needs="X11"\ + section="Games/Arcade" \ + title="SolarWolf" \ + command="/usr/games/solarwolf" \ + icon="/usr/share/pixmaps/solarwolf.xpm" --- solarwolf-1.5.orig/debian/rules +++ solarwolf-1.5/debian/rules @@ -0,0 +1,51 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + rm -f code/*.py[co] + find data -type d -name .xvpics | xargs rm -rf + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install + (cd debian/solarwolf/usr/games && mv solarwolf.py solarwolf) + +# Build architecture-independent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu + dh_installman + dh_installchangelogs + dh_compress + dh_fixperms + dh_python2 + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- solarwolf-1.5.orig/dist/solarwolf.desktop +++ solarwolf-1.5/dist/solarwolf.desktop @@ -3,5 +3,6 @@ Type=Application Encoding=UTF-8 Name=SolarWolf +Icon=solarwolf.png Exec=/usr/games/solarwolf Categories=Application;Game;ArcadeGame