Blockly GamesPuzzleMazeBirdTurtleMovieMusicPond TutorPondGeneticsYou solved this level with 1 line of JavaScript:You solved this level with %1 lines of JavaScript:Are you ready for level %1?Are you ready for the next challenge?Title:Save and link to blocks.Run the program you wrote.Run ProgramStop the program and reset the level.ResetHelpOKCancelLogicLoopsMathTextListsColourVariablesFunctionsThere was a problem with the request.Share your blocks with this link: %1Sorry, '%1' doesn't correspond with any saved program.Could not load your saved file. Perhaps it was created with a different version of Blockly?Thank you for this program! If our staff of trained monkeys like it, they will publish it to the gallery within a couple of days.listtextOnce you start editing JavaScript, you can't go back to editing blocks. Is this OK?Blocks
Scan for enemies. Specify a direction (0-360). \nReturns the distance to the closest enemy in that \ndirection. Returns Infinity if no enemy found. Fire the cannon. Specify a direction (0-360) and \na range (0-70). Swim forward. Specify a direction (0-360). Stop swimming. Player will slow to a stop. Returns the player's current health (0 is dead, \n100 is healthy). Returns the current speed of the player (0 is \nstopped, 100 is full speed). Returns the X coordinate of the player (0 is the \nleft edge, 100 is the right edge). Returns the Y coordinate of the player (0 is the \nbottom edge, 100 is the top edge).
RabbitCounterRookSniperPlayer

Player
 
Rook
 
Counter
 
Sniper
 
Blocks
JavaScript
0°70cannon(,);
07000119