gamengine3d 1.5.1__tar.gz → 1.5.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamengine3d
3
- Version: 1.5.1
3
+ Version: 1.5.2
4
4
  Summary: A Unity-like 3D engine in Python using pygame
5
5
  Author-email: Samarth Javagal <samarthjavagal@gmail.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -2,6 +2,7 @@ from .game_objects import GameObject
2
2
  from .helper import Color, vector3d, Light, Camera, Renderer
3
3
  from pygame.time import Clock
4
4
  import time
5
+ import importlib
5
6
 
6
7
  class Functions:
7
8
  def __init__(self):
@@ -113,8 +114,11 @@ class ScheduledCaller:
113
114
  self.finished = self.n_times < 0
114
115
 
115
116
  class RuntimeVars:
116
- def __init__(self):
117
- pass
117
+ def from_settings(self, module_name):
118
+ module = importlib.import_module(module_name)
119
+ for attr_name in dir(module):
120
+ if not attr_name.startswith("__"):
121
+ setattr(self, attr_name, getattr(module, attr_name))
118
122
 
119
123
  class Context:
120
124
  def __init__(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamengine3d
3
- Version: 1.5.1
3
+ Version: 1.5.2
4
4
  Summary: A Unity-like 3D engine in Python using pygame
5
5
  Author-email: Samarth Javagal <samarthjavagal@gmail.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "gamengine3d"
8
- version = "1.5.1"
8
+ version = "1.5.2"
9
9
  description = "A Unity-like 3D engine in Python using pygame"
10
10
  authors = [
11
11
  { name = "Samarth Javagal", email = "samarthjavagal@gmail.com" }
File without changes
File without changes
File without changes