PyScene 1.1.6__tar.gz → 1.1.7__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.
- {pyscene-1.1.6 → pyscene-1.1.7}/PKG-INFO +2 -2
- {pyscene-1.1.6 → pyscene-1.1.7}/README.md +1 -1
- {pyscene-1.1.6 → pyscene-1.1.7}/pyproject.toml +1 -1
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/Game.py +3 -8
- {pyscene-1.1.6 → pyscene-1.1.7}/.gitignore +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/LICENSE +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/Collisions.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/Keys.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/Math.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/Net.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/__init__.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/__main__.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/objs/Collision_shapes.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/objs/GameObj.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/objs/Shapes.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/objs/Text.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/objs/Tilemap.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/objs/Timer.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/objs/__init__.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/objs/animation.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/tools/manager_gui.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/utils/Assets.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/utils/Subscreen.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/src/PyScene/utils/__init__.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/test.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/tests/flappy_bird.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/tests/pause.png +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/tests/testColl.py +0 -0
- {pyscene-1.1.6 → pyscene-1.1.7}/tests/tileset.png +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: PyScene
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.7
|
|
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
|
|
@@ -21,7 +21,7 @@ There is also a GUI editor being developed alongside PyScene that can be veiwed
|
|
|
21
21
|
|
|
22
22
|
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.
|
|
23
23
|
|
|
24
|
-
PyScene is in developement and API's may change offten, a fully stable version should come with v2.0.0, currently on v1.1.
|
|
24
|
+
PyScene is in developement and API's may change offten, a fully stable version should come with v2.0.0, currently on v1.1.7
|
|
25
25
|
|
|
26
26
|
Getting Started Basics:
|
|
27
27
|
|
|
@@ -6,7 +6,7 @@ There is also a GUI editor being developed alongside PyScene that can be veiwed
|
|
|
6
6
|
|
|
7
7
|
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.
|
|
8
8
|
|
|
9
|
-
PyScene is in developement and API's may change offten, a fully stable version should come with v2.0.0, currently on v1.1.
|
|
9
|
+
PyScene is in developement and API's may change offten, a fully stable version should come with v2.0.0, currently on v1.1.7
|
|
10
10
|
|
|
11
11
|
Getting Started Basics:
|
|
12
12
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import pygame
|
|
2
|
-
from pygame._sdl2 import Window
|
|
3
2
|
import sys
|
|
4
3
|
import os
|
|
5
4
|
|
|
@@ -13,7 +12,7 @@ class _game:
|
|
|
13
12
|
pygame.init()
|
|
14
13
|
pygame.font.init()
|
|
15
14
|
|
|
16
|
-
def init(self, width, height, title, bg="black", fps=60, fullscreen=False,
|
|
15
|
+
def init(self, width, height, title, bg="black", fps=60, fullscreen=False, _no_dir=False):
|
|
17
16
|
self.__on = True
|
|
18
17
|
self.width = width
|
|
19
18
|
self.height = height
|
|
@@ -31,12 +30,8 @@ class _game:
|
|
|
31
30
|
self.optimize_static_colliders: bool = False
|
|
32
31
|
|
|
33
32
|
#screen
|
|
34
|
-
if fullscreen: self.screen = pygame.display.set_mode((width, height)
|
|
35
|
-
|
|
36
|
-
self.screen = pygame.display.set_mode((width, height), pygame.SCALED | pygame.RESIZABLE)
|
|
37
|
-
sdl2_window = Window.from_display_module()
|
|
38
|
-
sdl2_window.maximize()
|
|
39
|
-
else: self.screen = pygame.display.set_mode((self.width, self.height))
|
|
33
|
+
if not fullscreen: self.screen = pygame.display.set_mode((self.width, self.height))
|
|
34
|
+
else: self.screen = pygame.display.set_mode((width, height), pygame.SCALED | pygame.FULLSCREEN)
|
|
40
35
|
pygame.display.set_caption(self.title)
|
|
41
36
|
|
|
42
37
|
Keys._add_net(self) #to accsess events
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|