mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

recently learned u only need randomize() once, not in every func u want to use randomize() in 🤦

fortunately, makes it easy to fix with their Replace in Files, even when u have it 374 times in your project! 🤦 🤦 🤦

afreytes 🇵🇷

@nazgum reminder you can use seed() instead of randomize() in

With seed(YourNumber) the values are deterministic, always the same

I find it is helpful for testing and debugging (specially generated stuff), because you can set the seed, then run the scene a few times and see if everything falls into place as expected. Then change the seed and test again.

@afreytes thanks, and ya seed() makes a lot more sense when its only in one spot of your codebase! haha