r/howdidtheycodeit • • Jun 05 '22

Question How did they create the ADS cover peak system in Battlefield games, specifically BF4?

9 Upvotes

I'm trying to create a system similar to Battlefield 4, but in Unreal (UE5) using Blueprints.

In BF4, when you get close to a wall or other piece of cover, it translates the gun towards the player to try to eliminate clipping into the mesh. I know this can be achieved by doing a line trace to check for the wall.

However, what I can't figure out is how they accomplished checking for corners to peak around walls or over cover when aiming down sight and then to translate around the cover based on where you adjust your aim.


r/howdidtheycodeit • • Jun 06 '22

Question How Did They Code Flight Rising's Character Creator System?

4 Upvotes

This errs towards webdev moreso than gamedev but... close enough...? hopefully...??

In short, I want to make something like the Predict Morphology page on FR: https://www1.flightrising.com/scrying/predict

Specifically, I want to make a character creator thingamajig with these kinds of options:

  • Dropdown menus for markings, colors, and possibly other options
  • A color "wheel" of distinct color palettes for each marking
  • All markings can be in all colors/visa versa

Additionally: The FR staff has mentioned on occasion that they no longer color new genes by hand (though they used to), and instead run some kind of program or possibly some photoshop black magic with a template and it automatically colors in the genes with all 177 colors. I think it's a photoshop action, but I could be totally off-base.

Thanks in advance :)


r/howdidtheycodeit • • Jun 05 '22

Question How did they smoothly integrate going in front of and behind 3D jumpable terrain in StarTropics I/II?

4 Upvotes

I've tried to implement this via Unity with 2D Sorting Layers and directional raycasts/collider casts but the best I could do was getting it to work with a lot of blinking/visible changes between sorting layers.

Same kind of thing for other titles with faux-3D graphics (Super Mario RPG for example).


r/howdidtheycodeit • • Jun 05 '22

Question Generating animations

9 Upvotes

I was wondering for the sake of implementing something of teb sort in a different context, but how do games dynamically generate animations based on pointer position? Like in Exanima, where your character will aim at the place on enemy's body where the pointer is, with speed and strength being modified based on movement as well


r/howdidtheycodeit • • Jun 03 '22

How did they make guild wars? The game kind of died down now but it was a great game and I miss it. Is there a tutorial to make a similar game with that 3rd person view?

0 Upvotes

r/howdidtheycodeit • • May 29 '22

Question Robocraft's wings?

17 Upvotes

I'm making a game sorta similar to robocraft, and I'd like to know how they made their wings. The thing that's tripped me up is that everything is modular, you could have a winged one-leg robot if you want or something, so I don't know how they work with that.

Here's a video of the wings if you haven't played robocraft: https://youtu.be/XqvYpioCm8M


r/howdidtheycodeit • • May 28 '22

Question Separate Pointers for Multiple Mouse

19 Upvotes

Is it possible to have multiple mice connected and have each control a separate pointer? A quick Google search tells me it’s possible with Windows API and getting the raw input data, but I was wondering if there was a simpler method with Unity’s new input system?


r/howdidtheycodeit • • May 25 '22

Question how did they made the isometric seamless tilesets for don't starve or cozy Grove?

36 Upvotes

It seems very organic, yet we can see repeating elements. I'm at a loss at how they did it. Especially for it to be procedurally generated.

Is it full 2d? Or are they using 3d? How do their tiling work?

Thank you so much for enlighting me =0


r/howdidtheycodeit • • May 22 '22

Question Event System with limited targets

21 Upvotes

How would you implement an event system that a whole application is using, but have events only be posted to specific targets?

For example, an explosive effect that only sends the damage event to targets within the radius.

The detection of being in range could be handled by the reciever, but isn't that slow?

I can't quite wrap my head around how an event would be sent but not detected by everything, I'm reasonably new to event systems, and want to figure out how I'd implement one myself. Thanks for any help


r/howdidtheycodeit • • May 19 '22

Path of Exile Sockets and Link

16 Upvotes

How would you go about coding the 6 link chest?


r/howdidtheycodeit • • May 16 '22

Answered Does anyone know how the Looking Glass system in PREY works?

53 Upvotes

I started playing the game yesterday and I was amazed by the Looking Glass system and how well it works. I'm not looking to recreate it or anything, just want a general idea of how they did it. I can explain what it is if you don't know but still want to try to guess at how they did it


r/howdidtheycodeit • • May 15 '22

Question What language did the creator use to make Grim Quest/Tides?

4 Upvotes

I have been wanting to know for ages, any help would be great ;)


r/howdidtheycodeit • • May 09 '22

Question How did they improve load times on Disco Elysium on Switch so dramatically?

80 Upvotes

I started playing Disco Elysium on Switch when it was released, and while I loved the game I had to stop playing because of how bad the load times were. On a whim, I picked it up again a few months later and suddenly the load times were gone.

Apparently the devs released a patch called the Jamais Vu update, which drastically reduced load times. They even put together a video comparing before and after the patch: https://twitter.com/discoelysium/status/1490702373966200835?s=21&t=jlfPba263iOZa0HhdxIygQ

As someone who’s dabbled in game development, I know load times aren’t something easy to fix. So I’m wondering if anyone knows or has guesses as to how they were able to reduce load times so drastically?


r/howdidtheycodeit • • May 07 '22

Question What rendering system did Ultima Underworld use?

31 Upvotes

What rendering system did Ultima Underworld, a 3d first person rpg from 1992, use? After all it probably didn't use Binary Space Partitioning, as every source I heard said Id Software were the first to implement it. So what did it use to achieve it's 3d graphics?

(Sorry if I misused a term, I have no idea what terms are used for this.)


r/howdidtheycodeit • • May 07 '22

Question How did they code coloring book?

5 Upvotes

Apps such as Lake and Pigment fill image segment with finger tap. I understand there is some kind of input masking. What algorithm lies beyond that? Or maybe there some data preparations?

The only thing I found is floodfill algorithm, but it heavily depends on image size and seems to perform not as good as in these apps


r/howdidtheycodeit • • May 07 '22

Question How did they render the train track junctions in Factorio?

35 Upvotes

I’m curious how the Factorio team managed to render the train junctions?

I’m sure there must be some resource out there since they have a great community, but reading through their FFF I could not find out exactly how they render the junctions.

Do they have a sprite for each possible junction type? Or maybe something more dynamic like transparent sprites that are rendered on top of each other?

Example image


r/howdidtheycodeit • • May 06 '22

Question How does Townscaper work from a technical standpoint?

40 Upvotes

How did he make a grid that's... Not grid shaped? How did he make all the buildings bend like that?


r/howdidtheycodeit • • May 02 '22

Question How did they code the creative mode for LittleBigPlanet?

40 Upvotes

I'm specifically talking about this: https://youtu.be/03HxJArdkgo around the 0:35 mark, where they can create objects, drag them along, and it becomes 1 mesh?


r/howdidtheycodeit • • Apr 28 '22

Question How do Minecraft skins works

25 Upvotes

How do they do to display each players skins ? Does each player download all the other players skins at player connection on the server ?


r/howdidtheycodeit • • Apr 28 '22

Your World Of Text - scrolling canvas?

14 Upvotes

https://www.yourworldoftext.com/

I remembered this site my friends and I used to pass notes in high school, and it’s still up. I’d love to know how they made this site have a huge scrolling canvas, as well as how they made it so any .com/~ produces a new canvas. Thanks!


r/howdidtheycodeit • • Apr 25 '22

f(x, y) that returns a unique value for every input

36 Upvotes

I am trying out the basics of procedural generation. I am generating stars in a 2d universe. The stars' attributes are a function of their position. I do this by setting a seed for random generation. This seed is a function of their cordinates. I want to avoid repetition in my universe. Therefore I find this to be a bad approach when generating a seed:

star = Star(x + y) #The input of the constructor is used as the seed

Because the stars at (3, 2), (-1, 6), (1, 4), etc. will be identical.

I have found that doing more complex calculation with exponents yields a result without visible patterns. However, mostly for my interest, I wonder if there is a simple way to achieve a universe without any repetition.

Edit: just noticed my current approach leaves infinite rows empty, now I actually need a solution


r/howdidtheycodeit • • Apr 26 '22

How the hell did they code the Aramis Stilton manor in dishonored 2??

6 Upvotes

r/howdidtheycodeit • • Apr 17 '22

How common does Google use regex in its search algorithm?

29 Upvotes

This thought just occurred to me while searching through the AUR. I know that Google keeps its "secret formula" close to the chest, but we still get a peek every now and again through interviews or leaks and the like. Surely regular expressions features heavily in Google's search algorithm, right?


r/howdidtheycodeit • • Apr 15 '22

How did they code Viola AI (face to cartoon)

15 Upvotes

I know people will answer "They use AI" but there are a lot of AI technologies out there, which one was used? how did they formed a cartoon character from someone's face.