You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An argument, e.g., direction_deg,to arcade.camera.grips.ScreenShake2D which sets a constant angle for the shaking instead of changing it (_current_dir) randomly. If the argument is not provided(e.g., it is None), then the behavior is the same as now.
What would it help with?
Sometimes, one wants to have a directed shake. One common usecase that often appears in commercial platformers is a vertical screenshake when a heavy enemy lands on the ground. This would be a backwards compatible change that would make ScreenShake2D more versatile.
Currently, I am subclassing ScreenShake2D to implement this myself for directed shakes, but using regular ScreenShake2D for non-directed shakes.
The text was updated successfully, but these errors were encountered:
Enhancement request:
What should be added/changed?
An argument, e.g.,
direction_deg
,toarcade.camera.grips.ScreenShake2D
which sets a constant angle for the shaking instead of changing it (_current_dir
) randomly. If the argument is not provided(e.g., it isNone
), then the behavior is the same as now.What would it help with?
Sometimes, one wants to have a directed shake. One common usecase that often appears in commercial platformers is a vertical screenshake when a heavy enemy lands on the ground. This would be a backwards compatible change that would make
ScreenShake2D
more versatile.Currently, I am subclassing
ScreenShake2D
to implement this myself for directed shakes, but using regularScreenShake2D
for non-directed shakes.The text was updated successfully, but these errors were encountered: