This is a little simulation I made this morning. You drive the train locomotive. Left and right arrows to throttle up and down, A and D to control the brake. When you start the game there will be a big slider variable asking you to set the load. This load simulates how much weight the train is pulling. None of the measurement units are really based off of anything fyi.
You might be thinking that I did a great job drawing that train, but if you've seen my other projects, you'll know that I'm not much of a pixel artist. Well, I didn't draw it. I used a picture of a real locomotive, decreased the size in the editor, and boom. For more information on how i drew it see this: https://scratch.mit.edu/projects/449423749/ If you read the description, keep in mind that I shared that two years ago.