Skip to content

Commit 7902740

Browse files
Merge pull request #2 from mratanusarkar/add-runner
add: runner
2 parents 77e5d3c + 8ee55e1 commit 7902740

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
# Default ignored files
2-
.idea
2+
.idea
3+
4+
# Environments
5+
.env
6+
.venv
7+
env/
8+
venv/
9+
ENV/
10+
env.bak/
11+
venv.bak/

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ A look at **Game Over** Screen:
5656
![logging](./assets/my_space_invaders-logging.gif)
5757

5858
## Installation
59-
#### On windows:
59+
### On windows:
60+
61+
Just double-click the `runner.bat` file to launch the game, if you already have **python** and **pip** on your machine.
62+
63+
You can also manually install and run the game by following the manual process below:
6064
1. ensure that you have **python** and **pip** on your machine. If not, install it from [here](https://www.python.org/downloads/).
6165
2. clone the repo to a local directory or download it as zip and un-zip it.
6266
3. open windows command prompt (cmd) and enter the following commands:
@@ -68,6 +72,11 @@ A look at **Game Over** Screen:
6872

6973
you can skip creating a virtual environment if you wish and **ignore steps 4-6** but it is not recommended.
7074

75+
### On Linux or macOS:
76+
77+
Navigate to `main.py` and run `python main.py`, if you already have **python** and **pip** on your machine.
78+
79+
If not, get python and then run the main to launch the game!
7180

7281
## References and Resources
7382
All the resources used are mentioned below:

requirements.txt

-204 Bytes
Binary file not shown.

runner.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
cmd /k "py -m pip install --user virtualenv & py -m venv env .\env\Scripts\activate & pip install -r requirements.txt & cls & cd Space Invaders && python main.py"

0 commit comments

Comments
 (0)