Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
1 of 21
Project
3 of 21
when clicked
wait 0.5 seconds
go to x: -200 y: -130
point in direction 90
switch costume to snowball-aim
repeat until mouse down?
point towards mouse-pointer
power
4 of 21
power
when clicked
set power to 0
5 of 21
power
repeat until mouse down?
point towards mouse-pointer
repeat until not mouse down?
point towards mouse-pointer
change power by 1
wait 0.1 seconds
6 of 21
broadcast
when clicked
set power to 0
wait 0.5 seconds
go to x: -200 y: -130
point in direction 90
switch costume to snowball-aim
repeat until mouse down?
point towards mouse-pointer
repeat until not mouse down?
point towards mouse-pointer
change power by 1
wait 0.1 seconds
broadcast throw and wait
7 of 21
power
when I receive throw
switch costume to snowball
repeat until touching edge ?
move power steps
hide
8 of 21
show
snowball-aim
when clicked
set power to 0
wait 0.5 seconds
go to x: -200 y: -130
point in direction 90
switch costume to snowball-aim
show
repeat until mouse down?
point towards mouse-pointer
repeat until not mouse down?
point towards mouse-pointer
change power by 1
wait 0.1 seconds
broadcast throw and wait
9 of 21
forever when flag
clicked
when clicked
forever
set power to 0
wait 0.5 seconds
go to x: -200 y: -130
point in direction 90
switch costume to snowball-aim
show
repeat until mouse down?
point towards mouse-pointer
repeat until not mouse down?
point towards mouse-pointer
change power by 1
wait 0.1 seconds
broadcast throw and wait
10 of 21
when flag clicked
repeat until not mouse down?
if power < 20 then
change power by 1
wait 0.1 seconds
11 of 21
when I receive [throw]
when I receive throw
switch costume to snowball
repeat until touching edge ?
move power steps
change power by -0.25
hide
12 of 21
if
when I receive throw
switch costume to snowball
repeat until touching edge ?
move power steps
if power > 0 then
change power by -0.25
hide
13 of 21
when I receive throw
switch costume to snowball
repeat until touching edge ?
change y by -5
move power steps
if power > 0 then
change power by -0.25
hide
14 of 21
when clicked
forever
if touching snowball ? then
say You got me! for 1 seconds
15 of 21
16 of 21
broadcast forever
when clicked
forever
set power to 0
broadcast new shot
wait 0.5 seconds
go to x: -200 y: -130
point in direction 90
switch costume to snowball-aim
show
repeat until mouse down?
point towards mouse-pointer
repeat until not mouse down?
point towards mouse-pointer
change power by 1
wait 0.1 seconds
broadcast throw and wait
17 of 21
when I receive new shot
set x to pick random 0 to 200
18 of 21
when I receive throw
switch costume to snowball
repeat until touching edge ? or touching Rocks ?
change y by -5
move power steps
if power > 0 then
change power by -0.25
hide
19 of 21
20 of 21