Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tested Version On Unix Systems #31

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,37 @@ Same as windows.

Ensure ``main.py`` is in the same directory as ``./data`` and execute ``python main.py``.

### Running from source on unix like systems

**Note:** this project was build on windows, that use codification CF-LF however unix systems uses only LF
for run from source is necesary install dos2unix and convert the file main.py

1. Mac Os (Using homebrew)
```bash
brew install dos2unix

#after install convert
dos2unix main.py

#run
./main.py
```

2. Linux (this may change depending of distribution)
```bash
#debian/ubuntu based distros
sudo apt install dos2unix

#arch based distros
sudo pacman -Syu dos2unix

#after install
dos2unix main.py

#run
./main.py
```


## Contributing
Pull requests are welcome! For major refactors, please open an issue first to discuss what you would like to improve. Feel free to create a fork of this repository and use the code for any noncommercial purposes.
3 changes: 3 additions & 0 deletions background.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import pygame
#fixed colorsys is not defined
import colorsys

class Background:
def __init__(self):
self.sprite = pygame.image.load('data/gfx/bg.png')
Expand Down
Loading