[examples] Added shapes_drag_puzzle - #6165
Merged
Merged
Conversation
Owner
|
@gabriel-piangers please, review code formating to follow raylib conventions, braces should be aligned EDIT: Please, rename to just |
shapes_drag_puzzle
Contributor
Author
I changed the code formatting accordingly to the raylib conventions and switched it to shapes category. |
Owner
|
@gabriel-piangers thanks! great addition! 👍😄 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added a drag and drop puzzle example implementing 3 different shapes, Rectangle, Circle and Triangle.
Added for the discussion #5209.
I have tested it on Windows and seems to work fine. Only thing that bothered me a little is that the drawing order for the shapes is fixed instead of being based on the order of latest pick. Not really sure this could be done easily since all objects are from different types. But I still made it so the dragged object always draws last.
I have used the
rexmtool to add the example as suggested.