Rail Game Features: Switches, Hops, Lock-On and More
Dead Rail is a rail game built on switches, rail hops, lock-on shooting, rival chases, boost and lifts. Here is what each one does and how it's tuned.
AI generatedYou're rolling at 30 meters a second down a canyon rail. The track splits three ways ahead. A rival cart sits two hundred meters out with a bag of gold. You've got a revolver, a boost you haven't spent, and about four seconds to decide.
That's Dead Rail on a good day. It's a rail game you drive, not a rail shooter on rails, and this post is a tour of the things that move in it: what each one does, why it feels the way it does, and the odd detail behind the tuning. It's a mine cart game in spirit, built as a Godot 3D game. Every feature here is in the build today, and where something is brand new, I say so.

It's close to a rail racing game and a rail driving game at once, though you can also just ride. Races happen when a rival wants the same prize. When nobody does, you explore. You can try the playable build when one is ready, and there's more about me on the about page.
Rail switches, and now a three-way
Lean toward a side as a fork comes up and the track follows you. Switches are the heart of the game. There's no steering wheel on a minecart, so the only real decision you make is which rail to take. Lean left, lean right, or let the cart run straight. The screen shows arrows for the branches, and the one you've picked lights up.

The first version had a bug I caught by ear and by hand: on some forks, left was right. The sides came from how the junction was authored, and on switches where the trunk lay ahead of the branches, they came out swapped. The fix was to ignore the authored side and measure it from the track itself, 25 meters out from the node. Now the cart works out left and right from where the rails actually go, and a separate check measures it a second way so the two can't quietly agree on the wrong answer.
If you've built switches and junctions in a block game, you know the layout thinking. People swap tips on Minecraft railroad design, Minecraft railroad switch builds and Minecraft railroad ideas all the time. Dead Rail takes the same love of a clever junction, except the game does the redstone for you and the routes are hand-built. Dead Rail is not affiliated with Minecraft or Mojang.
New this week: the first three-way switch. I asked for a real one, and I was specific. No lean means the middle track. One lean steps you to the near exit. A second lean steps you to the far one. The lean has to fall back below the threshold before the next step counts, so a held stick doesn't skip you across two tracks by accident. You'll find it on the lane race, where the lanes sit 16 meters apart so left, middle and right each get their own track. Rivals read the same switch by name, so they pick their own way through.
Jump hops and rail hop chains
Where tracks run side by side, you can leave yours. Jump, lean toward a neighbor 2.5 to 6.5 meters away, and the cart rolls a full 360 degrees in half a second and lands on the new rail. A gold glow on the target track shows you where you'll come down while you lean. If there's no rail on that side, you get a little rocking wobble and a message instead of a fall into the void.
The barrel roll was my idea. I wanted the cart to literally flip when it switches rails, so a hop looks like something that happened and not a slide. A chain is the same trick, twice. Press jump again within 0.6 seconds of the first hop, still in the air, and you cross one more rail in the same flip. The roll doesn't restart. It keeps turning, and the air time stretches to fit.
On the lane race the lanes pinch closer together until they're 5 meters apart, with timber standing between them. That's where hop chains pay off, and where a bad one ends in a crash.
Lock-on shooting and the clink
The gun on your cart has a lock-on that picks targets by how close and how dangerous they are. A gold bracket marks the one it's holding, and the reticle shows a heat arc so you can see when you're pushing the barrel. A rival that's far away loses priority to a barrel right next to you, so the aim doesn't wander off a nearby threat for a distant one.
The newest bit is the sound. Every hit on a rival cart plays a layered metallic clink, with a different crew's hit sound underneath. It sounds small written down, but it's the difference between shooting at a model and shooting at a thing made of iron. A wreck gets a heavy clank and a wail.
The rival chase, and rivals talking back
Rivals want what you want, they take shortcuts, and they've got opinions. Dead Rail isn't a formal race. Rivals show up when someone else wants the same prize. The Baron starts in front of you at the station, and the screen reads "BARON: AHEAD" from the first second. Rivals drive the same physics you do, with the same motor, so a rival that hops over another cart does it with the same wind-up you'd get. That wind-up is half a second of crouch before the leap, which is long enough to read and dodge.

And now they react. Shoot a rival and it yelps in its own voice. Wreck one and it wails. The rider commentary and the rival commentary sit in separate sets so they don't talk over each other, and there's a minimum gap between lines so a burst of fire doesn't turn into noise. Rivals only speak when you're close enough to hear them. They also pick different branches at switches, avoid loops with no way out, and get set back on fresh track if they stall. Meet the crews in the rival overview, starting with the Copper Baron.
Boost, and the gold that comes with it
On the lane race the normal boost is reserved for pads, so I asked for a gesture that's always there. Three taps of X inside 0.6 seconds give you a boost to 60 percent of the way between top speed and pickup speed. It lasts 7.5 seconds. That number started shorter. My note was blunt: make it five times longer, "I'm just going to stop it on my own if I want." So it's longer, and pulling the brake cancels it. The cooldown is 12 seconds, and a message reminds you of the gesture once, about 8 seconds into a run.
The gold arrives with a flourish. When you grab a claim, the nuggets leave the ground in a high arc, tumble two and a half turns, pop to twice their size at the top and settle into the rack on your cart. Each nugget lifts 3 meters and bows 1.4 meters toward the camera. That bow fixed a complaint from this week: the pickup looked flat from the chase camera, so the arc now leans into the lens. It's the closest thing the game has to a jackpot noise.
Lifts and turntables
The rail lift is a moving piece of track. You roll on at one end, it carries you, and you roll off the other. The town lift rises 60 meters in about a 12-second ride, and the tower builder can make one any height from 2 to 400 meters. Roll in too fast and the lift slows you to 3.5 meters a second before you reach the platform.
The turntable is the opposite idea: a circle of track that spins. Push left for a quarter turn counterclockwise, push right for a quarter turn clockwise, press interact for a half turn, or wait and it turns 180 degrees by itself after 1.5 seconds. Rivals use the automatic timer, because rivals never press buttons. Both machines were built as moving segments rather than special cases of the cart, so the camera, the physics and the rivals all just work on them.
Tunnels and the waterfall passage
The lane race has an interior gallery: 720 meters of six dark bores, 13.5 meters apart. Each lane wanders in seeded S-bends of its own so the six rails never feel stamped from a template. In places the rock opens to windows of daylight, and in one stretch you pass behind a waterfall. I asked for exactly that passage, a ride behind falling water, and it's in the lane race data.

Getting there took work on the rock. Early tunnels had walls that cut through rails and roofs with holes in them, so every tunnel mass now carries its own hill shape, and a check measures at least 10 meters of rock over every crown. The camera got a tunnel rule too: it doesn't duck on entry, so you see the mouth coming.
How it gets built: track marks and the voice button
Two tools let one person direct a lot of work. The first is a track sketch tool, and it exists only for me. While flying free, I press K and a numbered magenta pole called "MARK 3" drops at that spot. The marks save with their heading and nearest rail. Agents read them and lay real track along the line. It switches itself off in exported builds, and a release check reads the shipped files to prove it.
The second is in the game for everyone who tests it: the voice-note button. Press N, F8 or the pad's Back button and the world pauses while you talk. A free camera lets you fly to the problem and point at it, and a reticle records what's under it. The recording is transcribed, turned into a ticket, and routed to the agent that wrote the code involved. Most of what's in this post started as someone talking out loud while playing. The full story is in how I make a game with AI.
Try it, and tell me what's wrong
Everything above is in the build now. The wishlist on the home page is where new builds land first, and the voice button is the fastest way to complain. I read every note.
More from the blog
- The Dust Devils: Outlaw Racers Who Take Your PartsMeet the Dust Devils, Dead Rail's outlaw bandit gang: two riders, a spiked ram cart and a buzz you hear first. Their design, sound, voice and what is built.
- The Ghost Rider: A Silent Rival Who Rides at NightMeet the Ghost Rider, Dead Rail's silent night rival: a lantern, a torn duster and a hollow whistle. His design, sound, voice and what is built so far.
- Madame Spark: The Inventor Who Rewires the Rail Under YouMeet Madame Spark, Dead Rail's inventor rival with a Tesla-coil cart and a habit of rewiring switches. Her design, her sound, her voice and what is built.