This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added controls in README and instructions on building the executable
- Loading branch information
1 parent
255e084
commit eceea26
Showing
5 changed files
with
91 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Creating the Executable | ||
======================= | ||
|
||
For ``Debain/Ubuntu`` based systems | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
1. I used `pyinstaller <https://github.com/pyinstaller/pyinstaller/>`__ to create the executable. | ||
|
||
After installing it and adding the changes. Inside the ``spaceShooter`` directory, simply run the command | ||
|
||
.. code:: bash | ||
$ pyinstaller --onefile --windowed spaceShooter.py | ||
This will create an executable and place it inside the directory ``dist`` | ||
|
||
2. Place the folders ``assets`` and ``sounds`` together with the excutable inside a single folder and zip it. | ||
|
||
For ``Windows`` based systems | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
1. `cx_freeze <http://cx-freeze.sourceforge.net/>`__ was used to create the excutable for Windows based systems | ||
|
||
2. Use the `setup.py <https://github.com/prodicus/spaceShooter/blob/master/setup.py>`__ file for building the executable. | ||
|
||
3. Go to the directory ``spaceShooter`` and then run the command | ||
|
||
.. code:: python | ||
$ python setup.py build | ||
This will create a new folder inside ``spaceShooter``. | ||
|
||
4. Rename it and zip that file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# @Date: 2016-01-17 | ||
# @Email: [email protected] Github username: @prodicus | ||
# @Last Modified by: tasdik | ||
# @Last Modified time: 2016-01-17 | ||
# @Last Modified time: 2016-01-18 | ||
# MIT License. You can find a copy of the License @ http://prodicus.mit-license.org | ||
|
||
## Game music Attribution | ||
|
@@ -200,7 +200,7 @@ def __init__(self): | |
self.radius = int(self.rect.width *.90 / 2) | ||
self.rect.x = random.randrange(0, WIDTH - self.rect.width) | ||
self.rect.y = random.randrange(-150, -100) | ||
self.speedy = random.randrange(1, 8) ## for randomizing the speed of the Mob | ||
self.speedy = random.randrange(5, 20) ## for randomizing the speed of the Mob | ||
|
||
## randomize the movements a little more | ||
self.speedx = random.randrange(-3, 3) | ||
|