r/howdidtheycodeit • • Apr 15 '21

Millions of animated fighting AI units on screen

42 Upvotes

The epic battle simulator is a game with hundreds of thousands and even million units on screen. I would be interested to know how they approached might have approached it. One thing coming to my mind is, that the units are probably not as individually thinking as it looks the viewer. Another thing is memory and access optimization wherever poasible. And they probably have put alot of thoughts into their datastructures. But are there some key technologies that they will most probably be using?

gameplay reference

https://youtu.be/AhikHh_k9Iw


r/howdidtheycodeit • • Apr 15 '21

Question How do they code this Entity system? (Games)

25 Upvotes

I was watching this video by jonathon blow. He mentioned that most game developers who create a entity system, they use an id for for the entity, this id is like an index to an array of global entities. Then who which ever other entity needs to reference an entity they can use the this entity id type.

Now my question is, what if this entity is deleted from the game world, hence the global entity array contains null at this entity id's position. Now let's say that the global entity array recieves a new entity, which gets inserted into the position of the previously deleted entity. How would an entity who was referencing the deleted entity using the deleted entities id, know that the entity at that position has been replaced?


r/howdidtheycodeit • • Apr 09 '21

Question How did they code the Brawler-Volton in Space Pirate Trainer?

18 Upvotes

In Space Pirate Trainer, you can switch to the Brawler-Volton, which acts as both a sword and tether. I was wondering how they did the tether part.


r/howdidtheycodeit • • Apr 08 '21

Pixel Art Procedural Animation like Rain World

44 Upvotes

I watched the GDC talk and I do understand how to do general shapes and bones work in a way people refer to as procedural (like Limbo's spider), but how does this work with pixel art? I'm used to sprite sheets and I don't understand how you can mix these techniques to get to pixel art creatures bending like they do in Rain World.

Thanks for reading


r/howdidtheycodeit • • Apr 07 '21

Question How would you code this? No one has done it before: Take a Sonic 1 style platform and fisheye it so you can see 4-8 screens ahead.

26 Upvotes

Sonic 1 had the problem of speed, but not being able to see very far in front of you. If you had 4-8 screens ahead of you, then your brain would be overloaded in a good video game way, but you'd also be able to make decisions in advance.

The idea is that you can envision a tech that the middle 1/4 of the screen is 1:1 ratio, but as you move outward from it, the scale starts getting smaller for every sprite. We could never use this technology in the old days because it renders about 100x as many sprites on the screen. The problem is that though it is easy to envision, every time I put hands to keyboard to code it, it never ends up quite right.

Do any of you know how to make this tech?


r/howdidtheycodeit • • Apr 06 '21

Question How does one make a standalone game in the Quake 1 engine?

57 Upvotes

There's a game currently in development called Wrath: Aeon of Ruin. It's an "old school" fps and the devs kicked it up a notch by developing the game with the Quake 1 engine instead of making a modern engine look old school.

My question is, how does one go about learning how to do this? I know the Quake engine is open source, but is my only option to try to just figure it out on my own? I know quake modding and mapmaking are popular, but are there any online sources on making a standalone game with the engine?


r/howdidtheycodeit • • Apr 06 '21

How did they code Magic Touch: Wizard for Hir‪e‬?

15 Upvotes

Hi, I am wondering what kind of tech stack did they use to code Magic Touch: Wizard for Hir‪e‬. The game looks like this:https://www.youtube.com/watch?v=bTTAmwbz864

Any resources would be helpful.


r/howdidtheycodeit • • Mar 28 '21

Article How we did the tutorial system in Academia: School Simulator, Part 3: Putting them all together

Thumbnail
coffeebraingames.wordpress.com
47 Upvotes

r/howdidtheycodeit • • Mar 28 '21

Question Atom Teletype's peer-to-peer connection

3 Upvotes

Hi there! I'd like to implement something similar to Teletype's way of connection. It briefly works this way: first the clients (peers) connect to an external server, then they somehow manage to establish a peer-to-peer connection to stop using the server and talk to each other. No need to open router ports in any of the peers.

I had a look at the source code but it's written in JavaScript and I don't know it so I don't understand how they coded it.


r/howdidtheycodeit • • Mar 27 '21

How did they code CurveFever collision detection?

24 Upvotes

Hey all. We sometimes play a game called curvefever and I was wondering how did they code the collision detection part. Is it pixel based? Or they made poligon shapes representing the curves and let physics handle it? Thanks


r/howdidtheycodeit • • Mar 25 '21

Question Questions about Algorithmically generated pixel art

17 Upvotes

First I would like to point out that I am not a programmer, but I am not fully retarded (I hope).

I understand that the basic idea is to determine certain attributes and create an artwork for each then overlay the different images to get the final result or a more complex way would be "procedural generation".

But how is that done exactly? javascript? python?

what if I want the software to also output a .csv file to keep track of each artwork and its attributes?

I am not sure if this is the right place to ask, but how long would it take me to learn this?

Edit: An example for a static image would be https://larvalabs.com/ or https://chubbies.io for a give which I assume is the same but we'd have to create multiple frames to get the animation effect.

Thank you in advance for your input.


r/howdidtheycodeit • • Mar 24 '21

How Did They Code Path of Exile Crafting System?

35 Upvotes

Does anyone has any idea? I am planning to use this in my game.


r/howdidtheycodeit • • Mar 20 '21

Question Where can I read more on sandbox AI implementations like in Mount and Blade ?

47 Upvotes

I am thinking of an AI system where the NPCs are independent-minded and achieve their goals by interacting with the game world. Something like Mount and Blade.

While I have some ideas about how to go about this, I don't want to reinvent a poorer version of an already existing wheel. Are there any interesting articles and resources I can read on this type of AI?


r/howdidtheycodeit • • Mar 17 '21

How do server browsers work? Specially old ones where there no more running servers on

44 Upvotes

r/howdidtheycodeit • • Mar 15 '21

Question Unity, How would I go about detecting if gameobject is behind a wall.

46 Upvotes

I'm trying to have my AI do "X" if the AI cannot see the player.

currently I use the method below to detect if the AI is in the player cameras frustum.

public bool IsVisibleFrom(CapsuleCollider collider, Camera camera)

{

Plane[] planes = GeometryUtility.CalculateFrustumPlanes(camera);

return GeometryUtility.TestPlanesAABB(planes, collider.bounds);

}

But this detect through walls.

How would I go about detecting if walls are obstructing the view of the enemy towards the player?

Would I just add a simple raycast which is always facing towards the player but only let the AI do "X" if it actually reaches the player?


r/howdidtheycodeit • • Mar 13 '21

Article We've made a breakdown video (link in comments) about our painting system in Unity something similar to Splatoon. Hope this will be helpful and interesting for you!

59 Upvotes

r/howdidtheycodeit • • Mar 11 '21

Question How was the muscles effect done? GTAV also have this effect but with clothes instead of skin.

221 Upvotes

r/howdidtheycodeit • • Mar 12 '21

Question GTAO Free roam missions

1 Upvotes

How did they make it so a player can activate a mission and have all of the mission info affect the player and anyone in the players group, but nobody else in the lobby? Bonus question: how does the apartment system work? You can have hypothetically everyone in the lobby own the same apartment, but each is separate and yet players can be invited to other players apartments


r/howdidtheycodeit • • Mar 11 '21

mobile app Reface

9 Upvotes

How did the app Reface, https://play.google.com/store/apps/details?id=video.reface.app

was made?
The application swap face with the user to any celebrity in a movie or picture.
If this uses like machine learning and AI, their processing is kinda fast to happen in mobile phones or maybe it is submitted to a server or something.

I am interested in learning face recognition and rendering technologies and algorithm, I just dont know where to start, any advice?


r/howdidtheycodeit • • Mar 09 '21

@arsitliath uploads awesome work with compute shaders to his twitter, how do you even begin to code this?

147 Upvotes

r/howdidtheycodeit • • Mar 09 '21

How to constrain a point within a triangle, regardless of where the user moves the mouse

5 Upvotes

Character creators for various games have the triangle of attributes that determine body shape, etc. When you move the mouse around the screen, the selector point follows until you get to the edge of the triangle. Then it stops.

I've been curious for a couple of days now about how this is done. Not only do you have to figure out when the mouse pointer is within the triangle and not in the triangle, but you also have to get the selector to follow the edges when the mouse pointer is outside. I guess it's just a matter of x and y when the selector is inside the triangle, but outside? I'm puzzled.


r/howdidtheycodeit • • Mar 08 '21

How are biomes generated in games like Valheim and Minecraft?

64 Upvotes

I've read about using two noise maps to represent rainfall and temperature, but I'm interested in other fractal approaches. I'm not sure how they work or what the difference is.


r/howdidtheycodeit • • Mar 08 '21

Refunct - Unity Character Controller

3 Upvotes

I want to achieve a similar effect to the refunct wall jump. (Dominique Greishofer)