Another rail crossing based on SR latch based combination logic. How it works:
- The crossing is "normally open" meaning both player and train can cross it
- if player gets close to crossing while it's open, it will close train tracks untill player leaves
- if train gets close to crossing while it's open, it will close player path untill the train leaves
As long as the player and the train don't enter the crossing in the exact same frame and the rail signal is put far enough to give time for the crossing to close, you "shouldn't" be able to get hit by train, or at least I wasn't able to. Of course everything can be broken but I don't think it can get any safer than this
