-
Notifications
You must be signed in to change notification settings - Fork 0
Sideways jumpthrus #57
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
0x0ade
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.
C# portion looks mostly good to me, for the same reasons as the upside-down jumpthru 👍
Awaiting @Cruor's review of the Ahorn plugin.
Entities/SidewaysJumpThru.cs
Outdated
| } | ||
|
|
||
|
|
||
|
|
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.
What's up with the whitespace here?
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.
That was to separate hook code from the entity code 😅 I think I should drop a comment in here instead.
Cruor
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.
allowLeftToRight sounds a bit strange to me, makes it sound like it is normally fully solid, but you can set the flag to go through it from left -> right. Doesn't the base game just do left or right for these kinds of things?
Looks good to me otherwise though.
|
I'll double-check what the base game does for orientation settings. Would "right" mean the upper side of the jumpthru is on the right side, so you can go left to right? 🤔 |
|
Attribute renamed on the Ahorn plugin side, comment added instead of that awkward gap on the C# side. |
Closes #20.
This time, I didn't make it extend JumpThru, since those have little in common (... the orientation to begin with: jump thrus extend on their width).
Most of how it works is an IL patch applied on multiple methods, that adds collide checks against sideways jumpthrus everywhere the game checks for solids. This way, Madeline can climb on and walljump off sideways jumpthrus.
(Note to self: the Julia part seems to need a tab to space pass.)