Skip to content

Tetris create with pygame (project №2 for Yandex Lyceum)

Notifications You must be signed in to change notification settings

Veter-ok/pygame-tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris

Tetris was created with Pygame

Quick Start

git clone https://github.com/Veter-ok/pygame-tetris.git
cd pygame-tetris
pip install -r requirements.txt
python3 main.py

Description

First of all you`ll see main screen, where you need enter your name to remember score

screenshot-1

Then tap to space and start to play

screenshot-2

Create .app file

pip install py2app
touch setup.py

Put this code to setup.py

from setuptools import setup

APP = ['main.py']
DATA_FILES = [('imgs', ['./imgs/logo.jpg'])]
OPTIONS = {
	'packages': ['pygame'],
	'argv_emulation': True	
}
PY_MODULE = ['blocks.py', 'board.py', 'tools.py', 'constants.py']

setup(
	app=APP,
    data_files=DATA_FILES,
	py_modules=PY_MODULE,
	name="Tetris",
	options={'py2app': OPTIONS}
)

And run build

python setup.py py2app

Tetris.app will be in ./dist

Thank you for attention

About

Tetris create with pygame (project №2 for Yandex Lyceum)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages