-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
We must have googly eyes (new Game example) #12331
Conversation
The generated |
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.
Updated as per comments and added more documentation.
I didn't turn the drag operation into a state machine since there is no cleaner way to test if there is a current drag operation while also storing the drag offset. E.g. there is no resource_equals
equivalent that would ignore the inner enum values.
However I renamed DragOffset
to DragOperation
to make it clearer that this resource represents the drag operation.
In case it wasn't clear: I genuinely think we should include this. This is a nice well-scoped example demonstrating a new flavor of app, and I think that there's real pedagogical and marketing value to the fact that it's also extremely funny. |
typo Co-authored-by: Rob Parrett <[email protected]>
I think this should be named |
Nice! Testing this on Cinnamon, there are some problems with desktop mode though:
|
I tried making the primary window fullscreen but macOS puts it into its own
workspace (even if it’s borderless).
…On Wed, 6 Mar 2024 at 7:45 PM SpecificProtagonist ***@***.***> wrote:
Nice! Testing this on Cinnamon, there are some problems with desktop mode
though:
- Pressing space triggers the toggle every frame. This isn't this PR's
fault though; looks like #12273
<#12273>
- Clicking the logo doesn't focus the window (also not this PR's fault)
- the window size stays the same instead of being full-screened, so I
can only move the logo in the window's bounds
—
Reply to this email directly, view it on GitHub
<#12331 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFPHHM6TBSYWYCMIDMM6PODYW5B4HAVCNFSM6AAAAABEIHREZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRGMYTONRUGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.
Very fun! Definitely on board, especially with tweaks to the velocity and decay as mentioned in the comments above.
@tjamaan ping me once you've tweaked the physics and I'll merge this in :) |
|
I have automatic format on save configured and I also ran e: It appears that was because it checked before I fixed the references to the renamed file. |
@alice-i-cecile I've toned down the bounciness, cleaned up the code as suggested, and renamed the file to desk_toy.rs |
# Objective - We must have googly eyes. - Also it would be nice if there was an example of a desk toy application (like the old NEKO.EXE). ## Solution - Created an example with googly eyed Bevy logo under examples/games/desktoy.rs. --- ## Changelog - Added "Desk Toy" game example showcasing window transparency and hit test. --------- Co-authored-by: Rob Parrett <[email protected]>
Objective
Solution
Changelog