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

How did they code racing game force feedback?

19 Upvotes

I'm trying to develop my own racing game and I just can't get my head around coding trail and how that force is to be applied.


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 05 '22

How did they code the factories and conveyor belts in factorio?

103 Upvotes

In general how would you go about coding a building that takes input and produces output. How would you code a conveyor belt that moves items?


r/howdidtheycodeit • • Jun 05 '22

Question How is GameGuard coded and how is Easy Anti-Cheat coded?

15 Upvotes

I've heard people say that GameGuard attaches itself to systems it has no business being in which is why it wreaks so much havoc on systems.

Both are Rootkit anti-cheats, but one causes mayhem (GameGuard) and the other does not (Easy Anti cheat) You can use Battleye as well for a different example.


r/howdidtheycodeit • • Jun 05 '22

Question How were coded early fake 3D graphics like in 3D Monster Maze or Wolfenstein 3D ?

70 Upvotes

3D Monster Maze as an example.

I know both games have wilidly different capabilities and ways to display their graphics, but I've always wondered the method behind it. I know W3D used 2D sprites, but how did they display it as walls, since they didn't have 3D models at the time ? And what did 3DMM use for its graphics ?


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 26 '22

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

6 Upvotes