Ball
by tian shi
Project Description
Whoa! I learned how to use these things. Anyhoo, this is a game about popping the Balloon! This is something I cooked up during class, it was originally a program about simulating a ball bouncing.
Here are the game instructions:
Press space to throw the turtle, that's it!
Make sure the balloon lines up with the turtle so you can pop it.
HIWD (How It Was Done)
I used sin in graphing form and translated it to one axis, which is the Y axis. Basically, Sin on the graph goes on a horizontal wavy line that continually moves across X axis. If you want to see how it's simulated, check out my Double Pendelum Project to see how it works. I flattened this wavy line so it only moves up and down without moving across the screen. Then I added in a turtle, made it smaller and move towards the center when space is pressed, placed in a sprite at the end of the sprite, made it so when the sprite touches the balloon the balloon pops, and voala! You have a balloon popper, or in this terms, "Ball."
I hope you learned a thing or two from this and you can apply this to your own stuff so you can express your own ideas. I love seeing people create something they're passionate about. If not, I hope what I do can inspire you to create something you're passionate about. Whether that'd be music, art, or programming, I hope you find something that fits you :)
Created May 15, 2024
Last updated May 21, 2024
Published May 17, 2024