A good alternative is to find ways to make people smile instead :)
- 2 Posts
- 1.75K Comments
FooBarrington@lemmy.worldto
Godot@programming.dev•How do people handle keyboard and mouse Input?
2·5 days agoIMO this is a great case for Finite State Machines. Unfortunately I can’t provide a GDScript example since I write in C#, but I think there are some assets for this in the asset library. The basic idea is that you define states, and valid transitions between those states (e.g. for a drag’n’drop system given the states
idle,dragginganddroppedit makes sense for the user to goidle->dragging,dragging->droppedanddropped->idle, but not fromidle->dropped). Then you can separate the state transition logic from the main handler for each state, which I think is what you want, right?This pattern can also easily be made reusable, either by having no dedicated logic in the state machine (-> everything is handled through events), or by using an adapter interface that components create and pass into the state machine.
Let me know if you have questions, or would like to see an example - I can at least provide pseudo code :)
Yes, and since that’s the wrong place I kept looking, and found the link I just sent you
I’m guessing it’s this? https://searchfox.org/firefox-main/source/js/src/builtin/Array.cpp
That’s a different kind of array (Float32Array etc.), not the “normal” kind.
FooBarrington@lemmy.worldto
movies@piefed.social•First Image: Arnold Schwarzenegger as Santa Claus in Adam Shankman’s ‘THE MAN WITH THE BAG’. The film follows Santa Claus as he enlists the help of a petty criminal after his sack of presents is stol…English
4·8 days agoSANTA CLAUS-MAN WILL RETURN…
… IN AVENGERS: DOOMSDAY
FooBarrington@lemmy.worldto
Movies@lemmy.world•James Cameron and Walt Disney Company Sued Over Unauthorized Use of Actress’ Likeness in ‘Avatar’English
2·11 days agoThe economic angle is already obvious, but even if we leave that aside: the more people see a film, the more people will see her likeness used without her consent.
FooBarrington@lemmy.worldto
Movies@lemmy.world•James Cameron and Walt Disney Company Sued Over Unauthorized Use of Actress’ Likeness in ‘Avatar’English
41·11 days agoSeems pretty important to me.
FooBarrington@lemmy.worldto
Movies@lemmy.world•James Cameron and Walt Disney Company Sued Over Unauthorized Use of Actress’ Likeness in ‘Avatar’English
8·12 days agoSeems pretty freaking important, given how residuals work?
FooBarrington@lemmy.worldto
Technology@lemmy.world•Microsoft fixes VS Code after app gives Copilot credit for human's workEnglish
7·14 days agoYeah, I find it hard to believe this wasn’t their goal, especially considering they found this bug in testing and still released the update: https://news.ycombinator.com/item?id=47994193
FooBarrington@lemmy.worldto
Technology@lemmy.world•Microsoft Teams users are extremely angry at new banner asking them to payEnglish
1·20 days agoI’m also not a fan of Slack, but it doesn’t break new things every week while also putting ads in your face, so that’s a plus.
Teams is also only communication.
FooBarrington@lemmy.worldto
Technology@lemmy.world•Microsoft Teams users are extremely angry at new banner asking them to payEnglish
2·20 days agoSlack isn’t great, but at least a few years ago it was much, much better than Teams
FooBarrington@lemmy.worldto
Technology@lemmy.world•Firefox Has Quietly Integrated Brave's Adblock EngineEnglish
5·24 days agoYes, it is. No, the delays on Youtube don’t come from the performance of the adblocking code, so you won’t notice many differences. But more efficient adblocking is good for everyone - noticeably more so on devices with batteries, but still helpful for everyone.
Amazing photo! Sweetie looks so suave and stylish with their chest fur collar
My cheeks clap when I walk so yes, I expect princess treatment
More accurate:
Metal guys: “Hey cool shirt”
FooBarrington@lemmy.worldto
memes@lemmy.world•It's a European tradition to traumatize kids.
2·1 month agoIsn’t that just Valhalla?
Yeah, they didn’t shoot in black-and-white. Everything was recorded in full color, but Nintendo blocked the release due to the similarity. So a bunch of interns had to manually take a screenshot of every frame, save it, import it into a cracked Photoshop copy, export that, and re-import it into the video editor.




It’s cool that you enjoyed it! But there’s no need to pretend that this is a binary choice. Guardians of the Galaxy is also capeshit with a stoic woman, yet IMO Gamorra is a much more interesting character than Captain Marvel.
I also liked many parts of the movie, but some other parts were big enough misses that I’m not really interested in rewatching.