Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add setup.py,
add requirements.txt,
add icon.
  • Loading branch information
Lioheart committed Jun 11, 2020
1 parent 31331b7 commit 9b1daf6
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
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).
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pygame>=1.9.6
15 changes: 15 additions & 0 deletions setup.py
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
)
Binary file added ufo.ico
Binary file not shown.

0 comments on commit 9b1daf6

Please sign in to comment.