EmergentOrganization / cell-rpg

:black_square_button: connect to a universe where cellular automata have run rampant
http://emergentorganization.github.io/bridge/
Other
12 stars 1 forks source link

CamShake #110

Closed BrianErikson closed 8 years ago

BrianErikson commented 8 years ago

As I was going through TODOs, I noticed that the camshake doesn't actually work? TODO!

7yl4r commented 8 years ago

Yes! This is weird, but if you turn it on fps goes wayyyy down. Might be an easy fix I just haven't looked at it yet.

On Tue, Jun 7, 2016, 3:03 PM Brian Erikson notifications@github.com wrote:

As I was going through TODOs, I noticed that the camshake doesn't actually work? TODO!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EmergentOrganization/cell-rpg/issues/110, or mute the thread https://github.com/notifications/unsubscribe/ABAK_jzAqQ40KfaZThdg8DXrjd1mjq2_ks5qJcCPgaJpZM4IwQLo .

BrianErikson commented 8 years ago

To explain, the camShake was being overridden by the camFollow method. To fix this, I altered the shake method to push a task to an array which is ran during the processing of the CameraSystem class. I also added a Vector2 gameCamDelta to aid in the clarity of this, which actually moves the camera in the end method of the system.