Skip to content

Transition component #34

@ojdon

Description

@ojdon

Having different transition effects such as fading for both in and out of a scene.

For example, for fading into a scene you would use something like this.convergame.transition.in('fade', '2', '#FFF') during the init() function for the scene. This will render a white rectangle over the canvas that will gradually decrease the opacity of the rectangle over 2 seconds. Obviously, you would want to set the transition time shorter as the game loop would have commenced in the background. (Similar behaviour to other game engines with transition effects built in).

We might need to have a callback parameter for doing the transitions for performing tasks such as calling the change scene once the transition animation has completed.

Thoughts?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions