Skip to content

Plumber game project in Python language for PADPY course starting october '18.

License

Notifications You must be signed in to change notification settings

paldynaagata/plumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Plumber

Plumber to gra polegająca na odpowiednim ułożeniu rur tak, aby połączyć początkową rurę z końcową.

Jak zacząć

Wymagania systemowe

Python w wersji 3.x, pakiet pygame.

Jak pobrać grę

Grę można pobrać na dwa sposoby, bezpośrednio z githuba oraz za pomocą terminala.

Github

  1. Kliknąć przycisk Clone or download.

  2. Kliknąć przycisk Download ZIP.

  3. Wypakować na swoim komputerze cały katalog .zip.

Terminal

  1. Skopiować link do gry https://github.com/paldynaagata/plumber.

  2. W terminalu wpisać komendę git clone i wkleić powyższy link.

Jak uruchomić grę

W terminalu za pośrednictwem pythona uruchomić plik Plumber.py, np.: python Plumber.py lub /opt/anaconda/bin/python Plumber.py.

Menu główne

Po uruchomieniu gry widzimy ekran startowy z czterema przyciskami do wyboru.

  1. New game: wybieramy wymiar planszy na jakiej chcemy zagrać.

  2. Scores: po wybraniu wymiaru planszy widzimy listę dziesięciu najlepszych wyników. Wyniki można wyczyścić klikając przycisk Clear scores.

  3. Settings: tutaj można zmieniać język PL/EN, jak również wyłączać/włączać dźwięki. Domyślne ustawienia to język angielski i włączone dźwięki.

  4. Exit: wychodzimy z gry.

Jak grać

Gra polega na odpowiednim ułożeniu rur tak, aby połączyć początkową rurę (rura w lewym górnym rogu) z końcową (rura w prawym dolnym rogu). Zarówno rura początkowa, jak i końcowa, nie obracają się. Nie ma konieczności użycia wszystkich rur. Kliknięcie lewym przyciskiem myszy obraca rurę o 90 stopni zgodnie z ruchem wskazówek zegara, natomiast kliknięcie prawym przyciskiem myszy obraca rurę o 90 stopni przeciwnie do ruchu wskazówek zegara. Liczba zdobytych punktów to liczba kliknięć, zatem najlepszy wynik to ten z najmniejszą liczbą kliknięć.

Wykorzystane źródła

Obrazki rur zostały pobrane z OpenClipart, są udostępnione na licencji CC0-1.0:

Dźwięki natomiast zostały pobrane z OpenGameArt, są udostępnione na licencjach CC-BY-SA 3.0, GPL 3.0, GPL 2.0:

Licencja

Ten projekt jest udostępniony na zasadzie licencji MIT - patrz plik LICENSE.

Plumber (English)

Plumber it's a game in which you have to apropriately lay pipes to get through the start and end pipes.

Getting started.

System requirements

Python 3.x, package pygame.

How to download the game

There are two ways to download the game, directly from github and by terminal.

Github

  1. Click button Clone or download.

  2. Click button Download ZIP.

  3. Extract all files from the .zip file.

Terminal

  1. Copy link https://github.com/paldynaagata/plumber.

  2. In terminal write command git clone and paste above link.

How to run the game

In terminal by python run file Plumber.py, e.g.: python Plumber.py or /opt/anaconda/bin/python Plumber.py.

Main menu

After running the game we can see main menu screen with four buttons.

  1. New game: here we can choose size of the board on which we want to play.

  2. Scores: after choosing size of the board we can see list of ten best scores. It's possible to clear the scores by clicking Clear scores button.

  3. Settings: here we can change language PL/EN and also turn off/turn on sounds. Default settings are English and sound on.

  4. Exit: quit the game.

How to play

In this game you have to apropriately lay pipes to get through the start (pipe in left top conrner) and end (pipe in right bottom conrner) pipes. Start and end pipes don't rotate. It isn't necessary to use all pipes. Clicking left mouse button rotates pipe 90 degree clockwise, whereas clicking right mouse button roratates pipe 90 degree counterclockwise. Score is the number of clicks, so the best score is that with the least number of clicks.

Used sources

Images of pipes were downloaded from OpenClipart, they are licensed under CC0-1.0 License:

Sounds were downloaded from OpenGameArt, they are licensed under CC-BY-SA 3.0, GPL 3.0, GPL 2.0 Licenses:

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Plumber game project in Python language for PADPY course starting october '18.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages