Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixilie/traffic-lights
Manage traffic by controlling traffic lights to pass all the cars
https://github.com/pixilie/traffic-lights
2d-game management pygame python top-view traffic-light video-game
Last synced: 19 days ago
JSON representation
Manage traffic by controlling traffic lights to pass all the cars
- Host: GitHub
- URL: https://github.com/pixilie/traffic-lights
- Owner: Pixilie
- License: mit
- Created: 2022-12-18T21:08:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-24T16:38:37.000Z (about 1 year ago)
- Last Synced: 2024-12-08T04:26:02.579Z (26 days ago)
- Topics: 2d-game, management, pygame, python, top-view, traffic-light, video-game
- Language: Python
- Homepage:
- Size: 19.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Traffic Lights
## Introduction
**Traffic Lights** is a 2D game that draws inspiration from the popular game [Traffix](https://store.steampowered.com/app/1102580/Traffix/). A friend and I developed this game using the Pygame library as a school IT project. The gameplay is straightforward, challenging players to manage traffic by controlling traffic lights. If you enjoy puzzle games that test your decision-making skills, give "Traffic Lights" a try.## Installation
Traffic Lights needs python3 or python2, pygame and tkinter to work.
- **`Window (7/10/11)`** You can download python on the microsoft store or the [website](https://python.org) and install the librairies with pip.
> pip install pygame
> pip install tk
- **``Linux (debian/ubuntu)``** You can download python [here](https://www.python.org/downloads/source/) or using your package manager (apt, brew...)
> sudo apt-get install python3
> sudo apt-get install python3-tk
> sudo apt-get install python-pygame
- **``MacOS (Homebrew)``** You can download python [here](https://www.python.org/downloads/macos/) or using Homebrew.
> brew install python
> pip install pygame
> pip install tk
- To install Traffic Lights, you just have to clone this repository.
> Using **[``Git (All plateforms)``](https://git-scm.com/downloads)** or ``apt/brew install git`` -> ``git clone https://github.com/Pixilie/Traffic_Lights``
> Using **[``Github CLI (Windows)``](https://cli.github.com/)** -> ``gh repo clone Pixilie/Traffic_Lights``
> Using **[``Github Deskstop``](https://desktop.github.com/)** -> go [here](https://github.com/Pixilie/Traffic_Lights), click on the green code button and click ``Open with Gitub Deskstop``## Credits
Game based on [Traffix](https://store.steampowered.com/app/1102580/Traffix/), there was no intention to copy or to compete with the real game, it's just a school project. I don't think we will continue to develop the game.Here are the sources for the different sounds used in the game in order to respect the royalty-free licenses.
- For the musics:
> Shine par Onycs
> Gaia par Nova Noma
> K For Kool par Kuromaru
- For the sounds effects:
> Sound Effect from Pixabay