Passer au contenu principal
Bluvy Tube
Appuyez sur Échap pour quitter le plein écran
Volume m
/
i
Mode Cinéma t
f
/
Gamedev can have a little door discourse as a treat

Raccourcis clavier

Espace K
Lecture / pause
← →
Reculer / avancer de 5 s
J L
Reculer / avancer de 10 s
0–9
Aller à 0 %–90 % de la vidéo
Home End
Début / fin
, .
Image précédente / suivante (en pause)
< >
Ralentir / accélérer
↑ ↓
Volume
M
Couper / rétablir le son
C
Sous-titres
F
Plein écran
I
Image dans l’image
T
Mode cinéma
?
Afficher cette aide

Gamedev can have a little door discourse as a treat

Raj Patel

Raj Patel

@rajio.bsky.social

S'abonner
0 vue Publié le 31/08/2026 02:30
Gamedev can have a little door discourse as a treat
21 commentaires
?
Angus @angusart.bsky.social · 01/09/2026 02:38
I had a fun time dealing with this in an animation context, Should the door use a anim graph with a closed loop, opening clip, open loop, close clip. OR should you set every state to hold last position indefinitely on closed clip and open clip. What's safer, what's taking un-needed resources?
Just to muddy the waters further, with magnetic doors On = Locked (must be closed) and Off = Unlocked (whether closed or open).
S
@sharlesdaviskendy.bsky.social · 31/08/2026 21:40
A door is just a piece of the wall. A closed door is the wall being on. An open door is a part of the wall being turned off.
Ian @wordsoup.bsky.social · 31/08/2026 20:20
The purpose of a door is to restrict access between two spaces unless certain conditions are met. That can be something as simple as "has user turned handle & pulled", "has user broken a light beam at a certain time of the day" or "has user used key" etc...

A door is an if statement.
The purpose of a door is to be a portal that CAN be closed (and perhaps locked). So it's "on" if it can be opened and closed. It's "off" if it cannot transition between open and closed.
Alan Au @alanau.bsky.social · 31/08/2026 18:06
Doors aren't real; they can't hurt you.
Didn’t @lizardengland.bsky.social answer this question years ago already?
Raj Patel @rajio.bsky.social · 31/08/2026 17:35
honestly, knowing them, they probably did. but also its either this or talking about difficulty settings. we deserve some frivolity!
Closed is off. This is trivial if you think of an automatic door.

Or if you think of unlocked, Open, is on. If you lock all the doors in a house and say the doors are on you sound like there's electromagnet clamps rather than a gear mechanism.
Blessed be our internals tools that allow me to name the states "opened" and "closed".

We will ignore all the times that I've instead named them "open" and "close", cause then it's the inverse😩
The automatic door example is flawed!

Good design practice would separate the sensor mechanism from the door itself.

The sensor would be a motion detection component that would turn the door off (open it) when there's motion, and turn it back on (close it) after a period of no motion.
I think if you're mapping and you place a door that can be opened by the player, you almost never make it start in the open position. That happens after the player presses their activate key on it. So in my opinion an open door is "on" (activated) and a closed door is "off" (not yet activated.)
Oh God, this made me miss working in an office. The howling row of debates like this two desks over was nostalgic
I think @talecrafter.bsky.social should have a say in this
See this is the kind of gamedev discourse I can get into, wonderfully pedantic
Raj Patel @rajio.bsky.social · 31/08/2026 12:07
we all deserved a little treat
I love this. Unwinnable arguments over things you make up! Genuinely good fun.
Philosophically IRL it's debatable but in gamedev terms a closed door is clearly ON. A gate is active when it is closed. Think of a laser grid acting as a gate; when the lasers are ON you cannot pass, when they are OFF the gate is open. Same with a door.
Neogetz @neogetzlp.bsky.social · 31/08/2026 07:40
I'm so used to doors needing power to open that my brain defaults to open being on but I can fully see the concept that it's serving its' function most when closed.
And is why you use a named enum state and not a bloody bool! SetDoorState( Open ) so much better than SetDoorState( true ).
That’s why you have to name the bool bDoorOpen.

If you have states you’re just multiplying the problem because IsDoorStateOpen returns true or false and IsDoorStateClosed returns true or false
If I destroyed the door, it would clearly be "off" then. And...
I mean it seems pretty clear to me...
Incredible. I think it's backwards to say the point of a door is passage. The point of a hallway is passage. The entire point of a door is to divide rooms and hallways. On is closed.
Clyde @gametank.zone · 31/08/2026 23:57
Actually door is there to prevent line of sight to unloaded rooms. "On"means the room back there is currently being decompressed!
Jan Willem Nijman @jwaaaap.com · 31/08/2026 13:01
yeah a door is simply a wall you can turn off
The point of a door is entirely binary. It's to be open when you want the path open and closed when you want the path closed. It's like arguing whether the point of a switch is to be on or off; fruitless avenue of comparison.

But like a switch, on (engaged) is closed, off (disengaged) is open.
I mean, it really comes down to whether you consider the doorway to be a part of the door, or merely a place where the door goes. The entire argument kind of just hinges on that.
This has the juice to be bigger than the dress color.
Voir le post d'origine sur Bluesky
Lien copié dans le presse-papier

Connexion

Il est temps de faire une pause

Ça fait 30 minutes que vous enchaînez les vidéos : accordez-vous 5 minutes loin de l'écran. Levez-vous, étirez-vous, buvez un verre d'eau… Les vidéos vous attendront ici.