gamengine3d 1.4.0__tar.gz → 1.5.1__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.4.0
3
+ Version: 1.5.1
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
@@ -112,6 +112,10 @@ class ScheduledCaller:
112
112
 
113
113
  self.finished = self.n_times < 0
114
114
 
115
+ class RuntimeVars:
116
+ def __init__(self):
117
+ pass
118
+
115
119
  class Context:
116
120
  def __init__(self):
117
121
  self.functions: Functions = Functions()
@@ -133,7 +137,7 @@ class Context:
133
137
  self.delays: list[Delay] = []
134
138
  self.delay_vars: list[DelayVar] = []
135
139
  self.scheduled_callers: list[ScheduledCaller] = []
136
- self.runtime_vars = {}
140
+ self.runtime_vars = RuntimeVars()
137
141
  self.exit = False
138
142
 
139
143
  def on_key_press(self, key, callback, args=None, dt=False):
@@ -626,8 +626,9 @@ class Script:
626
626
  if self.instance is None:
627
627
  return
628
628
 
629
- func = getattr(self.instance, func_name)
630
- func()
629
+ if hasattr(self.instance, func_name):
630
+ func = getattr(self.instance, func_name)
631
+ func()
631
632
 
632
633
  class EngineError(Exception):
633
634
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamengine3d
3
- Version: 1.4.0
3
+ Version: 1.5.1
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.4.0"
8
+ version = "1.5.1"
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