Inspiration

I was inspired by one of the Wii Sports Resort Basketball mini games where you had to make as many basketball shots in a certain amount of time

What it does

In this game, you shoot basketballs into a hoop. Seems simple enough, but the hoop keeps on changing positions after each shot, so you have to have really good aim to get the right shot! There are three different game modes, each providing a different a challenge or a fun way to relax

How I built it

I used the Scratch game engine to make the game, piskelapp to make the artwork, and Bosca Ceoil to make some of the sound effects and music. The main thing that took a while to make was the dotted line showing where the basketball was going to land. This was made by getting the position of the mouse, and using quadratic equation, I assumed the mouse was going to the maximum value of our quadratic equation, and formed an arch using that. Now that the arch has been created, I had to make sure that the basketball would follow that line, so I made a physics engine that would follow that line. To make the chains of the hoop work I had two box collider, one for each side of the hoop, and depending on which one was hit, the chains would move in the opposite direction

Challenges I ran into

One of the bigger challenges of this project was making a physics engine. In my past projects, the physics engine didn't play such a huge role in the game, while in this game it does. Scratch also doesn't have a built in physics engine so i had to build one myself, and I had to keep on testing it to make sure everything worked properly

Accomplishments that I'm proud of and What I learned

One thing I learned was how to use complex math in your project (explained above). This was quite a challenge because in my past projects, the most that math they would use would be simple operators such as addition or subtraction

What's next for Ball Shot

More game modes most likely

Built With

  • scratch
Share this project:

Updates