crystalwindow 5.3__py3-none-any.whl → 5.4__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.
crystalwindow/gravity.py CHANGED
@@ -48,6 +48,7 @@ class Gravity:
48
48
  # Update gravity
49
49
  # -----------------------
50
50
  def update(self, dt=1, platforms=[]):
51
+ self.on_ground = False
51
52
  # Apply gravity (per frame, not dt scaled)
52
53
  self.obj.vel_y += self.force
53
54
  if self.obj.vel_y > self.terminal_velocity:
@@ -64,7 +65,9 @@ class Gravity:
64
65
  plat_h = getattr(plat, "height", 32)
65
66
 
66
67
  if (x + w > plat.x and x < plat.x + plat_w and
67
- y + h > plat.y and y < plat.y + plat_h):
68
+ y + h >= plat.y and y < plat.y and
69
+ self.obj.vel_y >= 0):
70
+
68
71
  # Land on top
69
72
  y = plat.y - h
70
73
  self.on_ground = True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crystalwindow
3
- Version: 5.3
3
+ Version: 5.4
4
4
  Summary: A Tkinter powered window + GUI toolkit made by Crystal (ME)! Easier apps, smoother UI and all-in-one helpers!, Gui, Buttons, FileHelper, Sprites, Animations, Colors, Math, Gravity, Camera, 3D and more!
5
5
  Home-page: https://pypi.org/project/crystalwindow/
6
6
  Author: CrystalBallyHereXD
@@ -16,7 +16,7 @@ crystalwindow/draw_rects.py,sha256=o7siET3y35N2LPeNBGe8QhsQbOH8J-xF6fOUz07rymU,1
16
16
  crystalwindow/draw_text_helper.py,sha256=qv5fFCuTCKWeGDk9Z_ZpOzrTFP8YYwlgQrrorwrq9Hg,1298
17
17
  crystalwindow/draw_tool.py,sha256=1YYEqjmgt4HpV3S15sTjCSmcqgHup4fD8gskTkxU0t4,1638
18
18
  crystalwindow/fun_helpers.py,sha256=UHfveBTJ3NlgFd8ZbEJpHtQL-YUWiG7Hl9CWhT06VmQ,5144
19
- crystalwindow/gravity.py,sha256=pZJykZzO-mKVBPsZRP55nnlvUoYQfR29wPgJcI4IbBs,2904
19
+ crystalwindow/gravity.py,sha256=wqVQt1S9ECA69gHdN__xahnm7I4xsFreV5hBzRRN8so,2971
20
20
  crystalwindow/gui.py,sha256=9JA25IztgqSYN1NnWVKK99G0rlEosXf2ATWww2rUZIQ,5353
21
21
  crystalwindow/gui_ext.py,sha256=JctpNPr7gtGdro3csyUo9ft3FFArj3JhkVlgKF0lyME,3407
22
22
  crystalwindow/math.py,sha256=slOY3KQZ99VDMUMxsSJabMyRtJcwVzEyxR2RoXspHho,963
@@ -40,8 +40,8 @@ crystalwindow/gametests/sandbox.py,sha256=Oo2tU2N0y3BPVa6T5vs_h9N6islhQrjSrr_78X
40
40
  crystalwindow/gametests/squaremove.py,sha256=ei6DMnvcgpOhmxbGv-Yqmx5EqiZjKbVlZhI7YbT2hY8,643
41
41
  crystalwindow/gametests/testtttagain.py,sha256=oIhK9MGgMVly_W2lRwD9Hn9WyPdd8JnX2HGrLTGZdxY,373
42
42
  crystalwindow/gametests/windowtesting.py,sha256=_9X6wnV1-_X_PtNS-0zu-k209NtFIwAc4vpxLPp7V2o,97
43
- crystalwindow-5.3.dist-info/licenses/LICENSE,sha256=Gt5cJRchdNt0guxyQMHKsATN5PM5mjuDhdO6Gzs9qQc,1096
44
- crystalwindow-5.3.dist-info/METADATA,sha256=9idMbxFLS1FsRrERYM_3EdKxzsdk94uarm--gID2PpM,7523
45
- crystalwindow-5.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- crystalwindow-5.3.dist-info/top_level.txt,sha256=PeQSld4b19XWT-zvbYkvE2Xg8sakIMbDzSzSdOSRN8o,14
47
- crystalwindow-5.3.dist-info/RECORD,,
43
+ crystalwindow-5.4.dist-info/licenses/LICENSE,sha256=Gt5cJRchdNt0guxyQMHKsATN5PM5mjuDhdO6Gzs9qQc,1096
44
+ crystalwindow-5.4.dist-info/METADATA,sha256=6wY4T022wXZn77X8N6Mp-ufH454O0bKFp24tMrjvG9A,7523
45
+ crystalwindow-5.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ crystalwindow-5.4.dist-info/top_level.txt,sha256=PeQSld4b19XWT-zvbYkvE2Xg8sakIMbDzSzSdOSRN8o,14
47
+ crystalwindow-5.4.dist-info/RECORD,,