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

Remove orphan Panning component and related code #104

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

64kramsystem
Copy link
Member

@64kramsystem 64kramsystem commented Jul 16, 2022

Remove the now orphan Panning component and related code.

Also remove the controls section from the README.

@64kramsystem 64kramsystem added this to the v0.0.3 milestone Jul 16, 2022
@64kramsystem 64kramsystem self-assigned this Jul 16, 2022
@zicklag
Copy link
Member

zicklag commented Jul 16, 2022

I touched a lot of the input stuff with #100 including removing the camera controls so it's probably easier to do this after that merges so that I don't have to deal with merge conflicts on the big PR.

I think I've almost got that finished, just needs a couple small fixes to the button adjacency map.

I removed most of the unneeded camera stuff in #100 but I see you also modified camera_follow_player so that might still need to be done.

Copy link
Member

@zicklag zicklag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that #100 was merged, most of this is already done, but there are couple things in this PR that we still want to do.

Though it might be easier to open a totally new PR.


let max_player_x_diff =
max_player_x - camera.translation.x - game_meta.camera_move_right_boundary;

if max_player_x_diff > 0. {
// The x axis is handled by the parallax plugin.
camera.translation.y = consts::GROUND_Y + panning.offset.y;
// The y axis value doesn't change.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes should still be made, but most of the other changes were already done in #100.

README.md Outdated
@@ -20,8 +20,6 @@ https://fishfight.github.io/punchy/demo/
| Throw Item | C | Period | West |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should totally remove the controller input binding list here?

Users can now view/change the bindings in the game, and it's always easy to forget to update the readme when we add/remove a new move or we change the bindings.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be fine to remove now that its possible to see in the controller settings menu.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I'll integrate this once I rebase/rework the PR 😄

Controls can now be customized, so maintaining a dedicated section gives very little value.
@64kramsystem 64kramsystem force-pushed the remove_camera_manual_commands branch from 0ed4798 to 4f87c7d Compare July 21, 2022 20:36
@64kramsystem 64kramsystem changed the title Remove camera manual commands Remove orphan Panning component and related code Jul 21, 2022
@zicklag zicklag merged commit e183020 into fishfolk:master Jul 22, 2022
@64kramsystem 64kramsystem deleted the remove_camera_manual_commands branch July 23, 2022 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants