Show newer

Even though the game I'm working on is not finished, here are things that I am aiming to do better for my next project:

* Actually plan out the basic structure of the code before writing: This may come to a shock to you, but I only plan the game design and I write the code on the fly without planning out the code structure before writing it. Though I forgot how to drawl UML diagrams.
* Use object-oriented state machines: I have been putting off doing this for YEARS, despite knowing the advantages OO state machines have over enums and switch statements. I plan to at least use this for game modes because using traditional state machines for those creates an unorganized mess. OO state machines also seem to make code more reusable which is a plus.
* Put animations into their own objects: It should make it easier to organize them that way, especially when some animations are only played once while others are looped. It's also something that I have been putting off for years.
* Write my own timer class: SFML's clock class has no method to pause the timer. Only restarting the timer entirely, which means that it's still going even if the game is paused. I should write my own universal clock class to accommodate for that. The only reason why I haven't done that now is because not many things in my game use a timer and if they do, it doesn't really break the experience that much if pausing somehow interrupts them.
* Implement better RNG: I've noticed that C and C++s built-in random functions work differently than what I'm used to. I think in higher-level languages like C#, Java, and Python, the call to the standard random function/method increments the seed for the next call, while in C and C++ it just uses the current time as the seed, so if multiple calls are made in the same millisecond, they will give the same results. My game uses custom RNG for level generation, but enemy AI still uses rand/srand.

xianc78 boosted
Missouri could take a big step for food freedom: New bill would expand raw milk sales to farmers' markets, local businesses, and online challenging a federal prohibition scheme in the process.

🍶🚜 Read more: https://blog.tenthamendmentcenter.com/2025/01/raw-milk-market-would-be-expanded-under-new-missouri-legislative-proposal/
xianc78 boosted
PKT DNS is here !

As of today you can now register PKT Domains, and when you do, they become a subdomain of every participating PKT "infrastructure domain".

See: https://cjd.pkt.wiki for an example.

https://thegoodwork.substack.com/p/pkt-dns-is-here
xianc78 boosted
xianc78 boosted
The NSO Group used their Pegasus spyware to infiltrate devices and extract data through zero-click exploits, allowing hackers to access devices without the user clicking a link or downloading anything.

Read More: https://thefreethoughtproject.com/government-surveillance/israeli-spyware-firm-nso-group-found-liable-for-hacks-of-whatsapp-users

#TheFreeThoughtProject
xianc78 boosted

I miss normal, non-gaming-specific, workstation motherboards that were $150 or less. No stupid LEDs. A green PCB. Parallel and Serial ports like God intended!

xianc78 boosted
ANNOUNCE: Cjdns Release v22.1

Major changes:
* DNS Seed auto-peering means you no longer need to add peers. You can still manually peer, and you can disable DNS seeding in the config, but default configs going forward will seed from a list of public peers which is here: https://vinny.cjdns.fr/ptest/
* Cjdnstool binary is now built with cjdns, making administration easier.

Minor changes:
* Libuv is completely removed, all OS bindings are through Rust/Tokio.
* SECCOMP BPF is no longer part of the security strategy.

Where to download:
* Linux: https://github.com/cjdelisle/cjdns.sh makes it easy to run a node, including public peer.
* MacOS: As soon as this PR lands https://github.com/Homebrew/homebrew-core/pull/203576 , `brew install cjdns` will be enough.
* Source: https://github.com/cjdelisle/cjdns required a C compiler, Rust, NodeJS, make, and linux-headers in order to build.

Special thanks:
* To the PKT community for contributing public peers for seeding.
* To those who contributed to tip4commit https://tip4commit.com/github/cjdelisle/cjdns thanks to you, my rent is paid for this month ❤️
xianc78 boosted
xianc78 boosted
Confirmed. ChatGPT is actively indexing the Fediverse, even small servers like mine who have not explicitly consented to their indexing.

So while people on Mastodon got angry about Mastodon having built-in discovery features, ChatGPT just went ahead and slurped up all your posts.
xianc78 boosted
Attempt at Reputation Repair is my take. My hope is that they are not successful. Facebook has proven itself to not operating in the interests of liberty and freedom.

#facebook #freespeech

RT: https://www.minds.com/api/activitypub/users/875492121426010128/entities/urn:activity:1723428420186021888
xianc78 boosted
xianc78 boosted
the openmandriva forums are currently down after lunduke made a video saying they weren't woke
xianc78 boosted
Federal toxicology researchers on Monday finally published a long-controversial analysis that claims to find a link between high levels of fluoride exposure and slightly lower IQs in children living in areas outside the US, mostly in China and India.

https://arstechnica.com/health/2025/01/controversial-fluoride-analysis-published-after-years-of-failed-reviews/
xianc78 boosted
xianc78 boosted
Is there any actual video of the New Orleans guy actually driving an F-150 through the crowd? The German attack had actual video. The CNN video only contains the aftermath with all the bodies blurred out ... and people are casually walking by the scene like nothing happened .. like they think it's just a scene being filmed.
xianc78 boosted
The news is not to inform you. The news is to condition you.
xianc78 boosted
Show older
Game Liberty Mastodon

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