Jump in the discussion.

No email address required.

shipping is a feature and the eternal refactorcel will never amount to anything

Jump in the discussion.

No email address required.

Wasn't this compiled from an editor of some sort?

Jump in the discussion.

No email address required.

Before any one of you tries to be smart and post some code, consider that Undertale was written under Game Maker 8 in GML, a language that barely supported user-defined functions back then

Jump in the discussion.

No email address required.

codecels would rather rewrite it in C to get better performance on embedded systems and iranian centrifuge controllers (projected release date Q4 2030). codechads just ship it and make a couple of millions :marseyshrug:

Jump in the discussion.

No email address required.

All I can say is that during my "career" as a hobbyist gamedev, the only games I managed to complete and publish were the ones I made in Game Maker

Jump in the discussion.

No email address required.

Is this why Deltarune Chapter 3 still isn't finished?

Jump in the discussion.

No email address required.

learn2hashmap neighbors

Map<Integer, String> map = new HashMap<>();

map.put(1, "Bussy");

map.put(2, "Marsey");

System.out.println(map.get(2));

Output: :marseyex#cited:

That will be $10k for the consultation sirs :#marseytunaktunak:


https://i.postimg.cc/dVgyQgj2/image.png https://i.postimg.cc/d3Whbf0T/image.png

Jump in the discussion.

No email address required.

That's fairly standard for visual novels tho afaik

Why bother with more clever solutions when this works

Jump in the discussion.

No email address required.

VN's basically are like that where you shove a bunch of text into a file / line thing, use something else to reference it. Otherwise you end up writing the dialogue in script based on where it'd occur and that's r-slurred in something like Renpy unless you're making all the dialogue in specific .py files for characters / situations. But hey /g/strags are so much smarter so they can totally code some C program that has to compile everytime it runs just to change small things in 50 different files while they continue ricing their install

Jump in the discussion.

No email address required.

at the VERY least, the integer literals should probably be constants so they have actual names

Jump in the discussion.

No email address required.

It probably is pre-compile :marseyshrug:


Give me your money and I'll annoy people with it :space: https://i.rdrama.net/images/16965516366194396.webp

Jump in the discussion.

No email address required.

If your game loop is a wrapper around a giant switch statement, the arms should be moved into a lookup table for the switched-over variable.

After you do this, you can even break out cases into separate modules and compose them!

Jump in the discussion.

No email address required.

Oh yeah tables exist for this case exactly don't they lmao

Jump in the discussion.

No email address required.

:#marseyagree:

You can get a lot of mileage out of them, they're the first step away from jeet coding and also the last step before fart huffing ivory tower bullshit

Jump in the discussion.

No email address required.

lol is that C++? Wait are you binding that with Python?! Imagine using those over Rust. As a proud Rustacean and Ferris the Crab adorer, I regret to inform you that your taste in languages sucks. This is sad. You can do better. You know how easy package and dependancy management is with Cargo? Not to mention you don't even need a Makefile. It's great. Dynamically typed languages need to die. There's no other option. They just do. If you like dynamic typing, you need some help. Seriously. By using a dynamically typed and interpreted language (which means its @#*!&!@ slow!!!), you are committing genocide and harming the environment more than gas cars. Rust is fast and uses clean, renewable energy through the magic of being a language compiled with LLVM. Tired of memory bugs? You should be. Shame on you for still having them when Rust exists. Tired of being bad? Time to go to Rust. Tired of being slow because you're not smart and your friends laugh at you? Rust is quite speedy indeed (all thanks to the big brain of the compiler). Tired of not getting off the normal way? Match statements, loops, and the compiler for Rust give the best orgasms 10/10 (completely legit). Not to mention the superiority you get to feel when you show off your superior Rust code to your inferior “friends” still using some other language. Want to get rid of malware? Rust is safe, therefore malware is noware (also completely legit). You quite honestly will forget about any other language (including English because it's slow and unsafe). You even get to add the Rust Book and its brothers to your Bible collection alongside the Arch and Gentoo Wikis. All hail Rust. TempleOS pales in religious comparison to the faith of Rustaceans. Graydon Hoare is Jesus. Amen.

Snapshots:

https://boards.4chan.org/g/thread/100157238:

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.