e2D 1.4.10__tar.gz → 1.4.11__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.
- {e2d-1.4.10 → e2d-1.4.11}/PKG-INFO +1 -1
- {e2d-1.4.10 → e2d-1.4.11}/e2D/__init__.py +7 -8
- {e2d-1.4.10 → e2d-1.4.11}/e2D/envs.py +1 -0
- {e2d-1.4.10 → e2d-1.4.11}/e2D/plots.py +1 -1
- {e2d-1.4.10 → e2d-1.4.11}/e2D.egg-info/PKG-INFO +1 -1
- {e2d-1.4.10 → e2d-1.4.11}/setup.cfg +1 -1
- {e2d-1.4.10 → e2d-1.4.11}/LICENSE +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/README.md +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/e2D/cvb.py +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/e2D/utils.py +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/e2D/winrec.py +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/e2D.egg-info/SOURCES.txt +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/e2D.egg-info/dependency_links.txt +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/e2D.egg-info/requires.txt +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/e2D.egg-info/top_level.txt +0 -0
- {e2d-1.4.10 → e2d-1.4.11}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: e2D
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.11
|
|
4
4
|
Summary: Python library for 2D games. Streamlines dev with keyboard/mouse input, vector calculations, color manipulation, and collision detection. Simplify game creation and unleash creativity!
|
|
5
5
|
Home-page: https://github.com/marick-py/e2D
|
|
6
6
|
Author: Riccardo Mariani
|
|
@@ -1168,15 +1168,14 @@ def get_points(position:Vector2D, size:Vector2D, rotation:int|float=0, pos_in_mi
|
|
|
1168
1168
|
clockwise order (A, B, D, C), otherwise, they will be returned in counterclockwise order (A, B, C, D).
|
|
1169
1169
|
"""
|
|
1170
1170
|
if pos_in_middle:
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
position.point_from_degs(rotation + V2z.angle_to(size/2), V2z.distance_to(size/2))]
|
|
1171
|
+
d,a = size.length()/2, size.angle()
|
|
1172
|
+
d1, d2 = V2z.point_from_rads(rotation+a, d), V2z.point_from_rads(rotation-a, d)
|
|
1173
|
+
A, B, C, D = position+d1, position+d2, position-d2, position-d1
|
|
1175
1174
|
else:
|
|
1176
|
-
A, B, C, D =
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1175
|
+
A, B, C, D = position.copy(),\
|
|
1176
|
+
position.point_from_rads(rotation + V2z.angle_to(Vector2D(size.x, 0)), V2z.distance_to(Vector2D(size.x, 0))),\
|
|
1177
|
+
position.point_from_rads(rotation + V2z.angle_to(Vector2D(0, size.y)), V2z.distance_to(Vector2D(0, size.y))),\
|
|
1178
|
+
position.point_from_rads(rotation + V2z.angle_to(size), V2z.distance_to(size))
|
|
1180
1179
|
points = (A, B, C, D) if not clockwise_return else (A, B, D, C)
|
|
1181
1180
|
return points if not return_list else tuple(x() for x in points)
|
|
1182
1181
|
|
|
@@ -509,7 +509,7 @@ class Plot:
|
|
|
509
509
|
self.update_grid()
|
|
510
510
|
self.render()
|
|
511
511
|
|
|
512
|
-
def get_humanoid_zoom(self) ->
|
|
512
|
+
def get_humanoid_zoom(self) -> V2|Vector2D:
|
|
513
513
|
return 2 ** (-.1*self.current_zoom)
|
|
514
514
|
|
|
515
515
|
def focus(self, center:V2|Vector2D|None=None, zoom:float|Vector2D|V2|None=None) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: e2D
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.11
|
|
4
4
|
Summary: Python library for 2D games. Streamlines dev with keyboard/mouse input, vector calculations, color manipulation, and collision detection. Simplify game creation and unleash creativity!
|
|
5
5
|
Home-page: https://github.com/marick-py/e2D
|
|
6
6
|
Author: Riccardo Mariani
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = e2D
|
|
3
|
-
version = 1.4.
|
|
3
|
+
version = 1.4.11
|
|
4
4
|
author = Riccardo Mariani
|
|
5
5
|
author_email = ricomari2006@gmail.com
|
|
6
6
|
description = Python library for 2D games. Streamlines dev with keyboard/mouse input, vector calculations, color manipulation, and collision detection. Simplify game creation and unleash creativity!
|
|
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
|