Pecrs

Latest version: v0.35

Safety actively analyzes 629564 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.03

Major overhaul.
Vectors are removed and Shapes have been redesigned to work seamlessly with pyglet sprites.
Collider redesigned to work without Vector or Shape types, given better methods for working with Shapes and Bodies.
Space reworked to compensate for the Collider redesign. Methods renamed to match.
Controller reworked to function with the new Space.
Remove constants.py

0.02

Controller now defaults Space to 256, previous no default.
Expand documentation for controller.
New method Controller.resize_space changes the size of the Space and replace.
New method Controller.add_space adds a body to the space.
Remove Controller.factory - This is confusing and not needed for most games, while easy to implement for those that do need it.
Remove Controller.make_key()
Remove Body.key
Remove Body.state - Unused in the base system, easy to implment for users that want it.
Changed method signature Controller.make() now takes a shape allowing it to work with generic bodies instead of subclassed bodies.
Rename method Space.get_body() is now Space.colliding_with()
Rename method Space.get() is now Space.colliding_at()
quickstart.py completely rewritten.
example.py updated to work with changes
test.py updated to work with changes

0.01

update documentation

vector.py
angle related functions have been changed in name
angleto now angle_rad
angle is same as angleto but converts value to degrees
anglepoint now angle_point
angle now angle_self

controller.py
push(body, x, y) added
on_push(body, x, y) added
moving(body) changed to start(body)
on_moving(body) change to on_start(body)

on_area(body, start) signature changed to include start area
on_place(body, start) signature changed to include start location


body.py
push(x, y) added

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.