GameBox 0.0.5__py3-none-any.whl → 0.0.6__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.
GameBox/basics/shapes.py CHANGED
@@ -1,4 +1,6 @@
1
1
  import pygame
2
+ from ..basics._core import GLOBAL
3
+
2
4
 
3
5
  class Rect:
4
6
  def __init__(self, pos, dim, color, width=0):
@@ -6,8 +8,9 @@ class Rect:
6
8
  self.color = color
7
9
  self.width = width
8
10
  self.rect = pygame.rect.Rect(pos, dim)
9
- def display(self, screen, dt):
10
- pygame.draw.rect(screen, self.color, self.rect, self.width)
11
+ self.screen = GLOBAL.screen
12
+ def display(self, dt):
13
+ pygame.draw.rect(self.screen, self.color, self.rect, self.width)
11
14
  def move(self, x, y, add=True):
12
15
  if add:
13
16
  self.pos.x+=x
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameBox
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: GameBox is a beginner-friendly Python package built on top of pygame, designed to make 2D game development faster and easier. It provides ready-to-use modules, utilities, and abstractions that let new developers create polished games without needing advanced coding knowledge—while still offering the flexibility for experienced coders to customize and extend.
5
5
  Author-email: Sam Fertig <sfertig007@gmail.com>
6
6
  License-Expression: MIT
@@ -6,14 +6,14 @@ GameBox/basics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  GameBox/basics/_core.py,sha256=fB6KRFp3p_wD_td2uc9ZRzo0qHgUQNJ8veCaH1_eIRc,1157
7
7
  GameBox/basics/camera.py,sha256=HwHITLEf-V4DUs-qW1lQ6uzaIaFg7kQqcGWou2IbqUY,377
8
8
  GameBox/basics/player.py,sha256=FBo-4HfqcLtbqg_JlYcs_ohZ0RRE19k8l-PjXdDGuCQ,9483
9
- GameBox/basics/shapes.py,sha256=XRVy_xbh1iPefC8IVlrZLq83zhj3d64tTF8JqJ9EcHM,932
9
+ GameBox/basics/shapes.py,sha256=cgS4IExqdS8Z56CdJCdhAEU41rBsWAjYzzgBuUnObjk,1003
10
10
  GameBox/entities/basicNPCs.py,sha256=kyatewGfEGUZjf1l58Xooza5qxuo3cYEXsZBj5R9_Cg,645
11
11
  GameBox/entities/basicTypes.py,sha256=H6Yn2duRK9P1WWRnq812g3JWBW71dBq3fINdllWW260,2714
12
12
  GameBox/inputs/BasicInput.py,sha256=6iBwl9l9V5dZYnihxtY0MV61Rq7uUYs1Ss4ezFcKCBo,324
13
13
  GameBox/sound/BasicSound.py,sha256=vZP62UipUzz0gZMLSHJkMyzmnnWbMaySbRfZLS-E_m0,1760
14
14
  GameBox/tilemap/editor.py,sha256=GvHFxkybq_vbG3LAFyJWgbKvtV3fniqFdC2ByBFANC0,11008
15
15
  GameBox/tilemap/tilemap.py,sha256=6V_gxmecrmjruhj12HMMwxZTKHeVbhTnqsrvjbAdKSE,5154
16
- gamebox-0.0.5.dist-info/METADATA,sha256=BQFXRtUbFMTHpoYrgbMyRbkuuml9v_g-nV_FqB1f2VM,1759
17
- gamebox-0.0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
- gamebox-0.0.5.dist-info/licenses/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
19
- gamebox-0.0.5.dist-info/RECORD,,
16
+ gamebox-0.0.6.dist-info/METADATA,sha256=QLK3BEb0pswmStBaEvbvDNtBbXCO_jruZkJr6-Ja4Uw,1759
17
+ gamebox-0.0.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
+ gamebox-0.0.6.dist-info/licenses/LICENSE,sha256=gcuuhKKc5-dwvyvHsXjlC9oM6N5gZ6umYbC8ewW1Yvg,35821
19
+ gamebox-0.0.6.dist-info/RECORD,,