The Yandere Dev/Pirate Software dilemma

submitted by MousePotatoDoesStuff to godot
28 points | 15 comments

UPDATE: The consensus seems to be overwhelmingly in favour of the match variant. And not to worry, I have replaced the magic numbers with an enum. Will try to remember to merge the branch tomorrow

Does an if-statement block or a switch statement fit better here? For context (and advertisement), this is part of my all-purpose…

Read more →
I'm adding a random vector function to my plugin. Is range or min/max better?

submitted by MousePotatoDoesStuff to godot
8 points | 5 comments

There is a distinct lack of random functions for vectors, so I decided to add some to the Mouse Potato Utils Plugin.

However, I’m not sure whether I should make the right end of the range inclusive (make it a maximum) or exclusive (like the range() function) when it comes to integer vectors.

I’ll make it inclusive for now, but…

Page 1