CPFadeShimmerLogoScene
A scene that displays CosPlay logo with shimmering colors for a few seconds using fade in and fade out shaders.
Value parameters
- bgPx
-
Background pixel of the scene.
- colors
-
Logo will shimmer with these colors. Typically, these should be the game's primary colors.
- dim
-
Optional dimension of the scene. Note that if dimension is
None
then scene will adapt to the terminal dimension on each frame. That means that the scene's canvas on which all scene objects are rendered can change its size from frame to frame. In such case, make sure that all scene objects take this into account in their rendering routines. - fadeInMs
-
Optional fade in duration in milliseconds. Default value is 2000.
- fadeOutMs
-
Optional fade out duration in milliseconds. Default value is 1000.
- id
-
ID of the scene.
- nextSc
-
ID of the next scene to switch to once this scene has finished its shimmering logo effect.
- shimmerKeyFrame
-
Optional shimmer shader keyframe. Default value is 2.
Attributes
- See also
- Source
- CPFadeShimmerLogoScene.scala
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
-
CPGameObject -> Any
- Inherited from:
- CPGameObject
- Source
- CPGameObject.scala
Background color of the background pixel.
Gets background pixel of this scene. Note that background pixel always has its background color defined.
Gets background pixel of this scene. Note that background pixel always has its background color defined.
Attributes
- Inherited from:
- CPScene
- Source
- CPScene.scala
Gets mutable camera panning descriptor associated with this scene. By default, the camera panning is not attached to any scene object. You need to configure the returning camera descriptor if you need camera tracking.
Gets mutable camera panning descriptor associated with this scene. By default, the camera panning is not attached to any scene object. You need to configure the returning camera descriptor if you need camera tracking.
Attributes
- Inherited from:
- CPScene
- Source
- CPScene.scala
Gets this scene dimension.
Gets unique ID of this game object.
Gets unique ID of this game object.
Attributes
- Inherited from:
- CPGameObject
- Source
- CPGameObject.scala
Gets current lifecycle state.
Gets optional set of organizational tags. Note that by default the set of tags is empty.
Gets optional set of organizational tags. Note that by default the set of tags is empty.
Attributes
- See also
- Inherited from:
- CPGameObject
- Source
- CPGameObject.scala
Callback on lifecycle object activation. Default implementation is no-op.
Callback on lifecycle object activation. Default implementation is no-op.
Attributes
- See also
-
CPLifecycle.State.LF_ACTIVE
- Inherited from:
- CPLifecycle
- Source
- CPLifecycle.scala
Callback on lifecycle object deactivation. Default implementation is no-op.
Callback on lifecycle object deactivation. Default implementation is no-op.
Attributes
- See also
-
CPLifecycle.State.LF_INACTIVE
- Inherited from:
- CPLifecycle
- Source
- CPLifecycle.scala
Callback on lifecycle object start. Default implementation is no-op.
Callback on lifecycle object start. Default implementation is no-op.
Attributes
- See also
-
CPLifecycle.State.LF_STARTED
- Inherited from:
- CPLifecycle
- Source
- CPLifecycle.scala
Callback on lifecycle object stop. Default implementation is no-op.
Callback on lifecycle object stop. Default implementation is no-op.
Attributes
- See also
-
CPLifecycle.State.LF_STOPPED
- Inherited from:
- CPLifecycle
- Source
- CPLifecycle.scala
Concrete fields
Attributes
- Source
- CPFadeShimmerLogoScene.scala