Select up to 4 Hoverbots to fight to the death in the arena (use the number of the robot not the name or enter R to let the computer pick randomly) or watch a full tournament to find the champion (takes a long time!). Top Healthbar shows Shield, Bottom one is Laser Energy. The Robots are automatic, you don't control them BUT if you want to, you can program your own robot and enter it into the competition. Interested? Read on.... REMIX and change the NAME and programming of ONE of these robot hover cars. When you have finished, share the project and I can add your bot to the original project. PLEASE DON'T SHARE REMIXES UNLESS YOU HAVE ADDED A NEW ROBOT! Rules: 1) Set your robot name with the NAME variable. (this must be EXACTLY the same as the sprite name). When the game starts your bot will be given a NUMBER 1 - 4. 2) Program your robot by replacing the code under the yourProgramHere block. 3) Change the colour only of the costumes Here are the commands that you can give your robot: DIRECTION BLOCKS: ThrustROTATE(amount) - will apply a rotational thrust. Positive thrust will accelerate the rotation clockwise. Negative for counterclockwise. TurnDEGREES(degrees) - will turn your robot "degrees" degrees from your current direction. FaceDIRECTION(degrees) - will face your robot in the specified direction. StopROTATION - will stop all rotational movement. MOVEMENT BLOCKS THRUST(amount) - will apply a forward (if positive amount) or backward (if negative) thrust. STOPallMOTION - will attempt to return your robot's velocity to zero. QUERY BLOCKS: FindVECTOR - fills in the "Velocity?" and "MovingInDirection?" variables. RADAR(arcDegrees) - Use RADAR(180) for a 180 degree sweep in the direction your robot is facing. Use RADAR(90) for a more targeted radar pulse. Use RADAR(45) for a pulse that is more targeted still. This sets "item(NUMBER)of TargetAquired?" list to either TARGETFOUND or TARGETNOTFOUND. If the result is TARGETFOUND then "item(NUMBER)of Target#" list is set to the number of the target and local variable TargetDistance is set to the distance between you and the target, otherwise it's set to -1. ATTACK BLOCKS SHOOT(power) - Fires a laser in the direction your robot is facing. You have 20 energy to start. You can choose how much of that energy you want to spend on each shot with the POWER parameter. Your energy recharges over time. This sets "item(NUMBER)of TargetAquired?" list to either HIT, MISS, or NOENERGYFORSHOT. If the shot hits, then "item(NUMBER)of TargetDistance" list is set to the number of the target and local variable TargetDistance is set to the distance between you and the target, otherwise it's set to -1. RULES: There are some limitations on what you are allowed to do: MOTION: You may not use any of the Scratch motion blocks to move your robot. You must use the DIRECTION and MOVEMENT blocks described above. You may use the MOTION variables such as x-position, y-position, and direction to find out where your robot is and which way it is facing. LOOKS: You may not use any of the Scratch LOOKS blocks except for SAY and THINK. VARIABLES: You may query any of the existing variables, but you may not modify them. For instance, it would be cheating to add energy or shields to your robot. You may make and use any additional variables as you wish, but please keep them "for this sprite only" EVENTS: You may NOT use any of the Scratch EVENTS blocks. CONTROL: You may use any of the Scratch CONTROL blocks EXCEPT FOR CLONE blocks. SENSING: You may not use any of the Scratch SENSING blocks. For instance it would be cheating to query the x-position of your opponents. You must use the radar to find them. OPERATORS You may use any of the Scratch Operators blocks. MORE BLOCKS You may use all of the existing MORE BLOCKS or create any new ones as desired, but you may not set them to "run without screen refresh" Players can start from one of four different positions. The local variable NUMBER will correspond to your start position. If you need help remixing, just ask!
you missed spinseeker4.