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/

@beardalaxy @matrix I know it's not FOSS, but people have tried to make FOSS compilers for proprietary engines. I know GameMaker has (or used to have) a FOSS compiler known as ENIGMA. But GameMaker software is cross-compiled to Delphi (or at least it used to). If someone were to make a libre compiler for RPG Maker they might have to also use Google's JS engine unless someone creates a better alternative.

@Rocket @beardalaxy @matrix The problem is that modern web browsers are very complex and contain multiple components (rendering engine, JS engine, etc). Even popular browser forks like Brave and LibreWolf only fork the front-ends and are still dependent on unmodified back-ends. The only browser fork I know of that is completely independent is PaleMoon which forked Mozilla's old rendering engine.

@beardalaxy @matrix The problem with JS is that it probably uses something like Electron to turn it into a desktop application, which means that it's just basically bundling Chromium with a bunch of HTML and JS files into an executable file. Your program is basically dependent on Google and even though Chromium and Blink are open-source, I don't know a single viable fork of it and I highly doubt that RPG Maker is using that.

It's also my main beef with C# right now because Microsoft basically has full control over both implementations of the language (.NET and Mono). I don't really care about the practical side of things because I know that lower-level languages are hard, but there are some ethical concerns with languages that are controlled by the likes of Microsoft or Google.

@beardalaxy @matrix Never tried it, but it's probably better than the JS cancer they are using now.

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.

@matthew @reclaimthenet Facebook literally started as a DARPA project. To trust them to ever reform is EXTREMELY naive.

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

Manscaping 

@beardalaxy They exist, but they aren't heavily advertised for obvious reasons. Apparently, Manscaped isn't that good compared to the competition. If you watch actual reviews, they tend to recommend something else.

Manscaping 

@beardalaxy There are electric razors that are actually designed for it, and Manscaped is not the only brand.

Show older
Game Liberty Mastodon

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