TYLER SHELTON
My feedback
1 result found
-
377 votes
An error occurred while saving the comment An error occurred while saving the comment TYLER SHELTON commentedif you like basketball try this
stamp('jumbotron',384,100)
score = 0
display = text(score,384,160,90,CENTER)fill('crowd')
player = stamp('turtle3',100,900,250)
ball = stamp('ball10',125,800,60)
hoop = stamp('hoop',700,500,150)
meter = text('0',80,700,100,'white')function setup() {
hoop.move(700,random(200,800),500)
ball.move(125,800)
xspeed = 0
yspeed = 0
power = 0
meter.change(0)
}
setup()function touching() {
power = power + 1
meter.change(power)
}
// PART II
function untouch() {
xspeed = power * 0.6
yspeed = power * 2
loop = shoot
}function shoot() {
yspeed = yspeed - 3
ball.move(RIGHT,xspeed)
ball.move(UP,yspeed)
if (ball.hits(hoop)) {
sound('crowd')
player.dance()
loop = null
setup()
score = score + 2
display.change(score)
}
if (ball.y > 1100) {
loop = null
setup()
}
}An error occurred while saving the comment TYLER SHELTON commentedyesssssssssssss
TYLER SHELTON supported this idea ·
yo asher!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!