PyScene 1.0.8__tar.gz → 1.0.9__tar.gz

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.
Files changed (25) hide show
  1. {pyscene-1.0.8 → pyscene-1.0.9}/PKG-INFO +2 -2
  2. {pyscene-1.0.8 → pyscene-1.0.9}/README.md +1 -1
  3. {pyscene-1.0.8 → pyscene-1.0.9}/pyproject.toml +1 -1
  4. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/__init__.py +1 -1
  5. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/objs/Text.py +6 -0
  6. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/objs/animation.py +3 -0
  7. {pyscene-1.0.8 → pyscene-1.0.9}/.gitignore +0 -0
  8. {pyscene-1.0.8 → pyscene-1.0.9}/LICENSE +0 -0
  9. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/Collisions.py +0 -0
  10. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/Game.py +0 -0
  11. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/Keys.py +0 -0
  12. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/Math.py +0 -0
  13. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/Net.py +0 -0
  14. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/objs/Collision_shapes.py +0 -0
  15. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/objs/GameObj.py +0 -0
  16. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/objs/Shapes.py +0 -0
  17. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/objs/Timer.py +0 -0
  18. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/objs/__init__.py +0 -0
  19. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/utils/Assets.py +0 -0
  20. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/utils/Subscreen.py +0 -0
  21. {pyscene-1.0.8 → pyscene-1.0.9}/src/PyScene/utils/__init__.py +0 -0
  22. {pyscene-1.0.8 → pyscene-1.0.9}/test.py +0 -0
  23. {pyscene-1.0.8 → pyscene-1.0.9}/tests/flappy_bird.py +0 -0
  24. {pyscene-1.0.8 → pyscene-1.0.9}/tests/pause.png +0 -0
  25. {pyscene-1.0.8 → pyscene-1.0.9}/tests/testColl.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: PyScene
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: A python and pygame Game Engine
5
5
  Project-URL: Homepage, https://github.com/sfertig/PyScene
6
6
  Project-URL: Issues, https://github.com/sfertig/PyScene/issues
@@ -19,5 +19,5 @@ This is not a pygame wrapper, as it goed beyons the basic helper features and di
19
19
 
20
20
  Please Note: This engine is still in development and many features, like tilemaps and audio, are a work in progress. It also lack any form of documentation, I ask for patience as docs will be rolled out once the core features are more solidified.
21
21
 
22
- PyScene is in developement and API's may change offten, a fully stable version should come with v2.0.0, currently on v1.0.8
22
+ PyScene is in developement and API's may change offten, a fully stable version should come with v2.0.0, currently on v1.0.9
23
23
 
@@ -5,5 +5,5 @@ This is not a pygame wrapper, as it goed beyons the basic helper features and di
5
5
 
6
6
  Please Note: This engine is still in development and many features, like tilemaps and audio, are a work in progress. It also lack any form of documentation, I ask for patience as docs will be rolled out once the core features are more solidified.
7
7
 
8
- PyScene is in developement and API's may change offten, a fully stable version should come with v2.0.0, currently on v1.0.8
8
+ PyScene is in developement and API's may change offten, a fully stable version should come with v2.0.0, currently on v1.0.9
9
9
 
@@ -3,7 +3,7 @@ requires = ["hatchling >= 1.26"]
3
3
  build-backend = "hatchling.build"
4
4
  [project]
5
5
  name = "PyScene"
6
- version = "1.0.8"
6
+ version = "1.0.9"
7
7
  authors = [
8
8
  { name="Sam Fertig", email="sfertig007@gmail.com" },
9
9
  ]
@@ -1,6 +1,6 @@
1
1
  #imports
2
2
  "PyScene is a custom python + pygame framework / engine developed to streamline 2d game development."
3
- "Version: 1.0.8"
3
+ "Version: 1.0.9"
4
4
 
5
5
  from .Game import Game, Scene, handle_collision
6
6
  from .Math import *
@@ -37,6 +37,9 @@ class Text(GameObj):
37
37
  def render(self):
38
38
  if not self.visible: return
39
39
  Game.cam.draw_text(self.surface, self.rect, self.offset)
40
+ def render_to(self, surface):
41
+ if not self.visible: return
42
+ surface.blit(self.surface, self.rect)
40
43
 
41
44
  class Image(GameObj):
42
45
  def __init__(self, image, pos=Vector2D(0, 0), z_index=0, active=True, visible=True, offset=True, Global=False):
@@ -47,4 +50,7 @@ class Image(GameObj):
47
50
  def render(self):
48
51
  if not self.visible: return
49
52
  Game.cam.draw_image(self.image, self.pos, self.offset)
53
+ def render_to(self, surface):
54
+ if not self.visible: return
55
+ surface.blit(self.image, self.pos.to_int())
50
56
 
@@ -67,6 +67,9 @@ class Animation(GameObj):
67
67
  def render(self):
68
68
  if not self.visible: return
69
69
  Game.cam.draw_image(self.get_image(), self.pos, self.offset)
70
+ def render_to(self, screen):
71
+ if not self.visible: return
72
+ screen.blit(self.get_image(), self.pos.to_int())
70
73
 
71
74
  class AnimationManager(GameObj):
72
75
  def __init__(self, animations: dict[str, Animation], current_anim=None, z_index=0, active=True, visible=True, offset=True, Global=False):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes