This commit is contained in:
dan63047 2021-05-22 19:39:54 +03:00
commit 28d7f6d291
8 changed files with 1180 additions and 0 deletions

3
.idea/.gitignore vendored Executable file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml Executable file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Executable file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/pygame-tetris.iml" filepath="$PROJECT_DIR$/.idea/pygame-tetris.iml" />
</modules>
</component>
</project>

10
.idea/pygame-tetris.iml Executable file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.9" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

BIN
PressStart2P-vaV7.ttf Executable file

Binary file not shown.

68
test.py Executable file
View File

@ -0,0 +1,68 @@
def speed_and_lines_for_levels(level):
if level == 0:
return 48, 10
elif level == 1:
return 43, 20
elif level == 2:
return 38, 30
elif level == 3:
return 33, 40
elif level == 4:
return 28, 50
elif level == 5:
return 23, 60
elif level == 6:
return 18, 70
elif level == 7:
return 13, 80
elif level == 8:
return 8, 90
elif level == 9:
return 6, 100
elif 10 <= level <= 12:
return 5, 100
elif level == 11:
return 5, 100
elif level == 12:
return 5, 100
elif level == 13:
return 43, 100
elif level == 14:
return 43, 100
elif level == 15:
return 43, 100
elif level == 16:
return 43, 110
elif level == 17:
return 43, 120
elif level == 18:
return 43, 130
elif level == 19:
return 43, 140
elif level == 20:
return 43, 150
elif level == 21:
return 43, 160
elif level == 22:
return 43, 170
elif level == 23:
return 43, 180
elif level == 24:
return 43, 190
elif level == 25:
return 43, 200
elif level == 26:
return 43, 200
elif level == 27:
return 43, 200
elif level == 28:
return 1, 200
else:
return 1, 200
print(speed_and_lines_for_levels(9))
print(speed_and_lines_for_levels(10))
print(speed_and_lines_for_levels(11))
print(speed_and_lines_for_levels(12))
print(speed_and_lines_for_levels(13))

1081
tetris-main.py Executable file

File diff suppressed because it is too large Load Diff