From 17825fe41f70a9978574b2aa1915be5afe5cd84d Mon Sep 17 00:00:00 2001 From: Max Lange Date: Tue, 11 Aug 2015 18:22:40 +0200 Subject: [PATCH] added menu class added main and pause menu fixed many errors --- README.md | 26 ++- assets/templates/pause.menu | 4 +- assets/templates/settings.menu | 2 +- libs/menu/creator.py | 12 ++ src/menu.py | 283 ++++++++++++++++----------------- src/settings.py | 2 + 6 files changed, 175 insertions(+), 154 deletions(-) diff --git a/README.md b/README.md index 4b80cde..3b1f18f 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,24 @@ Version 0.3.x +How to Run the Game +------------------- +
This is just a developement version so you need +the programming language Python version 2.x:
+https://www.python.org/downloads/ +
And the physics and graphics engine pygame:
+http://www.pygame.org/download.shtml +
Both have a good guide how to install them otherwise google is your friend.
+
Windows:
+In normal case double clicking Run.py should start it. If this does not work google for "How to start a .py file". +

+
Debian based systems:
+Double click on Run.sh. If this does not work make sure it has its executable bit set. Do this by opening a treminal in this folder or navigating there with a "normal" terminal and then copy-paste this command: chmod u+x ./Run.sh +

+
Other:
+Google for: "how to run python files in" and add you OS +

+ How to play ----------- To play, simply run the "Run.py" file located in the base directory @@ -24,8 +42,8 @@ Features Custom music ------------ -Simply paste your music into the music folder to be included in the game. -"_" will be replaced with spaces (" "). For best support use .ogg but .mp3 will work too. +Simply paste your music into the ./assets/music folder to be included in the game. +"_" will be replaced with spaces " ". For best support use .ogg but .mp3 will work too. File / Code information ----------------------- @@ -47,8 +65,8 @@ File / Code information | objects.py | 287 | 54 | 341 | | settings.py | 381 | 78 | 459 | | sounds.py | 7 | 4 | 11 | -| specials | 70 | 15 | 85 | -| | | | +| specials.py | 70 | 15 | 85 | +| | | | | Total | 2220 | 501 | 2721 | Top3 code only: