ScratchData LogoScratchData
Back to coderangers's profile

Getting unstuck day 7 - minigolf

COcoderangers•Created July 14, 2020
Getting unstuck day 7 - minigolf
4
0
20 views
View on Scratch

Instructions

To get the ball to the hole: press the green flag click the golfer, Trisha she will ask for your instructions. Enter: L for left, U for up, D for down and R for right. Enter all of your instructions in one go (ie RRRDD) then press enter - this counts as one shot. Watch the ball move. Take another shot if needed. If you get to the hole within 3 shots you get a point. Each time you get to the hole, the hole moves and shrinks a little.

Description

I had to make this project really fast, to get to work on time! I think it could do with a clean up as there are code blocks everywhere and most likely much more efficient ways of getting the result I wanted. I spent a lot of time trying to make the directions from Trisha's perspective: so forward left and right as she would see it, but due to time pressure I've settled on the player's perspective. I also wanted to use velocity features for a smoother roll, but realized this probably won't work if I'm adding a lot of instructions in one batch. I was inspired by @walatree who created a cool project which required you to enter a lot of movement instructions and then broadcast them to get to a destination on screen. I hope you enjoy this project!

Project Details

Project ID411651389
CreatedJuly 14, 2020
Last ModifiedJuly 14, 2020
SharedJuly 14, 2020
Visibilityvisible
CommentsAllowed