pyscratch-pysc 2.0.0__py3-none-any.whl → 2.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyscratch/game_module.py +4 -2
- {pyscratch_pysc-2.0.0.dist-info → pyscratch_pysc-2.0.1.dist-info}/METADATA +4 -1
- {pyscratch_pysc-2.0.0.dist-info → pyscratch_pysc-2.0.1.dist-info}/RECORD +5 -5
- {pyscratch_pysc-2.0.0.dist-info → pyscratch_pysc-2.0.1.dist-info}/WHEEL +0 -0
- {pyscratch_pysc-2.0.0.dist-info → pyscratch_pysc-2.0.1.dist-info}/top_level.txt +0 -0
pyscratch/game_module.py
CHANGED
@@ -843,7 +843,7 @@ class Game:
|
|
843
843
|
def set_backdrops(self, images: List[pygame.Surface]):
|
844
844
|
"""
|
845
845
|
Set the list of all available backdrops. This function is meant to be run before the game start.
|
846
|
-
|
846
|
+
|
847
847
|
Example:
|
848
848
|
```python
|
849
849
|
# load the image into python
|
@@ -899,7 +899,9 @@ class Game:
|
|
899
899
|
"""
|
900
900
|
Change the backdrop by specifying the index of the backdrop.
|
901
901
|
"""
|
902
|
-
|
902
|
+
# backward compatibilty for v1
|
903
|
+
if isinstance(key, int):
|
904
|
+
key = str(key)
|
903
905
|
if key != self.__backdrop_key:
|
904
906
|
self.__backdrop_key = key
|
905
907
|
self.__backdrop_index = None if key is None else self.backdrop_indices_by_key[key]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pyscratch-pysc
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.1
|
4
4
|
Summary: A Python game development framework designed to provide an easy transitioning from Scratch to Python
|
5
5
|
Author-email: Daniel Ka-Wa Chan <kwdaniel525@protonmail.com>
|
6
6
|
License: MIT
|
@@ -24,6 +24,9 @@ For more information, see: https://kwdchan.github.io/pyscratch/
|
|
24
24
|
|
25
25
|
## Change History
|
26
26
|
### 12 Oct 2025
|
27
|
+
**v2.0.1**
|
28
|
+
Backward compatiblity for the integer-indexed backdrop in v1
|
29
|
+
|
27
30
|
**v2.0.0**
|
28
31
|
The backdrops are now indexed by keys instead of integers
|
29
32
|
|
@@ -210,7 +210,7 @@ examples/tutorial-day1/in-steps/5-backdrops/friend.py,sha256=ndgxw86A0iCg3ZY0otH
|
|
210
210
|
examples/tutorial-day1/in-steps/5-backdrops/main.py,sha256=rwqrJHLuS4bQGuDWo0NDN_1VOLBs0YrgOzmINEa_FtQ,575
|
211
211
|
pyscratch/__init__.py,sha256=CXCU5cYmovoV678NggRm5uMokd0l3MVakMq0XgyJA9o,2117
|
212
212
|
pyscratch/event.py,sha256=IVhXzQ4wm7Gk-q8uzY3v8Vs8w-jGE15Ec-ndpRrnJak,7439
|
213
|
-
pyscratch/game_module.py,sha256=
|
213
|
+
pyscratch/game_module.py,sha256=TEnRoRsR89UeAbf703uFcGW3C2wiWFLVZcIm3qvGMFE,56552
|
214
214
|
pyscratch/helper.py,sha256=Ni46g3dJPFohoLFpAlHfmK6xS9kfdeKStDxlyiJFc58,15549
|
215
215
|
pyscratch/sprite.py,sha256=uhSYunUvCc37ZuNrcPVTvUtfB4XhrxIXevsOvbER9ws,65439
|
216
216
|
pyscratch/tools/sprite_preview/main.py,sha256=M0xb9CXyhWzlysOnA04GUanjyMOho0WaKU6Rrs556Lk,817
|
@@ -233,7 +233,7 @@ pyscratch/tools/sprite_preview/right_panel/spritesheet_view.py,sha256=RTQzHBeK_E
|
|
233
233
|
pyscratch/tools/sprite_preview/right_panel/ss_select_corner.py,sha256=aDAgBhrgTErHxjc0wskvN1949D6lTr805lMshjuQd_0,5842
|
234
234
|
pyscratch/tools/sprite_preview/utils/input_box.py,sha256=1isrpnHG06O729kaL3cVrB3vmunAKEtGQswEF-HM41I,9175
|
235
235
|
pyscratch/tools/sprite_preview/utils/render_wrapped_file_name.py,sha256=FOmvfqa9qqNNikZSygswBUN15d4xFfOvVN7FjuJEUSQ,3186
|
236
|
-
pyscratch_pysc-2.0.
|
237
|
-
pyscratch_pysc-2.0.
|
238
|
-
pyscratch_pysc-2.0.
|
239
|
-
pyscratch_pysc-2.0.
|
236
|
+
pyscratch_pysc-2.0.1.dist-info/METADATA,sha256=pSpa7P8yssA6M3qctcpx_bqiQPOBXXuVANwH0VD0fv8,1247
|
237
|
+
pyscratch_pysc-2.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
238
|
+
pyscratch_pysc-2.0.1.dist-info/top_level.txt,sha256=wXgJXVC5K61iy-F-zWhWp2jmw5_PHaxCTNHO5PxR_YY,26
|
239
|
+
pyscratch_pysc-2.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|