simple2d-3d 0.2.7__tar.gz → 0.2.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.
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/PKG-INFO +1 -1
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/pyproject.toml +1 -1
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d/render.py +2 -2
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d.egg-info/PKG-INFO +1 -1
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/LICENSE +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/README.md +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/setup.cfg +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d/__init__.py +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d/colors.py +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d/gui.py +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d/setup.py +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d.egg-info/SOURCES.txt +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d.egg-info/dependency_links.txt +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d.egg-info/requires.txt +0 -0
- {simple2d_3d-0.2.7 → simple2d_3d-0.2.9}/simple2d_3d.egg-info/top_level.txt +0 -0
|
@@ -454,7 +454,7 @@ class ParticleSystem:
|
|
|
454
454
|
def update(self, dt):
|
|
455
455
|
self.particles = [p for p in self.particles if p.update(dt)]
|
|
456
456
|
|
|
457
|
-
|
|
457
|
+
def draw(self, renderer):
|
|
458
458
|
for p in self.particles:
|
|
459
459
|
alpha = max(0, min(255, int(p.life * 255)))
|
|
460
460
|
|
|
@@ -519,4 +519,4 @@ class ParticleSystem:
|
|
|
519
519
|
self.dst_rect.h = int(p.size * 2)
|
|
520
520
|
|
|
521
521
|
# --- 4. Render it ---
|
|
522
|
-
sdl2.SDL_RenderCopy(renderer, tex, None, ctypes.byref(dst_rect))
|
|
522
|
+
sdl2.SDL_RenderCopy(renderer, tex, None, ctypes.byref(self.dst_rect))
|
|
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
|