-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add Bitmap Collisions Physics Usage Examples #283
base: usage-examples
Are you sure you want to change the base?
Add Bitmap Collisions Physics Usage Examples #283
Conversation
✅ Deploy Preview for splashkit-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for splashkit-usage-examples ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
I've reviewed the function
bitmap_circle_collision
bitmap_circle_collision_at_point
bitmap_circle_collision_for_cell
bitmap_circle_collision_for_cell_at_point
bitmap_circle_collision_for_cell_with_translation
- All required files are present.
- Title and explanation (.txt)
- C++ code
- C# code (top-level statements)
- C# code (Object-Oriented Programming)
- Python code
- Code correctly uses Splashkit functions.
- Code clearly demonstrates the function.
- All versions maintain the same structure and comments.
- C++ code ran correctly.
- C# top level code ran correctly.
- C# OOP code ran correctly.
- Python code ran correctly.
feedback: C# files are missing comments for these 5 programs
bitmap_collision
bitmap_collision_at_points
bitmap_collision_for_cells
bitmap_collision_for_cells_at_points
bitmap_collision_for_cells_with_translations
- All required files are present.
- Title and explanation (.txt)
- C++ code
- C# code (top-level statements)
- C# code (Object-Oriented Programming)
- Python code
- Code correctly uses Splashkit functions.
- Code clearly demonstrates the function.
- All versions maintain the same structure and comments.
- C++ code ran correctly.
- C# top level code ran correctly.
- C# OOP code ran correctly.
- Python code ran correctly.
bitmap_point_collision
bitmap_point_collision_at_point
bitmap_point_collision_for_cell
bitmap_point_collision_for_cell_at_point
bitmap_point_collision_for_cell_with_translation
bitmap_point_collision_with_translation
- All required files are present.
- Title and explanation (.txt)
- C++ code
- C# code (top-level statements)
- C# code (Object-Oriented Programming)
- Python code
- Code correctly uses Splashkit functions.
- Code clearly demonstrates the function.
- All versions maintain the same structure and comments.
- C++ code ran correctly.
- C# top level code ran correctly.
- C# OOP code ran correctly.
- Python code ran correctly.
Final notes: Kindly make the one correction on the .cs files for bitmap circle collision programs. Thank you!
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.
Add code comments to this oop file, and the top-level statement version. For all the bitmap_circle_collision usage examples in c#. Total of 10 code files to add comments.
bitmap_circle_collision
bitmap_circle_collision_at_point
bitmap_circle_collision_for_cell
bitmap_circle_collision_for_cell_at_point
bitmap_circle_collision_for_cell_with_translation
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.
Good spot! Thanks for the thorough review. These have been amended.
Description
This pull request adds simple usage examples for the following bitmap collision physics functions in SplashKit:
bitmap_circle_collision
bitmap_circle_collision_at_point
bitmap_circle_collision_for_cell
bitmap_circle_collision_for_cell_at_point
bitmap_circle_collision_for_cell_with_translation
bitmap_collision
bitmap_collision_at_points
bitmap_collision_for_cells
bitmap_collision_for_cells_at_points
bitmap_collision_for_cells_with_translations
bitmap_point_collision
bitmap_point_collision_at_point
bitmap_point_collision_for_cell
bitmap_point_collision_for_cell_at_point
bitmap_point_collision_for_cell_with_translation
bitmap_point_collision_with_translation
bitmap_rectangle_collision
bitmap_rectangle_collision_at_point
bitmap_rectangle_collision_for_cell
bitmap_rectangle_collision_for_cell_at_point
bitmap_rectangle_collision_for_cell_with_translation
The purpose of this update is to help users understand the functionality of these bitmap collision physics functions in SplashKit by providing detailed examples across supported languages (C++, C#, and Python).
Each example includes:
Type of change
How Has This Been Tested?
All functions were run and tested to ensure output was as expected.
Testing Checklist
npm run build
npm run preview
Checklist
If involving code
If modified config files
Additional Notes
Each example is designed to demonstrate only the basic functionality of bitmap collision physics functions in SplashKit. The resources provided will enable users to replicate, modify, and understand how to implement the functions and what the expected outputs might look like.