about summary refs log tree commit diff homepage
path: root/brutalmaze
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2019-03-15 20:21:12 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2019-03-15 20:23:43 +0700
commit7a0ace220c7acfa8df5a4fe494f424b5d9970a06 (patch)
treea087b7fe644afbbd5bdad0248cbc79de1491fc55 /brutalmaze
parentbe6c2fedea57177b75bc1f50dfc016d672be92b1 (diff)
downloadbrutalmaze-7a0ace220c7acfa8df5a4fe494f424b5d9970a06.tar.gz
Switch back to thrilling white noise 0.8.24
Diffstat (limited to 'brutalmaze')
-rw-r--r--brutalmaze/__init__.py2
-rw-r--r--brutalmaze/constants.py1
-rw-r--r--brutalmaze/game.py14
-rw-r--r--brutalmaze/settings.ini2
-rw-r--r--brutalmaze/soundfx/music.oggbin2431401 -> 0 bytes
5 files changed, 5 insertions, 14 deletions
diff --git a/brutalmaze/__init__.py b/brutalmaze/__init__.py
index 3e2e7a1..5b5144f 100644
--- a/brutalmaze/__init__.py
+++ b/brutalmaze/__init__.py
@@ -1 +1 @@
-"""Brutal Maze is a minimalist third-person shooter with fast-paced action"""
+"""Brutal Maze is a minimalist thrilling shoot 'em up game."""
diff --git a/brutalmaze/constants.py b/brutalmaze/constants.py
index a7d1267..24ad23a 100644
--- a/brutalmaze/constants.py
+++ b/brutalmaze/constants.py
@@ -27,7 +27,6 @@ from pygame.mixer import Sound
 
 SETTINGS = pkg_file('brutalmaze', 'settings.ini')
 ICON = pygame.image.load(pkg_file('brutalmaze', 'icon.png'))
-MUSIC = pkg_file('brutalmaze', 'soundfx/music.ogg')
 NOISE = pkg_file('brutalmaze', 'soundfx/noise.ogg')
 
 mixer = pygame.mixer.get_init()
diff --git a/brutalmaze/game.py b/brutalmaze/game.py
index 94e2f08..65fcffb 100644
--- a/brutalmaze/game.py
+++ b/brutalmaze/game.py
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with Brutal Maze.  If not, see <https://www.gnu.org/licenses/>.
 
-__version__ = '0.8.23'
+__version__ = '0.8.24'
 
 import re
 from argparse import ArgumentParser, FileType, RawTextHelpFormatter
@@ -36,7 +36,7 @@ from pygame import KEYDOWN, MOUSEBUTTONUP, QUIT, VIDEORESIZE
 from pygame.time import Clock, get_ticks
 from appdirs import AppDirs
 
-from .constants import SETTINGS, ICON, MUSIC, NOISE, HERO_SPEED, MIDDLE
+from .constants import SETTINGS, ICON, NOISE, HERO_SPEED, MIDDLE
 from .maze import Maze
 from .misc import sign, deg, join
 
@@ -69,7 +69,6 @@ class ConfigReader:
         self.max_fps = self.config.getint('Graphics', 'Maximum FPS')
         self.muted = self.config.getboolean('Sound', 'Muted')
         self.musicvol = self.config.getfloat('Sound', 'Music volume')
-        self.space = self.config.getboolean('Sound', 'Space theme')
         self.touch = self.config.getboolean('Control', 'Touch')
         self.export_dir = self.config.get('Record', 'Directory')
         self.export_rate = self.config.getint('Record', 'Frequency')
@@ -98,7 +97,7 @@ class ConfigReader:
 
     def read_args(self, arguments):
         """Read and parse a ArgumentParser.Namespace."""
-        for option in ('size', 'max_fps', 'muted', 'musicvol', 'space',
+        for option in ('size', 'max_fps', 'muted', 'musicvol',
                        'touch', 'export_dir', 'export_rate', 'server',
                        'host', 'port', 'timeout', 'headless'):
             value = getattr(arguments, option)
@@ -114,7 +113,7 @@ class Game:
         if config.muted or self.headless:
             pygame.mixer.quit()
         else:
-            pygame.mixer.music.load(NOISE if config.space else MUSIC)
+            pygame.mixer.music.load(NOISE)
             pygame.mixer.music.set_volume(config.musicvol)
             pygame.mixer.music.play(-1)
         pygame.display.set_icon(ICON)
@@ -355,11 +354,6 @@ def main():
         '--music-volume', type=float, metavar='VOL', dest='musicvol',
         help='between 0.0 and 1.0 (fallback: {})'.format(config.musicvol))
     parser.add_argument(
-        '--space-music', action='store_true', dest='space', default=None,
-        help='use space music background (fallback: {})'.format(config.space))
-    parser.add_argument('--default-music', action='store_false', dest='space',
-                        help='use default music background')
-    parser.add_argument(
         '--touch', action='store_true', default=None,
         help='enable touch-friendly control (fallback: {})'.format(
             config.touch))
diff --git a/brutalmaze/settings.ini b/brutalmaze/settings.ini
index e633a56..d78aed2 100644
--- a/brutalmaze/settings.ini
+++ b/brutalmaze/settings.ini
@@ -8,8 +8,6 @@ Maximum FPS: 60
 Muted: no
 # Volume must be between 0.0 and 1.0.
 Music volume: 1.0
-# Use space music background, which sounds cold and creepy.
-Space theme: no
 
 [Control]
 # Touch-friendly control
diff --git a/brutalmaze/soundfx/music.ogg b/brutalmaze/soundfx/music.ogg
deleted file mode 100644
index 163fa08..0000000
--- a/brutalmaze/soundfx/music.ogg
+++ /dev/null
Binary files differ