java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | co.megacool.megacool.OverflowStrategy |
The overflow strategy chosen for a recording determines how long recordings are compressed down
to the target number of frames. The target length is set through
maxFrames(int)
(the default is 50).
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OverflowStrategy | HIGHLIGHT | This strategy will select the most interesting part (highlight) of the unfolding gameplay by analyzing changes in intensity (usually represented as changes in point value) over time. | |||||||||
OverflowStrategy | LATEST | This strategy keeps the newest frames recorded. | |||||||||
OverflowStrategy | TIMELAPSE | This strategy will speed up the recording to fit within the target number of frames. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | toString() | ||||||||||
static OverflowStrategy | valueOf(String name) | ||||||||||
final static OverflowStrategy[] | values() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
This strategy will select the most interesting part (highlight) of the unfolding gameplay by analyzing changes in intensity (usually represented as changes in point value) over time.
It depends upon having the developer call the Megacool.registerScoreChange during their game in order to keep track of changes in point value/intensity
This strategy keeps the newest frames recorded. This usually works best when the highlight of the recording is the final moments, like a racing game.
This strategy will speed up the recording to fit within the target number of frames. The
resulting length will be between 1.33x and 0.66x of the number of frames set with
maxFrames(int)
.
This works well when something is constructed over a longer period of time, like a city built from scratch, or a drawing. This also works well for games like 2048, where seeing the long play reveals the player's strategy.