Documentation
¶
Overview ¶
Package record captures gameplay frames and writes an animated GIF. It exists so any Collider game can produce a shareable clip with zero tooling: set COLLIDER_RECORD=demo.gif, play, close the window.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder accumulates downscaled palettized frames and encodes them on Save. All methods run on the game loop; nothing is concurrent.
func (*Recorder) Save ¶
func (r *Recorder) Save()
Save encodes the captured frames as an animated GIF.
func (*Recorder) ShouldCapture ¶
ShouldCapture throttles capture to the GIF frame rate regardless of the display's refresh rate.
Click to show internal directories.
Click to hide internal directories.