Motion
Looks
Sound
Events
Control
Sensing
Operators
Variables
My Blocks
y vel0=notx vely vel/atanofy vel0<180turndegreesifthenpoint in directionx vel0.95*x vely vel0.95*y velHuman playertouching?Human player180directionsinof3*Human playerVelof1*+directioncosof3*Human playery velof1*+sety veltosetx veltoturndegreespoint towardsRobot playertouching?Robot player180directionsinof3*Robot playerx velof1*+directioncosof3*Robot playery velof1*+sety veltosetx veltoturndegreespoint towardsHuman playertouching?Robot playertouching?and00sety veltosetx veltox positionabsof225>x position0>0x velabsof-setx veltox position0<x velabsofsetx veltoiftheniftheny positionabsof165>y position0>0y velabsof-sety veltoy position0<y velabsofsety veltoifthenifthenHuman goaltouching?robot goaltouching?ory positionabsof620y velabsof-+>y position0>0y velabsof-sety veltoy position0<y velabsofsety veltoifthenifthenifthenifthenifthenifthenifthenifthenifthenchange y bysety veltochange x bysetx veltoifthenforeverwhen I receivestartHuman goaltouching?y positionabsof570y velabsof-+>y position0>y velabsofsety veltoy position0<0y velabsof-sety veltoifthenifthen1goal000090point in directiongo to x:y:sety veltosetx veltobroadcastand waitchangeRobot scorebyifthenelserobot goaltouching?y positionabsof570y velabsof-+>y position0>y velabsofsety veltoy position0<0y velabsof-sety veltoifthenifthen1goal000090point in directiongo to x:y:sety veltosetx veltobroadcastand waitchangeHuman scorebyifthenelseifthenifthenforeverwhen I receivestart000090point in directiongo to x:y:sety veltosetx veltowhen I receivepositionnext backdrop25changecoloreffect by0setcoloreffect toclear graphic effectsbackdropnumberstop all sounds10changepitcheffect by100setpitcheffect toclear sound effects-10change volume by100set volume to%whenclickedwhenspacekey pressed10whenloudness>1waitseconds10repeatforeverifthenifthenelsewait untilrepeat untilanswerspacekeypressed?mouse down?mouse xmouse yloudnesstimerreset timercurrentyeardays since 2000username  +  -  *  /110pick randomto 50> 50< 50=andornot  mod round absof10movesteps15turndegrees15turndegreesrandom positiongo to00go to x:y:1random positionglidesecs to100glidesecs to x:y:90point in directionmouse-pointerpoint towards10change x by0set x to10change y by0set y toif on edge, bounceset rotation styleleft-rightx positiony positiondirectionHello!2sayforsecondsHello!sayHmm...2thinkforsecondsHmm...thinksoccer ballswitch costume tonext costumebackdrop2switch backdrop to10change size by100set size to%showhidego tofrontlayer1goforwardlayerscostumenumbersize play sounduntil done start soundvolumewhen this sprite clickedwhen backdrop switches tobackdrop1when I receivegoalgoalbroadcastgoalbroadcastand waitstopallwhen I start as a clonemyselfcreate clone ofdelete this clonemouse-pointertouching? touching color?  coloris touching?mouse-pointerdistance toWhat's your name?askand waitset drag modedraggableStagebackdrop #ofapple bananajoin1appleletterofapplelength ofappleacontains?Human scoreRobot scorex vely vel0setHuman scoreto1changeHuman scorebyshow variableHuman scorehide variableHuman scoreMotionLooksSoundEventsControlSensingOperatorsVariablesMake a VariableMake a ListMy BlocksMake a Block
Switch to small stage
Switch to large stage
Enter full screen mode
2
1
soccer ball
Human player
Robot player
Human goal
robot goal
Textos
Stage
Backdrops
2