Skip to content

Tutorial - Building 2D Games - Fix circle collision math and a few typos. #138

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

Merged
merged 6 commits into from
Jun 12, 2025

Conversation

MikeA1
Copy link
Contributor

@MikeA1 MikeA1 commented Jun 9, 2025

The Building 2D Games tutorial is amazing! I really appreciate the hard work that went into it. I went through Chapter 12 and everything was great until the circle collision explanation. There's a couple of errors pertaining to the direction of inequality sign, so this MR attempts to straighten it out. It's notable that the Circle class is implemented correctly later in this chapter (see ./snippets/cirlce.cs#methods_intersects).

The circle collision explanation and code sample were incorrect.
The Circle class is implemented correctly later in this chapter (see ./snippets/cirlce.cs#methods_intersects).
Copy link
Contributor

@AristurtleDev AristurtleDev left a comment

Choose a reason for hiding this comment

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

Thanks for catching the maths errors.

A few minor feedback points were added to the review if you could look over them.

@dellis1972 dellis1972 requested review from AristurtleDev and SimonDarksideJ and removed request for AristurtleDev June 12, 2025 10:15
@SimonDarksideJ SimonDarksideJ merged commit 580a73a into MonoGame:main Jun 12, 2025
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