removed unused files, updated README, small fixes

small-fixes-for-0.3.3
Max Lange 7 years ago
parent e58a5de65a
commit d83d196f19

@ -0,0 +1,182 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="ReText 4.1.2">
<title>README</title>
</head>
<body>
<p><img alt="Logo" src="https://lh3.googleusercontent.com/-ZjA1FSivXNw/VSaOqy8nSRI/AAAAAAAAAB4/_nW122LgHr0/s701-no/all.tiff" title="Logo"></p>
<h2>Project Interstellar is a 2d space-adventure game</h2>
<h4>developed in and with : Python, Pygame, Git/Github and Ninja-IDE. Currently pre-alpha status.</h4>
<p>Version 0.3.x</p>
<h2>How to Run the Game</h2>
<p><br>This is just a developement version so you need
the programming language <a href="https://www.python.org/downloads/release/python-2710/">Python version 2.x .</a></br>
<br>And the physics and graphics engine <a href="http://www.pygame.org/download.shtml">Pygame.</a></br>
<br>Both have a good guide how to install them otherwise google is your friend.</br>
<h5>Windows:</h5>
In normal case double clicking Run.py should start it. If this does not work google for "How to start a .py file".
<br></br>
<h5>Debian based systems:</h5>
Double click on Run.sh. If this does not work make sure it has its executable bit set. Do this by opening a terminal in this folder or navigating there with a "normal" terminal and then copy-paste this command: chmod u+x ./Run.sh
<br></br>
<h5>Other:</h5>
Google for: "how to run python files in" and add you OS
<br></br></p>
<h2>How to play</h2>
<p><br>Use WASD for movement (arrowkeys work too)</br>
<br>F or space will shoot a bullet</br>
<br>When on full power use C to shoot in eight directions</br>
<br>Pressing Y makes you faster while X slower</br>
<br>Use escape to pause the game</br>
<br>Can you get below my 295294ms?</br>
<br></br></p>
<h2>Features</h2>
<p><ul>
<li>f12 for screenshot</li>
<li>f6 to change music</li>
<li>esc to exit</li>
<li>many hidden features</li>
</ul></p>
<h2>Custom music</h2>
<p>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.</p>
<h2>File / Code information</h2>
<p>(Codelines ver:0.3.2.7)</p>
<table>
<thead>
<tr>
<th>File</th>
<th>Code</th>
<th>Non-code</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>Run.py</td>
<td>39</td>
<td>14</td>
<td>53</td>
</tr>
<tr>
<td>tygamusic.py</td>
<td>218</td>
<td>80</td>
<td>298</td>
</tr>
<tr>
<td>chat.py</td>
<td>4</td>
<td>5</td>
<td>9</td>
</tr>
<tr>
<td>draw.py</td>
<td>222</td>
<td>55</td>
<td>277</td>
</tr>
<tr>
<td>interface.py</td>
<td>93</td>
<td>17</td>
<td>110</td>
</tr>
<tr>
<td>main.py</td>
<td>44</td>
<td>34</td>
<td>78</td>
</tr>
<tr>
<td>menu.py</td>
<td>287</td>
<td>68</td>
<td>355</td>
</tr>
<tr>
<td>midi_in.py</td>
<td>57</td>
<td>13</td>
<td>70</td>
</tr>
<tr>
<td>missions.py</td>
<td>52</td>
<td>19</td>
<td>71</td>
</tr>
<tr>
<td>movement.py</td>
<td>139</td>
<td>29</td>
<td>168</td>
</tr>
<tr>
<td>namings.py</td>
<td>57</td>
<td>16</td>
<td>73</td>
</tr>
<tr>
<td>objects.py</td>
<td>287</td>
<td>54</td>
<td>341</td>
</tr>
<tr>
<td>settings.py</td>
<td>381</td>
<td>78</td>
<td>459</td>
</tr>
<tr>
<td>sounds.py</td>
<td>7</td>
<td>4</td>
<td>11</td>
</tr>
<tr>
<td>specials.py</td>
<td>70</td>
<td>15</td>
<td>85</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><strong>Total</strong></td>
<td><strong>2220</strong></td>
<td><strong>501</strong></td>
<td><strong>2721</strong></td>
</tr>
</tbody>
</table>
<p><strong>Top3 code only:</strong><ul>
<li>settings.py 381</li>
<li>menu.py 287, 68</li>
<li>objects.py 287, 54</li></ul></p>
<p><strong>Top3 Commented or empty lines:</strong><ul>
<li>tygamusic 80</li>
<li>settings.py 78</li>
<li>menu.py 68</li></ul></p>
<p><strong>Top3 Total:</strong><ul>
<li>settings.py 459</li>
<li>menu.py 355</li>
<li>objects.py 341</li></ul></p>
<h2>Contact Information</h2>
<p>You can contact me on the <a href="http://www.pygame.org/project-Project+Interstellar-2943-.html">homepage</a>
or via email: max12354678910@gmail.com
(subject: Project_interstellar)</p>
<h2>Licences</h2>
<p>(Licences of used music and art and libs in LICENSES.txt)</p>
</body>
</html>

@ -1,23 +1,21 @@
![main_picture](https://lh3.googleusercontent.com/-ZjA1FSivXNw/VSaOqy8nSRI/AAAAAAAAAB4/_nW122LgHr0/s701-no/all.tiff)
![Logo](https://lh3.googleusercontent.com/-ZjA1FSivXNw/VSaOqy8nSRI/AAAAAAAAAB4/_nW122LgHr0/s701-no/all.tiff "Logo")
<h2>Project Interstellar is a 2d space-adventure game</h2>
<h4>developed in and with : Python, Pygame, subversion and Ninja-IDE. Currently pre-alpha status.</h4>
<h4>developed in and with : Python, Pygame, Git/Github and Ninja-IDE. Currently pre-alpha status.</h4>
Version 0.3.x
How to Run the Game
-------------------
<br>This is just a developement version so you need
the programming language Python version 2.x:</br>
https://www.python.org/downloads/
<br>And the physics and graphics engine pygame:</br>
http://www.pygame.org/download.shtml
the programming language [Python version 2.x .](https://www.python.org/downloads/release/python-2710/)</br>
<br>And the physics and graphics engine [Pygame.](http://www.pygame.org/download.shtml)</br>
<br>Both have a good guide how to install them otherwise google is your friend.</br>
<h5>Windows:</h5>
In normal case double clicking Run.py should start it. If this does not work google for "How to start a .py file".
<br></br>
<h5>Debian based systems:</h5>
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
Double click on Run.sh. If this does not work make sure it has its executable bit set. Do this by opening a terminal in this folder or navigating there with a "normal" terminal and then copy-paste this command: chmod u+x ./Run.sh
<br></br>
<h5>Other:</h5>
Google for: "how to run python files in" and add you OS
@ -25,18 +23,20 @@ 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
<br>Use WASD for movement (arrowkeys work too)</br>
<br>F or space will shoot a bullet</br>
<br>When on full power use C to shoot in eight directions</br>
<br>Pressing Y makes you faster while X slower</br>
<br>Use escape to pause the game</br>
<br>Can you get below my 295294ms?</br>
<br></br>
Features
--------
<ul>
<li>wasd or arrowkeys for movement</li>
<li>f12 for screenshot</li>
<li>f6 to change music</li>
<li>esc to exit</li>
<li>f or space to shoot</li>
<li>y to move faster</li>
<li>c when power bar is filled up will shoot in 8 directions</li>
<li>many hidden features</li>
</ul>
@ -86,7 +86,7 @@ File / Code information
Contact Information
-------------------
You can contact me on the homepage: http://www.pygame.org/project-Project+Interstellar-2943-.html
You can contact me on the [homepage](http://www.pygame.org/project-Project+Interstellar-2943-.html)
or via email: max12354678910@gmail.com
(subject: Project_interstellar)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

@ -1,12 +1,12 @@
[main]
fullscreen = True
screenx_current = 1920
screeny_current = 1080
fullscreen = False
screenx_current = 960
screeny_current = 540
debug = True
skip = True
posx = 0
posy = 0
volume = 0.673913043478
posx = 283
posy = 497
volume = 0.5
debugscreen = False
debugmode = True
debugmode = False

@ -12,7 +12,8 @@ from pygame.locals import *
def init():
midi_in.init()
if settings.debugmode:
midi_in.init()
"""Handles user input"""
@ -22,7 +23,8 @@ def handle():
# handles user input
# i think nothing to explain here
midi_in.do()
if settings.debugmode:
midi_in.do()
for event in settings.events:
if event.type == QUIT:

@ -115,9 +115,10 @@ class menu_template():
if key == "escape":
pygame.mouse.set_visible(False)
events.append("event.QUIT")
if key == "return":
if key in ["return", "enter"]:
pygame.mouse.set_visible(False)
events.append("event.CONTINUE")
events.append(key)
if event.type == USEREVENT and event.code == "MENU":
klicked = self.menu.get_klicked()
for elem in klicked:
@ -298,7 +299,24 @@ def choose_world():
settings.quit()
if event[0:5] == "world":
selected = event[5]
pygame.time.wait(128)
if event[1] in ["1", "2", "3", "4", "6", "7", "8", "9"]:
#maps keys to worlds
selected = int(event[1])
if selected == 1:
selected = 6
elif selected == 2:
selected = 7
elif selected == 3:
selected = 8
elif selected == 6:
selected = 5
elif selected == 7:
selected = 1
elif selected == 8:
selected = 2
elif selected == 9:
selected = 3
selected = str(selected)
for elem in world_menu.menu.elems["buttons"]:
if elem.name == "world" + str(selected):
elem.state = 2

@ -46,9 +46,9 @@ def handle(usage):
points = settings.player.timeplay
color = settings.color
texttime = font.render("Your time: " + str(points) + "ms", 1, color)
tmp = str(points / 15.0)[:6]
texttt = font.render("You needed " + tmp + "ms per target", 1, color)
texttime = font.render("Your time: " + str(points) + "ms", True, color)
tmp = str(points / (settings.dtargets * 8.0))[:6]
texttt = font.render("You needed " + tmp + "ms per target", True, color)
textrect = texttime.get_rect()
textrectpertarget = texttt.get_rect()
textrect.center = settings.screen.get_rect().center

@ -1,2 +0,0 @@
-use … more often
(look at trello for really important info)
Loading…
Cancel
Save