- 28
- 40
Top Poster of the Day:
hohomothyX2
Current Registered Users: 28,758
tech/science swag.
Guidelines:
What to Submit
On-Topic: Anything that good slackers would find interesting. That includes more than /g/ memes and slacking off. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual laziness.
Off-Topic: Most stories about politics, or crime, or sports, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably lame.
Help keep this hole healthy by keeping drama and NOT drama balanced. If you see too much drama, post something that isn't dramatic. If there isn't enough drama and this hole has become too boring, POST DRAMA!
In Submissions
Please do things to make titles stand out, like using uppercase or exclamation points, or saying how great an article is. It should be explicit in submitting something that you think it's important.
Please don't submit the original source. If the article is behind a paywall, just post the text. If a video is behind a paywall, post a magnet link. Fuck journos.
Please don't ruin the hole with chudposts. It isn't funny and doesn't belong here. THEY WILL BE MOVED TO /H/CHUDRAMA
If the title includes the name of the site, please leave that in, because our users are too stupid to know the difference between a url and a search query.
If you submit a video or pdf, please don't warn us by appending [video] or [pdf] to the title. That would be r-slurred. We're not using text-based browsers. We know what videos and pdfs are.
Make sure the title contains a gratuitous number or number + adjective. Good clickbait titles are like "Top 10 Ways to do X" or "Don't do these 4 things if you want X"
Otherwise editorialize. Please don't use the original title, unless it is gay or r-slurred, or you're shits all fucked up.
If you're going to post old news (at least 1 year old), please flair it so we can mock you for living under a rock, or don't and we'll mock you anyway.
Please don't post on SN to ask or tell us something. Send it to [email protected] instead.
If your post doesn't get enough traction, try to delete and repost it.
Please don't use SN primarily for promotion. It's ok to post your own stuff occasionally, but the primary use of the site should be for curiosity. If you want to astroturf or advertise, post on news.ycombinator.com instead.
Please solicit upvotes, comments, and submissions. Users are stupid and need to reminded to vote and interact. Thanks for the gold, kind stranger, upvotes to the left.
In Comments
Be snarky. Don't be kind. Have fun banter; don't be a dork. Please don't use big words like "fulminate". Please sneed at the rest of the community.
Comments should get more enlightened and centrist, not less, as a topic gets more divisive.
If disagreeing, please reply to the argument and call them names. "1 + 1 is 2, not 3" can be improved to "1 + 1 is 3, not 2, mathfaggot"
Please respond to the weakest plausible strawman of what someone says, not a stronger one that's harder to make fun of. Assume that they are bad faith actors.
Eschew jailbait. Paedophiles will be thrown in a wood chipper, as pertained by sitewide rules.
Please post shallow dismissals, especially of other people's work. All press is good press.
Please use Slacker News for political or ideological battle. It tramples weak ideologies.
Please comment on whether someone read an article. If you don't read the article, you are a cute twink.
Please pick the most provocative thing in an article or post to complain about in the thread. Don't nitpick stupid crap.
Please don't be an unfunny chud. Nobody cares about your opinion of X Unrelated Topic in Y Unrelated Thread. If you're the type of loser that belongs on /h/chudrama, we may exile you.
Sockpuppet accounts are encouraged, but please don't farm dramakarma.
Please use uppercase for emphasis.
Please post deranged conspiracy theories about astroturfing, shilling, bots, brigading, foreign agents and the like. It degrades discussion and is usually mistaken. If you're worried about abuse, email [email protected] and dang will add you to their spam list.
Please don't complain that a submission is inappropriate. If a story is spam or off-topic, report it and our moderators will probably do nothing about it. Feed egregious comments by replying instead of flagging them like a pussy. Remember: If you flag, you're a cute twink.
Please don't complain about tangential annoyances—things like article or website formats, name collisions, or back-button breakage. That's too boring, even for HN users.
Please seethe about how your posts don't get enough upvotes.
Please don't post comments saying that rdrama is turning into ruqqus. It's a nazi dogwhistle, as old as the hills.
Miscellaneous:
The quality of posts is extremely important to this community. Contributors are encouraged to provide high-quality or funny effortposts and informative or entertaining comments. Please refrain from posting the following:
Boring wingcucked nonsense nobody cares about that belongs in chudrama
Normie shit everyone already knows about
Anything that doesn't gratifify one's intellectual laziness
Bimothy-tier posts
Anything that the jannies don't like
Jannies reserve the right to exile baby ducks from this hole at any time.
We reserve the right to exile you for whatever reason we want, even for no reason at all! We also reserve the right to change the guidelines at any time, so be sure to read them at least once a month. We also reserve the right to ignore enforcement of the guidelines at the discretion of the janitorial staff. This hole is a janny playground, participation implies enthusiastic consent to being janny abused by unstable alcoholic bullies and loser nerds who have nothing better to do than banning you for any reason or no reason whatsoever.
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
/h/slackernews SETTINGS /h/slackernews LOG /h/slackernews MODS /h/slackernews EXILEES /h/slackernews FOLLOWERS /h/slackernews BLOCKERS
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.
More options
Context
Wasn't this compiled from an editor of some sort?
Jump in the discussion.
No email address required.
More options
Context
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
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.
More options
Context
More options
Context
More options
Context
Is this why Deltarune Chapter 3 still isn't finished?
Jump in the discussion.
No email address required.
More options
Context
learn2hashmap neighbors
Map<Integer, String> map = new HashMap<>();
map.put(1, "Bussy");
map.put(2, "Marsey");
System.out.println(map.get(2));
Output:
That will be $10k for the consultation sirs
Jump in the discussion.
No email address required.
More options
Context
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.
More options
Context
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
Jump in the discussion.
No email address required.
More options
Context
More options
Context
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.
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.
More options
Context
More options
Context
More options
Context
I think this is actually fairly standard for most game devs with no programming background, they just write really shit code and it works out because all game libs/engines expect this to be the case anyway, like that one jew who made a game by just stacking a bunch of unity templates on top of one another until he made what he wanted
Jump in the discussion.
No email address required.
I mean that's literally what gamemaker is lol, it's basically the equivalent of a learning tool. We used GM8 in highschool and I still have a copy of it I made onto my USB
Jump in the discussion.
No email address required.
More options
Context
Fair. In this case the shit code wouldnt cause any real performance issues so w/e
What's the correct solution for a dialog tree like this?
Jump in the discussion.
No email address required.
Bootleg answer for something like Undertale:
Example .json:
Not great, but you'd want to tinker with it for what you need anyway. At least it's better than wrangling something like switch statements.
Jump in the discussion.
No email address required.
More options
Context
hashtable
Jump in the discussion.
No email address required.
More options
Context
This might be an r-slured answer but couldn't you just have the part that listens for a response run on its own thread or run asynchronously so it doesn't block anything in the loop?
Pretty sure it depends on what engine you're using or if you're using a library like Raylib or something
Jump in the discussion.
No email address required.
kinda orthogonal to having a big switch statement. you could have a separate thread and do this asynchronously and still have it be a switch statement.
Jump in the discussion.
No email address required.
More options
Context
What's the point, the game does not progress until you answer the dialog
Jump in the discussion.
No email address required.
I presume you might want to have a game where a monster may perhaps chase you even during a chat dialog with someone. Of course if it's a VN or whatever I don't think this matters as much but you know.
Jump in the discussion.
No email address required.
I would just do what everyone else used to do and separate combat from dialog encounters
Jump in the discussion.
No email address required.
But where's the fun in that? Nowadays G*mers YEARN for Immersive sims chock full of funny hidden interactions, silly fruits, and emergent gameplay. If you just close those avenues up, you're Hurting G*mers.
Jump in the discussion.
No email address required.
Treat g*mers like junkies. Give them what they want for money and abuse them.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
First step:
Makes it easier to skim the game loop and get an broad idea of what happens every tick and what is state-dependent
Also helps you write tests that isolate each case
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
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:
archived.moe
ghostarchive.org
archive.org
archive.ph (click to archive)
Jump in the discussion.
No email address required.
More options
Context