-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Feature Request Summary
I'm currently developing a game wherein Raylib's event recording/playing features would be very helpful for creating an arcade-style attract mode and saving replays of successful runs.
Start/Stop Recording via function call
Currently it is only possible to it ExportAutomationEvents
/PlayAutomationEvents
with F11/F9, adding something like BeginEventRecording(char *fileName)
, StopEventRecording
and PlayEventRecording(char *fileName)
.
Specifying I/O File
Passing a fileName
parameter to BeginEventRecording
and PlayEventRecording
could be used as an alternative to the hard-coded eventsrec.rep
Toggleable DrawText calls while recording/playing events
Currently when recording or playing an event file, DrawText
is called. I think that if this exposed this should be toggleable with either a boolean passed to BeginEventRecording
/PlayEventRecording
or via a compile-time define.
Concerns
I understand that this is currently an experimental feature in Raylib, and that there is a TODO to determine how PlayAutomationEvents
should interact with PollInputEvents
. If this feature is rejected on these grounds I understand and will maintain my own branch. Otherwise I'd be happy to implement the feature described above.