Skip to content

2021-HYU-opensource/Team3_Tertris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

Tertris

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

사용 방법 - Korean

왼쪽 화살표 키: 왼쪽으로 이동

오른쪽 화살표 키: 오른쪽으로 이동

위쪽 화살표 키 , Space키 : 블럭의 모양 변경

아래 화살표 키: 블럭 떨어지는 속도증가

C키 : 다른 모양의 블럭으로 변경

Z키 : 블럭 왼쪽으로 회전

X키 : 블럭 오른쪽으로 회전

한 줄이 모두 블럭으로 채워지면 +10점을 얻는다. 150점을 얻으면 승리한다.

개발 매뉴얼

Contents

  1. Setup Development Environments
    1. Install Python
      1. Go to Python Download site
      2. 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.
    2. Install Pygame
      1. open (Linux/mac) Terminal / (Windows) PowerShell
      2. give the command pip install pygame
      3. check Whether PyGame is Working or not.
        1. open a new Terminal and Enter python
        2. Enter import pygame
  2. Class / Functions
    1. class Piece(object)
      • def __init__(self, x, y, shape)
      • 좌표, 모양을 가지는 객체
    2. def create_grid(locked_pos={})
      • 빈 그리드 생성
      • return list[20][10]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published