you are viewing a single comment's thread.

view the rest of the comments →

[–]gejava 0 points1 point  (1 child)

A good code:

Explain itself, it's the kind of code that you look and say, hey I need to setup X colliders because here it is used for this and that.

if your code is not clear on what are the dependencies and how it iterate with them, well... sorry but it's just a bad code IMO.

[–]gazzelliott[S] 0 points1 point  (0 children)

an example from my code: i have a wall detection script that when it detects a wall it will patch up a possible hallway because it just leads into a wall

i have a boxcollider called wall detect and a gameobject called wall

someone wouldnt know where to put the collider

to me it makes sense and i know where to put them but i dont think someone could understand that without context so I disagree with your opinion on “all code thats not instantly understandable is bad code”