Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Feature Request - Event Recording Enhancements #2948

Closed
MatthewOwens opened this issue Mar 3, 2023 · 4 comments
Closed

[core] Feature Request - Event Recording Enhancements #2948

MatthewOwens opened this issue Mar 3, 2023 · 4 comments
Labels
enhancement This is an improvement of some feature

Comments

@MatthewOwens
Copy link
Contributor

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.

@raysan5
Copy link
Owner

raysan5 commented Mar 3, 2023

@MatthewOwens Thanks for your feedback! I had almost forgoten about the Event Recording System, it's still in experimental state and it has not been reviewed in several years. I will give it a review after raylib 4.5 release!

@raysan5 raysan5 added the enhancement This is an improvement of some feature label Mar 3, 2023
@varshneydevansh
Copy link

I am looking to contribute to this project, is there any good place where I can start from? =)

@raysan5
Copy link
Owner

raysan5 commented Oct 14, 2023

@varshneydevansh For the event reocrding system there is already a PR proposal and I'm reviewing it myself.

@raysan5
Copy link
Owner

raysan5 commented Oct 26, 2023

Implemented in commit 99dac54

@raysan5 raysan5 closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an improvement of some feature
Projects
None yet
Development

No branches or pull requests

3 participants