1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
From: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Date: Fri, 12 Apr 2013 18:19:41 +0200
Subject: 04_bug406548
---
angrydd.6 | 2 ++
angrydd.py | 1 +
config.py | 10 ++++++++++
3 files changed, 13 insertions(+)
diff --git a/angrydd.6 b/angrydd.6
index e3e8179..c6ffc2d 100644
--- a/angrydd.6
+++ b/angrydd.6
@@ -60,6 +60,8 @@ counter-clockwise, o for clockwise, and backspace or 2 for start.
Pressing 'p' during a game will pause it. Pressing escape will usually
take you back to the menu.
.PP
+Pressing 'f' or F11 makes the game switch between fullscreen and window mode.
+.PP
The game is designed to be played with joysticks or gamepads as well;
the directionals will move, the buttons rotate, start is start,
and select is pause.
diff --git a/angrydd.py b/angrydd.py
index 24d34b3..7c345a5 100755
--- a/angrydd.py
+++ b/angrydd.py
@@ -151,6 +151,7 @@ def setup(menu_, platform, pos, key):
import menu
config_menu = [
(config.get_matches(), menu.entry(config.set_matches)),
+ (config.get_fullscreen(), menu.entry(config.set_fullscreen)),
(config.get_speed(), menu.entry(config.set_speed)),
(config.get_rotup(), menu.entry(config.set_rotup)),
(config.get_space(), menu.entry(config.set_space)),
diff --git a/config.py b/config.py
index 597e70d..3c92ba0 100644
--- a/config.py
+++ b/config.py
@@ -6,6 +6,7 @@ __revision__ = "$Id: config.py 291 2004-09-09 00:38:52Z piman $"
import os
from ConfigParser import ConfigParser
from constants import *
+from pygame import display
_config = ConfigParser()
@@ -111,6 +112,15 @@ def set_rotup(menu, platform, pos, key):
platform.text = get_rotup()
return False
+def set_fullscreen(menu, platform, pos, key):
+ display.toggle_fullscreen()
+ platform.text = get_fullscreen()
+ return False
+
+def get_fullscreen():
+ if _config.getboolean("settings", "fullscreen"): return "Full Screen Mode"
+ else: return "Window Mode"
+
def get_rotup():
if _config.getboolean("settings", "rotate_on_up"): return "Up Rotates"
else: return "Up Doesn't Rotate"
|