Show newer

gamedev 

Wrote my own RNG algorithm (just take the sine of a seed and increment the seed by one for the next time). I also made it so that enemies can't spawn in the first room.

Show thread
xianc78 boosted
xianc78 boosted
xianc78 boosted
xianc78 boosted

@mk @theorytoe you missed the point. containers just make things harder. they are nice rube goldberg machines for shit languages like python which are hell to deploy.

when just installing everything from packages, things will receive timely security patches of the distribution.

when using VMs, one has to upgrade a few VMs for this. not great, not terrible.

with containers one has to hope that some image down the stack will be upgraded to include the fix, while the whole setup provides worse isolation than VMs (which already is prone to leakage). with containers the isolation is essentially the same as for plain linux users and chroot. no improvement. cgroups limiting resource usage can be set by the init system, i think systemd does this already.

containers sure have their use case, but mostly they are a crappy solution waiting for problems.

in the end the image is a meme which makes the point that ftp-ing a directory full of php scripts worked better than all the modern shit.

gamedev 

Tried to add random enemy placement to the dungeon, but they all appear in the same room. I realize that the common way to do RNG in C and C++, srand(time(NULL)) uses time (in seconds) as a seed, and since the loop obviously runs multiple times per second, I'm getting the same results.

I think my solution would be to use my own RNG algorithm with a seed that increments every time it is called.

Show thread
xianc78 boosted

@intentionwebdesign Nobody needs to be "getting into people's inboxes" 🤮

Yes this shit Google is doing is a problem - for recipients who can't get actual personal mail or automated reports they actually *want to get*. Blocking small businesses from spamming is not a problem.

xianc78 boosted
xianc78 boosted
xianc78 boosted
xianc78 boosted
Those people never learn the lesson. Whenever they get banned they create another profile on the same platform who banned them
xianc78 boosted
I had suspicions of this for a while due to the déja vue feeling I had over the years each time I quickly looked at an imageboard.
But now it's pretty much confirmed to me. It was more or less obvious that some imageboards are just controlled by spooks but I just learned about kolymanet :slowpoke: and it's tied to the nss which is tied to the fsb, the russia's federal security service (slav cia).
So basically most of imageboards these days are just controlled by govs just trying to subvert each other using anons as useful idiots in any way possible.
What could possibly go wrong ?

I knew that Elon Musking buying out Twitter was just a psyop since day 1, but I never expected for it to be this bad. At most, I thought it was just to prevent the alternative media from embracing alternative platforms like the Fediverse.

Show thread
xianc78 boosted

gamedev 

Here is a second dungeon, in case you don't believe me.

Show thread

gamedev 

I got a random dungeon generation algorithm implemented. It is the same one from this post (gameliberty.club/@xianc78/1117), but written in C++ instead of Java. It's pretty basic at the moment. I plan on having each room randomly pick a design from a template.

Show thread
xianc78 boosted
Show older
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.