Skip to content

Ds camera - #5

Merged
moonwho101 merged 3 commits into
mainfrom
DS-camera
Jan 9, 2026
Merged

Ds camera#5
moonwho101 merged 3 commits into
mainfrom
DS-camera

Conversation

@moonwho101

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 9, 2026 18:38
@moonwho101
moonwho101 merged commit 5c7b524 into main Jan 9, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances camera control and player animation logic in DungeonStomp. The changes focus on camera angle clamping to prevent extreme vertical look angles and refinements to player animation sequence updates to avoid redundant calls.

Key changes:

  • Added camera vertical look angle clamping to prevent exceeding ±89.3 degrees
  • Refined player animation sequence logic to prevent unnecessary updates
  • Minor whitespace cleanup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/DungeonStomp.cpp
Comment on lines +5617 to +5621
if (look_up_ang < -89.3f)
look_up_ang = -89.3f;

if (look_up_ang > 89.3f)
look_up_ang = 89.3f;

Copilot AI Jan 9, 2026

Copy link

Choose a reason for hiding this comment

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

This camera angle clamping logic is duplicated from earlier in the same function (lines 5094-5098 in FrameMove2). The same clamping constraints for look_up_ang are applied in both locations. Consider whether this duplication is necessary - if both camera calculations need clamping, a helper function or a single clamping point might be more maintainable.

Copilot uses AI. Check for mistakes.
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.

2 participants