Final Project

Mac Padilla
2 min readMay 4, 2021

May 4th, 2021

Arcade Baseball 2021

The inspiration of my work was dedicated to Arcade Baseball games. In any arcade building you can almost always find the baseball game. Where a ball comes down and you press a button to swing a bat and it hits the ball to the back of the game where it would either give you an out, single, double, triple, or home run. In my version it either gets you an out or a home run. The challenges I faced were the ball starting to fall and to reset the ball at the top. It took me accumulative about 6 or so hours to figure out the ball and about 2 hours to figure out the reset functions. I think the biggest thing that helped me was breaks, some days I couldn’t figure it out and spent way too long looking at code. I would come back the next day and solve my problem in 10 minutes. This happened three times if you can believe that. The logic behind my code is very simple. It uses a loop to make the ball go down and you can also click the ball. I can reset that loop at the bottom with a button after you get an out, foul ball, or a home run. Buttons are also used for outs and the score. The most interesting thing I learned was how I can program different buttons to do different things.

Baseball Pro Arcade Game
Image of how the back wall works
Baseball field I made mine off of

--

--