fix resize error since texture use
This commit is contained in:
parent
a95463438e
commit
338371f443
@ -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
|
||||||
|
4
setup.py
4
setup.py
@ -11,7 +11,7 @@ else:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="TetrArcade",
|
name="TetrArcade",
|
||||||
version="0.2-dev",
|
version="0.1",
|
||||||
description="Tetris clone",
|
description="Tetris clone",
|
||||||
author="adrienmalin",
|
author="adrienmalin",
|
||||||
executables=[Executable(script="TetrArcade.py", icon=icon, base=base)],
|
executables=[Executable(script="TetrArcade.py", icon=icon, base=base)],
|
||||||
@ -21,6 +21,8 @@ setup(
|
|||||||
"excludes": ["tkinter", "PyQt4", "PyQt5", "PySide", "PySide2"],
|
"excludes": ["tkinter", "PyQt4", "PyQt5", "PySide", "PySide2"],
|
||||||
"include_files": "res",
|
"include_files": "res",
|
||||||
"silent": True,
|
"silent": True,
|
||||||
|
"shortcutDir": "AdrienMalin",
|
||||||
|
"shortcutName": "TetrArcade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user