Compare commits
6 Commits
06fe72d8db
...
0.1
Author | SHA1 | Date | |
---|---|---|---|
abaeb3be9a | |||
dff4ae487a | |||
5c830fd828 | |||
a46c07af8b | |||
338371f443 | |||
a95463438e |
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
Tetris clone made with Python and Arcade graphic library
|
Tetris clone made with Python and Arcade graphic library
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* [Python](https://www.python.org/) 3.6 or upper
|
* [Python](https://www.python.org/) 3.6 or upper
|
||||||
@ -31,5 +33,5 @@ Use key name from [arcade.key package](http://arcade.academy/arcade.key.html).
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
python -m pip install -r build-requirements.txt
|
python -m pip install -r build-requirements.txt
|
||||||
python setup.py build
|
python setup.py bdist
|
||||||
```
|
```
|
@ -92,6 +92,7 @@ class MinoSprite(arcade.Sprite):
|
|||||||
self.set_texture(0)
|
self.set_texture(0)
|
||||||
|
|
||||||
def refresh(self, x, y, prelocked=False):
|
def refresh(self, x, y, prelocked=False):
|
||||||
|
self.scale = self.window.scale
|
||||||
size = MINO_SIZE * self.scale
|
size = MINO_SIZE * self.scale
|
||||||
self.left = self.window.matrix_bg.left + x * size
|
self.left = self.window.matrix_bg.left + x * size
|
||||||
self.bottom = self.window.matrix_bg.bottom + y * size
|
self.bottom = self.window.matrix_bg.bottom + y * size
|
||||||
|
@ -1 +1 @@
|
|||||||
cx-freeze
|
arcade cx-freeze
|
37
setup.py
37
setup.py
@ -9,18 +9,35 @@ else:
|
|||||||
base = None
|
base = None
|
||||||
icon = None
|
icon = None
|
||||||
|
|
||||||
setup(
|
excludes = [
|
||||||
name="TetrArcade",
|
"tkinter",
|
||||||
version="0.2-dev",
|
"PyQt4",
|
||||||
description="Tetris clone",
|
"PyQt5",
|
||||||
author="adrienmalin",
|
"PySide",
|
||||||
executables=[Executable(script="TetrArcade.py", icon=icon, base=base)],
|
"PySide2"
|
||||||
options={
|
]
|
||||||
|
|
||||||
|
executable = Executable(
|
||||||
|
script = "TetrArcade.py",
|
||||||
|
icon = icon,
|
||||||
|
base = base,
|
||||||
|
shortcutName="TetrArcade",
|
||||||
|
shortcutDir="DesktopFolder"
|
||||||
|
)
|
||||||
|
|
||||||
|
options = {
|
||||||
"build_exe": {
|
"build_exe": {
|
||||||
"packages": ["arcade", "pyglet"],
|
"packages": ["arcade", "pyglet"],
|
||||||
"excludes": ["tkinter", "PyQt4", "PyQt5", "PySide", "PySide2"],
|
"excludes": excludes,
|
||||||
"include_files": "res",
|
"include_files": "res",
|
||||||
"silent": True,
|
"silent": True
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
setup(
|
||||||
|
name = "TetrArcade",
|
||||||
|
version = "0.1",
|
||||||
|
description = "Tetris clone",
|
||||||
|
author = "AdrienMalin",
|
||||||
|
executables = [executable],
|
||||||
|
options = options,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user