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

Doc reviews #23

Closed
wants to merge 21 commits into from
Closed

Conversation

MrValentine7777
Copy link

Corrected a typo.

SimonDarksideJ and others added 21 commits April 7, 2024 23:41
Updated the `HowTo_ChangePitchAndVolume.md` file to enhance readability and clarity of the code and instructions. Changes include bold formatting for method and class names, added explanations for pitch and volume concepts, `using` statements, fields for sound effect and its properties, and modifications to the `Game.LoadContent` method. Also included notes on sound looping, state checking, and usage of `MathHelper.Clamp` method. Extended example added for key press detection and sound effect adjustment. Updated the copyright year to 2024. The subproject commit in MonoGame has been updated to `81ed391a4d0fd81e3ee4bfe2492ad9a0e7f4cfc5`.
Updated the heading "An extended example" to "An Extended Example" for improved readability and consistency in capitalization. Added a new method "IsKeyPressed" under the "Game.Draw" method to check if a specified key is pressed, returning a boolean value.
…ect commit

Updated the `.gitignore` file to include the `/external/MonoGame` directory. Enhanced the `HowTo_ChangePitchAndVolume.md` file with updated instructions for playing a sound and adjusting its pitch and volume, including a new method `IsKeyPressed(Keys key)`. Added code in the `Game.Update` method to adjust the pitch and volume of the sound effect when the **Space** key is pressed. The pitch and volume values are increased by +0.1f each time the **Space key** is pressed and are clamped to ensure they are within valid ranges. Added notes explaining the use of the `MathHelper.Clamp` method and the potential issue of the keypress check not preventing the method from repeating. Updated the copyright year in the `HowTo_ChangePitchAndVolume.md` file from 2023 to 2024. Removed a subproject commit in the MonoGame project.
This commit primarily focuses on enhancing code readability and providing more detailed documentation. Key changes include the use of bold formatting for key terms and method names, addition of explanatory notes and tips, inclusion of using statements and field declarations at the top of the file/class, and a new method to check key press status. A caution note about file name and location usage, a note about sound status, and an extended example for pitch and volume adjustment have also been added. Comments have been inserted in the code for better understanding of certain operations. Lastly, some method names have been replaced with their bold counterparts for consistency and readability.
…iews

Updated Pull request targetting [Base]
Body:
Corrected a typographical error in the documentation. Changed "singe" to "single" in the sentence explaining how to prevent method repetition due to a keypress.
@SimonDarksideJ
Copy link
Collaborator

Duplicate

@SimonDarksideJ SimonDarksideJ deleted the DocReviews branch May 30, 2024 15:29
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