[Yandere Simulator] if else if else if else if else if else if else
- 48
- 46
Top Poster of the Day:
J
Current Registered Users: 25,687
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 non-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:
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 real them at least once a month. We also reserve the right to ignore enforcement of the guidelines at the discretion of the janitorial staff. Be funny, or at least compelling, and pretty much anything legal is welcome provided it's on-topic, and even then.
Do not use outdated operating systems that are unsupported to access SN. What are you, poor?
[[[ 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 LOG /h/slackernews MODS /h/slackernews EXILEES /h/slackernews FOLLOWERS /h/slackernews BLOCKERS
Jump in the discussion.
No email address required.
dont forget about the 5k polygon toothbrush meant for hyperrealistic advertisements that was just casually in the protagonists's room
Jump in the discussion.
No email address required.
Wtf is this waifu simulator or a pixar film
Jump in the discussion.
No email address required.
yeah it was hilarious, random assets (which pretty much all were completely stolen btw) were gigantic and NOTHING was resized at all
Jump in the discussion.
No email address required.
And the game looks like shit
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
Jump in the discussion.
No email address required.
The whole program is a string, why is the parts in quotes so different?
Jump in the discussion.
No email address required.
More options
Context
And operator? Is that a band?
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Average unity dev
Jump in the discussion.
No email address required.
nintendo HIRE THIS MAN
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Hey this is progress. It used to just be ifs.
Jump in the discussion.
No email address required.
elif it werent that would be cool
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Get this man a career in contracting or code boot camp instructor.
Jump in the discussion.
No email address required.
More options
Context
what is wrong with this
Jump in the discussion.
No email address required.
I won't bore you with the details. Imagine an r-slur using a gun as a fidget spinner. You start to ask lots of questions like, "Who let him have a gun?" "Maybe I should run away." Something is very wrong. There are so many red flags you realize he's not teachable, or even worth 10 seconds of your time. Also he claims to be Special Forces (i.e. a full time game developer).
Jump in the discussion.
No email address required.
I thought this was @bbbb at first lmao
Jump in the discussion.
No email address required.
Thanks for the laugh, now piss off.
Jump in the discussion.
No email address required.
More options
Context
Shoul I be offended haha
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Are you fricking r-slurred? Obviously someone with your lack of intelligence would be too afraid to even approach me, let alone ask me any questions. And for your information, I am Special Forces. So you can go frick yourself, you little piece of shit.
Jump in the discussion.
No email address required.
I'd like to experience your special forces
Jump in the discussion.
No email address required.
Your special forces aren't anything to write home about.
Jump in the discussion.
No email address required.
Maybe you could teach me? I wouldn't mind a live demonstration.
Jump in the discussion.
No email address required.
What makes you think I'm interested in teaching you anything? You couldn't even handle a live demonstration.
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
The ifelif isn't the bad part. It's the fact his game logic is setup in a way where he needs to use so many ifelif. A ton of this can optimized or converted to enums/flags to simplify the logic(particularly note how the three components weapon, blood, insanity have a hierarchy). Furthermore the updateLabel function looks and probably is r-slurred.
If you truly need to use a chain of ifelifs, then it's not bad to use them. But the question is whether you truly need to use them in the first place.
Jump in the discussion.
No email address required.
note this code gets executed EVERY SINGLE frame
Jump in the discussion.
No email address required.
Dios mio you're right
Jump in the discussion.
No email address required.
More options
Context
More options
Context
tbh i googled what enums were and i didnt really understand the benefit but you sound smart so i will believe you
Jump in the discussion.
No email address required.
Integer comparison is faster than string comparison.
Jump in the discussion.
No email address required.
oh ok that does make sense, thank you for your patience
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
okay. So it's like you have a coin on you. you take the coin and flip it to make every single decision ever in your system. So you go, man is white or black, if he is black does man have big nose or small nose, if man has small nose does he have big eyes or small if, if he has small eyes, does he like music or does he not like music.
You program your entire game using this two options nested within each other logic.
As you can probably figure out for your entire game code to be nested ifs is downright r-slurred and we have like a dozen better ways to write down good code.
This is why the whole thing is downright r-slurred beyond comprehension. Most modern day code would be a sort of network where everything is not connect by a single if's cascade.
BTW I am not a coder I just studied the basics of coding in 11th and 12th grade.
Jump in the discussion.
No email address required.
More options
Context
literally everything
Jump in the discussion.
No email address required.
More options
Context
More options
Context
What would be the best way to fix this? I’m just starting to learn COOODING myself
Jump in the discussion.
No email address required.
The witnessed property being a string is jank as frick; should be separate props. Struct of bool flags, container of elements to iterate over, whatever.
Jump in the discussion.
No email address required.
and maybe execute stuff on a timer or something. the big problem with this was that all of this got executed on every single frame i'm pretty sure everywhere so even if you were like half a mile away it'd be checking for something that couldn't possibly be true
i don't know crap about game dev
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Restart from scratch.
Jump in the discussion.
No email address required.
More options
Context
Entire architecture is completely fricked
Jump in the discussion.
No email address required.
More options
Context
He never uses the state machines in unity either.
There are so many cases where different conflicting states return a 1 so characters do 2 or 3 things at once, like be dead and alive at the same time.
Almost all of his problems could be solved by having 4 or 5 different student state machines with triggers and just letting Unity figure out what to do.
Also, he tried to make a sandbox game but every single player option is actually strictly defined through if/else. Imagine coding a separate if/else structure for every possible interaction in Morrowind.
OH Yeah there's no logging. No logs of any kind so he just runs the game and hopes it works
Jump in the discussion.
No email address required.
More options
Context
Don't nest
if
statements, use a guard.is_teacher
can be True, False, or maybe even null. This way I guarantee the program moves on if the check fails. I don't need to go through all the possible omelet recipes if the customer didn't order eggs.The next part is him checking scenarios. An enum + switch statement would work. Giant if else chains are acceptable when you use guards. Except he doesn't understand "and" operators which is reeeeeaally basic
Jump in the discussion.
No email address required.
Yandev is terrified of function calls, he doesn't ever use them
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
Jesus no wonder this game took so long to make, and runs like complete shit lol
Jump in the discussion.
No email address required.
More options
Context
Just fricking imagine having a typo in there
Jump in the discussion.
No email address required.
More options
Context
World's smartest coomer.
Jump in the discussion.
No email address required.
More options
Context
Jump in the discussion.
No email address required.
More options
Context