A high graphics game of the classic arcade game of Tetris!
Controls: Left/Right Arrow keys to move left or right Up/Space to rotate
Try beating the High Score!
To play, go to the page where you see this file and click "Clone" or "Code" on the top - right hand side. Then download to zip folder, extract it and run main.py!
Please leave your feedback in the comments, star the project and follow me!
Download Python Here: https://www.python.org/downloads/
Downloading Pygame Tutorial: https://www.youtube.com/watch?v=AdUZArA-kZw
왼쪽 화살표 키: 왼쪽으로 이동
오른쪽 화살표 키: 오른쪽으로 이동
위쪽 화살표 키 , Space키 : 블럭의 모양 변경
아래 화살표 키: 블럭 떨어지는 속도증가
C키 : 다른 모양의 블럭으로 변경
Z키 : 블럭 왼쪽으로 회전
X키 : 블럭 오른쪽으로 회전
한 줄이 모두 블럭으로 채워지면 +10점을 얻는다. 150점을 얻으면 승리한다.
- Setup Development Environments
- Install Python
- Go to Python Download site
- Once the site is open, select Download Python 3.x.x or Select which version of Python you would like to use from the under "Looking for a specific release?". We recommend using Python 3.10.0 for this project. Once you've determined which version you would like to install, select Download and Open it.
- Install Pygame
- open (Linux/mac) Terminal / (Windows) PowerShell
- give the command
pip install pygame
- check Whether PyGame is Working or not.
- open a new Terminal and Enter
python
- Enter
import pygame
- open a new Terminal and Enter
- Install Python
- Class / Functions