-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setup.py, add requirements.txt, add icon.
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 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 |
---|---|---|
@@ -1,2 +1,28 @@ | ||
# Alien-Invaders | ||
Gra Inwazja Obcych opracowana w PyGame | ||
## Setup | ||
Aby uruchomić projekt, wykonaj poniższe polecenia: | ||
|
||
``` | ||
$ git clone https://github.com/Lioheart/Alien-Invaders.git | ||
$ cd Alien-Invaders | ||
# pip install virtualenv | ||
$ python -m venv venv | ||
$ virtualenv venv | ||
$ source venv/bin/activate - Linux and Mac | ||
# Set-ExecutionPolicy RemoteSigned - Windows | ||
$ venv\Scripts\activate - Windows | ||
# Set-ExecutionPolicy Restricted - Windows | ||
$ pip install -r requirements.txt | ||
``` | ||
|
||
## Użycie | ||
Uruchom program za pomocą komendy: `python alien_invasion.py` | ||
|
||
## Plik wykonywalny .exe | ||
Aby ręcznie utworzyć plik .exe, należy doinstalować pakiet cx_Freeze, a następnie zbudować paczkę: | ||
``` | ||
$ pip install cx-Freeze | ||
$ python setup.py build | ||
``` | ||
Można także pobrać gotową paczkę [tutaj](https://github.com/Lioheart/Alien-Invaders/releases/latest). |
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 @@ | ||
pygame>=1.9.6 |
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,15 @@ | ||
import cx_Freeze | ||
|
||
executables = [ | ||
cx_Freeze.Executable("alien_invasion.py", | ||
base = "Win32GUI", | ||
icon = "ufo.ico") | ||
] | ||
|
||
cx_Freeze.setup( | ||
name="Alien Invasion", | ||
version = "1.0", | ||
options={"build_exe": {"packages":["pygame"], | ||
"include_files":["images"]}}, | ||
executables = executables | ||
) |