-
Notifications
You must be signed in to change notification settings - Fork 4
Care package: game_change, rumble, allow extensions if needed, tidy stubs #22
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
Conversation
56a24da to
2d231a1
Compare
This is necessary for at least one GMS port (Victory Heat Rally)
Immediately return that the video ended Tidy up
cdeletre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've only minor remarks, with my CPP knowledge I don't see anything wrong.
|
|
||
| uint16_t left_motor = (uint16_t)(left * MAX_RUMBLE_F); | ||
| uint16_t right_motor = (uint16_t)(right * MAX_RUMBLE_F); | ||
| int duration_ms = (left_motor || right_motor) ? 10000 : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10000 ms is 10 s
It seems a bit mucho ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GameMaker doesn't pass a duration in its arguments, instead handing control to the developer to explicitly turn rumble off. Therefore we need to pass a duration to SDL in its place, but since we don't know how long a developer may want rumble to last, I went with a larger threshold opting for safety. I think if a dev has rumble lasting longer than a few seconds they're insane, but you never know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks for the explanation. That's what I suspected :)
Co-authored-by: Cyril Delétré <[email protected]>
|
I am rebasing, squashing and reviewing the patches, will give a heads up soon. |
|
Cherry picked into upstream |
This pull request is a care package that does the following:
game_changereimplementation (Deltarune launcher works)video_openand for now tells game that video ended immediately (verified with VHR which has a .mp4 logo file)