As an AI response, I can provide you with a simple example of a game implemented in a single HTML file using JavaScript. Please note that actual game development can be more complex and may require additional code, assets, and styling.
Here's an example of a haunted house game with a scary train with spider legs using HTML, CSS, and JavaScript:
Please note that you need to replace the `background-image` URLs for the player and train with your own pictogram and train images for them to display properly. Additionally, this example only includes basic movement and collision detection between the player and train. You may want to enhance and expand the game further according to your requirements.