An open API service indexing awesome lists of open source software.

https://github.com/dimagutierrez/python-games

6 Games with turtle graphics 🐢 Python
https://github.com/dimagutierrez/python-games

games idle import python tetris tetris-game tetrisgame time turtle turtle-graphics winsound

Last synced: 6 months ago
JSON representation

6 Games with turtle graphics 🐢 Python

Awesome Lists containing this project

README

          

# 🐍Python Games with turtle graphics 🐢

Install on terminal 👾
```
C:\....\....>pip install turtle
```
Go to proyects!
```python
import turtle
import time
import random
import winsound
```
# Python "tetris" Game 🏆
Легендарная игра от создателя Алексей Пажитнов!

![https://github.com/dimagutierrez](https://github.com/DimaGutierrez/Python-Games/blob/main/img/python_turtle_tetris.png)
## Settings 💻
Run > `tetris_turtle.py`


## тетрис controls 🎮
🕹️Move (← A ) (→ D )


🕹️Rotate = space
```python
# Keyboard
wn.listen()
wn.onkeypress(lambda: shape.move_left(grid), "a")
wn.onkeypress(lambda: shape.move_right(grid), "d")
wn.onkeypress(lambda: shape.rotate(grid), "space")
```

# Space Shooting 🛸...
many functions available here, movements and statistics, graphic animations, sound efects!
```python
import turtle
import random
import winsound
```

![https://github.com/dimagutierrez](https://github.com/DimaGutierrez/Python-Games/blob/main/img/Space_shooting.jpg)
## Settings 💻
Run > `space_shooting_turtle.py`
the py file and the images must be in the same folder


## controls 🎮
🕹️Move (← ) (→ ) (↑ ) (↓ )


🕹️Shooting = space
```python
# Keyboard binding
wn.listen()
wn.onkeypress(quit_game, "q")
wn.onkeypress(player.up, "Up")
wn.onkeypress(player.down, "Down")
wn.onkeypress(player.move_left, "Left")
wn.onkeypress(player.move_right, "Right")
wn.onkeypress(fire_missile, "space")
```
## Sound Efects / misile, explossion
```Ruby
def fire_missile():
for missile in missiles:
if missile.state == "ready":
missile.fire()
winsound.PlaySound("SS_missile.wav",winsound.SND_ASYNC)
break
```

# ChernoBird ☢️🐤
FlappyBird
![https://github.com/dimagutierrez](https://github.com/DimaGutierrez/Python-Games/blob/main/img/python_chernobird.png)
## Settings 💻
Run > `cherno_bird.py`
the py file and the images must be in the same folder


Theme & graphic design Dima Gutierrez
## controls 🎮
🕹️Fly press space маленькая птичка летит 🐤

# Python "Pong" Game 🏓

![https://github.com/dimagutierrez](https://github.com/DimaGutierrez/Python-Games/blob/main/img/python_pong.png)
## Settings 💻
Run > `pong.py`


## Controls 🎮
🕹️Player A (↑ W ) (↓ S )


🕹️Player B (↑ ) (↓ )
```python
# Keyboard
wn.listen()
wn.onkeypress(paddle_a_up, "w")
wn.onkeypress(paddle_a_down, "s")
wn.onkeypress(paddle_b_up, "Up")
wn.onkeypress(paddle_b_down, "Down")
```

# Python "Turtle Race" 🐢🏁

![https://github.com/dimagutierrez](https://github.com/DimaGutierrez/Python-Games/blob/main/img/python_turtle_race.png)
## Settings 💻
Run > `turtle race.py`
```python
from turtle import *
from random import *
import turtle
import time
```

# Python "tetris" One block version 🟨

![https://github.com/dimagutierrez](https://github.com/DimaGutierrez/Python-Games/blob/main/img/python_turtle_tetris_oneb.png)
## Settings 💻
Run > `tetris_one_block.py`


## тетрис controls 🎮
🕹️Move ( ← ) ( → )


## This simple version has a score counter
```python
score_count = 0
score = turtle.Turtle()
score.color('red')
score.up()
score.hideturtle()
score.goto(60,-300)
score.write('Score: 0', align='center', font=('Courier', 24, 'normal'))
```


Visit the discussion section and find other projects

## Enjoy the games! 🐍
[![Python](https://img.shields.io/badge/Python-0095D5?style=for-the-badge&logo=Python&logoColor=white&labelColor=101010)]()

```python
Visit discussion for more ideas & star my repo! ⭐🚀
https://github.com/DimaGutierrez/Python-Games/discussions
```
![galaxy brain](https://github.com/user-attachments/assets/e4fabfee-b97e-40f2-9df2-89a4e5a17e8c)