aboutsummaryrefslogtreecommitdiff
path: root/games/fretsonfire/files
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2006-10-03 17:42:13 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2006-10-03 17:42:13 +0000
commit60bc02573ec7407a45cd13f3888bb4b4faaf920c (patch)
tree5f8d4ad281393f7cc442ee0a5c384e8f26eeab52 /games/fretsonfire/files
parentba0a7a10d5f4e3bd727919a964552ef022ec24fa (diff)
Notes
Diffstat (limited to 'games/fretsonfire/files')
-rw-r--r--games/fretsonfire/files/FretsOnFire.in16
-rw-r--r--games/fretsonfire/files/patch-src_GameEngine.py11
-rw-r--r--games/fretsonfire/files/patch-src_Video.py33
-rw-r--r--games/fretsonfire/files/pkg-message.in22
4 files changed, 82 insertions, 0 deletions
diff --git a/games/fretsonfire/files/FretsOnFire.in b/games/fretsonfire/files/FretsOnFire.in
new file mode 100644
index 000000000000..bed9b788237b
--- /dev/null
+++ b/games/fretsonfire/files/FretsOnFire.in
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+import sys
+import os.path
+
+#Program path
+package_dir = os.path.join("%%PROGRAM_DIR%%")
+
+#Change current work directory
+os.chdir(package_dir)
+
+#Add package_dir to python path
+sys.path.append(package_dir)
+
+#Launch the program!
+execfile(os.path.join(package_dir, "FretsOnFire.py"))
diff --git a/games/fretsonfire/files/patch-src_GameEngine.py b/games/fretsonfire/files/patch-src_GameEngine.py
new file mode 100644
index 000000000000..65f8dd94a8ff
--- /dev/null
+++ b/games/fretsonfire/files/patch-src_GameEngine.py
@@ -0,0 +1,11 @@
+--- src/GameEngine.py Tue Oct 3 09:25:05 2006
++++ src/GameEngine.py Tue Oct 3 09:25:33 2006
+@@ -46,7 +46,7 @@
+ Config.define("engine", "tickrate", float, 1.0)
+ Config.define("game", "uploadscores", bool, False, text = "Upload Highscores", options = {False: "No", True: "Yes"})
+ Config.define("game", "uploadurl", str, "http://kempele.fi/~skyostil/python/fretsonfire/upload")
+-Config.define("video", "fullscreen", bool, True, text = "Fullscreen Mode", options = {False: "No", True: "Yes"})
++Config.define("video", "fullscreen", bool, False, text = "Fullscreen Mode", options = {False: "No", True: "Yes"})
+ Config.define("video", "multisamples", int, 4, text = "Antialiasing Quality", options = {0: "None", 2: "2x", 4: "4x", 6: "6x", 8: "8x"})
+ Config.define("video", "resolution", str, "640x480")
+ Config.define("video", "fps", int, 80, text = "Frames per Second", options = dict([(n, n) for n in range(0, 120)]))
diff --git a/games/fretsonfire/files/patch-src_Video.py b/games/fretsonfire/files/patch-src_Video.py
new file mode 100644
index 000000000000..4efda5cb415b
--- /dev/null
+++ b/games/fretsonfire/files/patch-src_Video.py
@@ -0,0 +1,33 @@
+--- src/Video.py Mon Aug 28 16:36:04 2006
++++ src/Video.py Mon Oct 2 16:23:07 2006
+@@ -48,10 +48,10 @@
+
+ pygame.display.init()
+
+- pygame.display.gl_set_attribute(pygame.GL_RED_SIZE, 8)
+- pygame.display.gl_set_attribute(pygame.GL_GREEN_SIZE, 8)
+- pygame.display.gl_set_attribute(pygame.GL_BLUE_SIZE, 8)
+- pygame.display.gl_set_attribute(pygame.GL_ALPHA_SIZE, 8)
++ pygame.display.gl_set_attribute(pygame.GL_RED_SIZE, 5)
++ pygame.display.gl_set_attribute(pygame.GL_GREEN_SIZE, 6)
++ pygame.display.gl_set_attribute(pygame.GL_BLUE_SIZE, 5)
++ pygame.display.gl_set_attribute(pygame.GL_ALPHA_SIZE, 0)
+
+ if multisamples:
+ pygame.display.gl_set_attribute(pygame.GL_MULTISAMPLEBUFFERS, 1);
+@@ -59,13 +59,14 @@
+
+ try:
+ self.screen = pygame.display.set_mode(resolution, flags)
+- except pygame.error:
++ except pygame.error,e:
+ if multisamples:
+ Log.warn("Video setup failed. Trying without antialiasing.")
+ pygame.display.gl_set_attribute(pygame.GL_MULTISAMPLEBUFFERS, 0);
+ pygame.display.gl_set_attribute(pygame.GL_MULTISAMPLESAMPLES, 0);
+ multisamples = 0
+ self.screen = pygame.display.set_mode(resolution, flags)
++ else: raise e
+
+ pygame.display.set_caption(self.caption)
+ pygame.mouse.set_visible(False)
diff --git a/games/fretsonfire/files/pkg-message.in b/games/fretsonfire/files/pkg-message.in
new file mode 100644
index 000000000000..dc286ea0371a
--- /dev/null
+++ b/games/fretsonfire/files/pkg-message.in
@@ -0,0 +1,22 @@
+###############################################################################
+
+The Frets On Fire was installed
+
+1) Don't try execute FretsOnFire on fullscreen mode, because the FretsOnFire
+ generate a core dump (a py-game bug). Always execute FretsOnFire on window
+ mode.
+
+2) You can read the documentation about FretsOnFire at:
+
+ %%DOCSDIR%%
+
+3) The default resolution of FretsOnFire is 640x480x16 on window mode, but you
+ can to change it.
+
+4) Run The Frets On Fire using:
+
+ # FretsOnFire
+
+5) Enjoy it ;)
+
+###############################################################################