In Electronic Baseball you press the button p on your key board to pitch. But be ready, after that in 1 second it will pitch so if it's over the plate press h to hit it. You know if you get a hit because the smaller red dot will go to a random spot in the outfield and keep moving. If you get a hit keep pressing r to run. Keep running until you are at the farthest base you think you can get to before the ball is thrown in. Just so you know you are the bigger dot. Press the stats button to view the innings, balls, outs, and strikes you have at the top. Press the score button to see the score. You are the visitors. After every time you get three outs the home team automatically gets a certain score between 0-5. It is a nine inning game but trust me it goes by quick. There are many glitches I would be appreciative if you could help me fix. If the game is hard for you I will let you use glitches to your advantage. If the game is easy for you than please challenge yourself and don't use glitches. If there's anything else you're having trouble on just ask me. Also I worked very hard so please leave a heart or star (or even better both!). Hope you enjoy. (P.S) sorry if somebody becomes invisible and then scores. You will know you scored though because of the crowd! This happens from one glitch that makes more runners available and it still keeps them running.
I got the idea from an actual game called Electronic Baseball. It is not online, but if you search it up on google images you should be able to see it. If you have it please tell me in the comments how similar it is and what you want me to add to make it better. Besides the idea from the real thing, everything else and all of the coding is by me. Enjoy!